diff --git a/src/api/syncApp.js b/src/api/syncApp.js new file mode 100644 index 0000000..d8e3b97 --- /dev/null +++ b/src/api/syncApp.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' +import { stringify } from 'qs' + +export async function getSyncAppList() { + return request({ + url: '/admin/shop/sync-app/list', + method: 'get', + }) +} +export async function saveSyncApp(data) { + return request({ + url: '/admin/shop/sync-app/saveSyncApp', + method: 'post', + data:data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} +export async function editSyncApp(data) { + return request({ + url: '/admin/shop/sync-app/editSyncApp', + method: 'put', + data:data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} +export async function deleteSyncApp(syncId) { + return request({ + url: '/admin/shop/sync-app/delSyncApp', + method: 'delete', + params: { syncAppId: syncId }, + }) +} \ No newline at end of file diff --git a/src/utils/routes.js b/src/utils/routes.js index 53814a6..a61b9ee 100644 --- a/src/utils/routes.js +++ b/src/utils/routes.js @@ -34,7 +34,7 @@ export function convertRouter(asyncRoutes) { const obj = { path: '/goodsImgs', component: '@/views/product/goodsImg/goodsImgs', - name: 'Vab88000', + name: 'Vab88003', redirect: null, meta: { title: '商品图库管理', @@ -46,6 +46,23 @@ export function convertRouter(asyncRoutes) { } route.children.push(obj) } + if (route.meta.title == '商品' && route.name == 'Vab320') { + const obj = { + path: '/goodsImport', + component: '@/views/product/goodsImport/index', + name: 'Vab88004', + redirect: null, + meta: { + title: '商品导入管理', + icon: '', + noClosable: 0, + hidden: null, + }, + menuHidden: false, + } + + route.children.push(obj) + } if (route.meta.title == '店铺' && route.name == 'Vab330') { const obj = { path: '/storeConf', @@ -63,6 +80,23 @@ export function convertRouter(asyncRoutes) { route.children.push(obj) } + if (route.meta.title == '店铺' && route.name == 'Vab330') { + const obj = { + path: '/SyncApp', + component: '@/views/store/storeSyncApp/index', + name: 'Vab88001', + redirect: null, + meta: { + title: '店铺密钥配置', + icon: '', + noClosable: 0, + hidden: null, + }, + menuHidden: false, + } + + route.children.push(obj) + } if (route.meta.title == '店铺' && route.name == 'Vab330') { const obj = { diff --git a/src/views/store/storeSyncApp/addSyncApp.vue b/src/views/store/storeSyncApp/addSyncApp.vue new file mode 100644 index 0000000..0c30a1b --- /dev/null +++ b/src/views/store/storeSyncApp/addSyncApp.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/src/views/store/storeSyncApp/editSync.vue b/src/views/store/storeSyncApp/editSync.vue new file mode 100644 index 0000000..28e6b2c --- /dev/null +++ b/src/views/store/storeSyncApp/editSync.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/views/store/storeSyncApp/index.vue b/src/views/store/storeSyncApp/index.vue new file mode 100644 index 0000000..583b08d --- /dev/null +++ b/src/views/store/storeSyncApp/index.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file