diff --git a/public/config.js b/public/config.js index 14579e4..3c4be2d 100644 --- a/public/config.js +++ b/public/config.js @@ -4,11 +4,11 @@ window.serverConfig = { // 必填: api地址, 换成自己的域名即可 // 例如: https://www.你的域名.com/index.php?s=/admin // BASE_API: 'https://www.saas.njrenzhou.com/index.php?s=/admin', - BASE_API: 'https://www.royaum.com.cn/index.php?s=/admin', + BASE_API: 'https://test-www.royaum.com.cn/index.php?s=/admin', // 必填: store模块的入口地址 // 例如: https://www.你的域名.com/store // STORE_URL: 'https://www.saas.njrenzhou.com/store', - STORE_URL: 'https://www.royaum.com.cn/store', + STORE_URL: 'https://test-www.royaum.com.cn/store', // 图片文件上传大小 (单位mb) uploadImageSize: 2, diff --git a/src/api/api.config.js b/src/api/api.config.js index f046c46..1dc94ef 100644 --- a/src/api/api.config.js +++ b/src/api/api.config.js @@ -41,9 +41,13 @@ export default { dataList: 'store/platformList', getStorePlatform: 'store/getStorePlatform', setStorePlatform: 'store/auth', - getGoodsList: '/goods/index' - }, + getGoodsList: '/goods/index', + }, + channel:{ + channelList: '/channel/index', + channelEdit: '/channel/edit', + }, // 商家后台api权限 api: { list: 'store.api/index', diff --git a/src/api/store.js b/src/api/store.js index 6d68bf8..7ec62df 100644 --- a/src/api/store.js +++ b/src/api/store.js @@ -1,5 +1,28 @@ import api from './api.config' import { axios } from '@/utils/request' + +/** + * 编辑记录 + * @param {*} data + */ +export function channelEdit (id, params) { + return axios({ + url: api.store.channel.channelEdit, + method: 'post', + params: { id, ...params } + }) +} +/** + * 渠道列表 + * @param {*} params + */ +export function channelList (params) { + return axios({ + url: api.store.channel.channelList, + method: 'get', + params + }) +} /** * 获取列表 * @param {*} params diff --git a/src/config/router.config.js b/src/config/router.config.js index d99b53c..fa270c1 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -17,6 +17,11 @@ export const asyncRouterMap = [ component: PageView, meta: { title: '商城管理', keepAlive: true, icon: Icon['shop'], permission: ['store'] }, children: [ + { + path: 'channel', + component: () => import(/* webpackChunkName: "store" */ '@/views/store/channel'), + meta: { title: '渠道管理', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] } + }, { path: 'index', component: () => import(/* webpackChunkName: "store" */ '@/views/store/index'), diff --git a/src/views/store/channel.vue b/src/views/store/channel.vue new file mode 100644 index 0000000..75337fb --- /dev/null +++ b/src/views/store/channel.vue @@ -0,0 +1,105 @@ + + + \ No newline at end of file diff --git a/src/views/store/modules/channelEdit.vue b/src/views/store/modules/channelEdit.vue new file mode 100644 index 0000000..540be30 --- /dev/null +++ b/src/views/store/modules/channelEdit.vue @@ -0,0 +1,133 @@ + + + + \ No newline at end of file