diff --git a/config/dev.env.js b/config/dev.env.js index 55a82ff3..4bd8c9b5 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,4 +4,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', + BASE_API: '"http://127.0.0.1:8082"', }) diff --git a/index.html b/index.html index 94f3213e..e56be600 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - api工厂独立后台 + vip用户独立后台 diff --git a/src/api/apiExtShopGoodsCategory.js b/src/api/apiExtShopGoodsCategory.js new file mode 100644 index 00000000..adc2c706 --- /dev/null +++ b/src/api/apiExtShopGoodsCategory.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function fetchDataList() { + return request({ + url: '/user/apiExtShopGoodsCategory/list', + method: 'post', + data: {} + }) +} + +export function delData(id) { + return request({ + url: '/user/apiExtShopGoodsCategory/del', + method: 'post', + data: { id } + }) +} + +export function saveData(data) { + return request({ + url: '/user/apiExtShopGoodsCategory/save', + method: 'post', + data: { ...data } + }) +} diff --git a/src/icons/svg/category.svg b/src/icons/svg/category.svg new file mode 100644 index 00000000..91f1d987 --- /dev/null +++ b/src/icons/svg/category.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/shopping.svg b/src/icons/svg/shopping.svg new file mode 100644 index 00000000..83abb84f --- /dev/null +++ b/src/icons/svg/shopping.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 2380a358..98bc8c80 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -92,25 +92,23 @@ export const constantRouterMap = [ }, { - path: '/example', + name: '商城管理', + path: '/user', component: Layout, - redirect: '/example/table', - name: 'Example', - meta: { title: 'Example', icon: 'example' }, - children: [ - { - path: 'table', - name: 'Table', - component: () => import('@/views/table/index'), - meta: { title: 'Table', icon: 'table' } - }, - { - path: 'tree', - name: 'Tree', - component: () => import('@/views/tree/index'), - meta: { title: 'Tree', icon: 'tree' } - } - ] + redirect: '/user/apiExtDfs/list', + meta: { title: '商城管理', icon: 'shopping' }, + children: [{ + name: '上传文件管理', + path: 'list', + component: () => import('@/views/apiExtDfs/list'), + meta: { title: '上传文件管理', icon: 'files' } + }, + { + name: '商品分类', + path: 'apiExtShopGoodsCategory/list', + component: () => import('@/views/apiExtShopGoodsCategory/list'), + meta: { title: '商品分类', icon: 'category' } + }] }, { @@ -123,13 +121,7 @@ export const constantRouterMap = [ name: 'Appid配置', path: 'centerUserAliappKey/list', component: () => import('@/views/centerUserAliappKey/list'), - meta: { title: 'Appid配置', icon: 'alipaySR' } - }, - { - name: '首页', - path: 'index', - component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'setting' } + meta: { title: '支付宝小程序', icon: 'alipaySR' } }] }, diff --git a/src/views/apiExtShopGoodsCategory/list.vue b/src/views/apiExtShopGoodsCategory/list.vue new file mode 100644 index 00000000..6ead94b0 --- /dev/null +++ b/src/views/apiExtShopGoodsCategory/list.vue @@ -0,0 +1,311 @@ + + + + + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f27ef679..d44ddab1 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,7 +1,7 @@