diff --git a/src/pages/miniProgramMg/index/banner/add/index.vue b/src/pages/miniProgramMg/index/banner/add/index.vue new file mode 100644 index 0000000..82f125f --- /dev/null +++ b/src/pages/miniProgramMg/index/banner/add/index.vue @@ -0,0 +1,351 @@ + + + + + \ No newline at end of file diff --git a/src/pages/miniProgramMg/index/banner/list/index.vue b/src/pages/miniProgramMg/index/banner/list/index.vue new file mode 100644 index 0000000..d0718b4 --- /dev/null +++ b/src/pages/miniProgramMg/index/banner/list/index.vue @@ -0,0 +1,165 @@ + + + + + \ No newline at end of file diff --git a/src/pages/miniProgramMg/index/add/index.vue b/src/pages/miniProgramMg/index/hot/add/index.vue similarity index 93% rename from src/pages/miniProgramMg/index/add/index.vue rename to src/pages/miniProgramMg/index/hot/add/index.vue index bf9600d..065666e 100644 --- a/src/pages/miniProgramMg/index/add/index.vue +++ b/src/pages/miniProgramMg/index/hot/add/index.vue @@ -1,6 +1,5 @@ + + + + diff --git a/src/pages/miniProgramMg/index/inlet/index.vue b/src/pages/miniProgramMg/index/inlet/index.vue index 2845cb2..4a18b86 100644 --- a/src/pages/miniProgramMg/index/inlet/index.vue +++ b/src/pages/miniProgramMg/index/inlet/index.vue @@ -39,7 +39,7 @@ export default { methods: { // 页面设置 toSet (i) { - this.$router.push(`list?type=${i}`) + this.$router.push(i ? 'banner' : 'hot') }, } }; diff --git a/src/router/modules/miniProgramMg.js b/src/router/modules/miniProgramMg.js index 1a09e0a..92adb63 100644 --- a/src/router/modules/miniProgramMg.js +++ b/src/router/modules/miniProgramMg.js @@ -17,14 +17,24 @@ export default { meta: { title: '首页管理' } }, { - path: `list`, - component: () => import('@/pages/miniProgramMg/index/list'), - meta: { title: '首页管理' } + path: `hot`, + component: () => import('@/pages/miniProgramMg/index/hot/list'), + meta: { title: '爆款推荐' } }, { - path: `add`, - component: () => import('@/pages/miniProgramMg/index/add'), + path: `hot/add`, + component: () => import('@/pages/miniProgramMg/index/hot/add'), meta: { title: '爆款推荐' } }, + { + path: `banner`, + component: () => import('@/pages/miniProgramMg/index/banner/list'), + meta: { title: 'banner管理' } + }, + { + path: `banner/add`, + component: () => import('@/pages/miniProgramMg/index/banner/add'), + meta: { title: 'banner管理' } + }, ] }