Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
99025ad6
Commit
99025ad6
authored
Aug 27, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号配置
parent
7c9f9441
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2351 additions
and
6 deletions
+2351
-6
index.js
config/index.js
+2
-2
index.vue
src/components/weChat/index.vue
+2340
-3
api.js
src/service/api.js
+9
-1
No files found.
config/index.js
View file @
99025ad6
...
...
@@ -13,8 +13,8 @@ module.exports = {
//本地代理设置
proxyTable
:
{
'/api'
:
{
target
:
'http://
local.base-api.sing
.com'
,
// 接口的域名
// target: 'wechat.test.singsingenglish.com',
target
:
'http://
wechat.test.singsingenglish
.com'
,
// 接口的域名
// target: 'wechat.test.singsingenglish.com
http://local.base-api.sing.com
',
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
}
},
...
...
src/components/weChat/index.vue
View file @
99025ad6
This diff is collapsed.
Click to expand it.
src/service/api.js
View file @
99025ad6
...
...
@@ -183,4 +183,12 @@ const getBoxListUrl = `${_baseUrl}api/admin/item/box/list/`;
export
const
getBoxListApi
=
function
(
id
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getBoxListUrl
}${
id
}
`
)
};
// 获取公众号菜单
const
getPublicMenuUrl
=
`
${
_baseUrl
}
api/admin/open/menu`
;
export
const
getPublicMenuApi
=
function
(
id
)
{
return
Vue
.
prototype
.
$fetch
(
getPublicMenuUrl
)
};
// 添加公众号菜单
export
const
savePublicMenuApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
getPublicMenuUrl
,
json
)
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment