From c53de0c857a7e9d94d744de72f7c56b87338516b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 3 Jan 2024 19:41:35 +0800 Subject: [PATCH] fix --- .../miniProgramMg/index/banner/add/index.vue | 351 ++++++++++++++++++ .../miniProgramMg/index/banner/list/index.vue | 165 ++++++++ .../index/{ => hot}/add/index.vue | 46 +-- .../index/{ => hot}/list/index.vue | 38 +- src/pages/miniProgramMg/index/inlet/index.vue | 2 +- src/router/modules/miniProgramMg.js | 20 +- 6 files changed, 588 insertions(+), 34 deletions(-) create mode 100644 src/pages/miniProgramMg/index/banner/add/index.vue create mode 100644 src/pages/miniProgramMg/index/banner/list/index.vue rename src/pages/miniProgramMg/index/{ => hot}/add/index.vue (93%) rename src/pages/miniProgramMg/index/{ => hot}/list/index.vue (88%) 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管理' } + }, ] }