+
+ clearable
+ filterable>
e.url).join()
form.publishStatus = status
- form.id = this.$route.query.id
this.submiting = true
- if (form.id) {
+ if (this.id) {
this.$post(this.api.updateExplosive, form).then(res => {
+ this.submiting = false
Util.successMsg("修改成功");
- this.$router.back()
+ this.$emit('closeDia')
}).catch(err => {
this.submiting = false
});
} else {
this.$post(this.api.saveExplosive, form).then(res => {
+ this.submiting = false
Util.successMsg("创建成功");
- this.$router.back()
+ this.$emit('closeDia')
}).catch(err => {
this.submiting = false
});
diff --git a/src/pages/miniProgramMg/index/list/index.vue b/src/pages/miniProgramMg/index/hot/list/index.vue
similarity index 88%
rename from src/pages/miniProgramMg/index/list/index.vue
rename to src/pages/miniProgramMg/index/hot/list/index.vue
index c5cd78e..1ab7637 100644
--- a/src/pages/miniProgramMg/index/list/index.vue
+++ b/src/pages/miniProgramMg/index/hot/list/index.vue
@@ -74,20 +74,33 @@
+
+
+
+
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管理' }
+ },
]
}