diff --git a/bundle_b/pages/mall_news/detail.vue b/bundle_b/pages/mall_news/detail.vue index a5ec803..c12c3f0 100644 --- a/bundle_b/pages/mall_news/detail.vue +++ b/bundle_b/pages/mall_news/detail.vue @@ -64,6 +64,7 @@ }, onLoad() { this.id = this.$Route.query.id; + this.mall_type = this.$Route.query.mall_type; this.getDetail() }, methods: { @@ -74,7 +75,7 @@ }, async getDetail() { - const {code, data, msg} = await getMallNewsDetail({id: this.id}); + const {code, data, msg} = await getMallNewsDetail({id: this.id, mall_type: this.mall_type}); if (code == 1) { this.item = data } diff --git a/bundle_b/pages/mall_news/index.vue b/bundle_b/pages/mall_news/index.vue index c980fb4..78c9d6b 100644 --- a/bundle_b/pages/mall_news/index.vue +++ b/bundle_b/pages/mall_news/index.vue @@ -10,7 +10,21 @@ {{item.title}} {{item.desc}} - + + + + + + + + + + + + + + + @@ -22,7 +36,7 @@ - + 推荐商品 @@ -59,7 +73,7 @@ - + 推荐商品 @@ -95,8 +109,6 @@ }, methods: { preview(current, files) { - console.log(current) - console.log(files) let f = files.map((item) => { return item.src }) diff --git a/components/mall-news/mall-news.vue b/components/mall-news/mall-news.vue index f24d2a6..df30b5c 100644 --- a/components/mall-news/mall-news.vue +++ b/components/mall-news/mall-news.vue @@ -6,14 +6,13 @@ - + {{item.title}} {{item.desc}} - @@ -23,6 +22,22 @@ + + + {{item.title}} + {{item.desc}} + + + + + + + + + + + +