From 4a333f3a9538d7334866f874bab290b696f8f55d Mon Sep 17 00:00:00 2001
From: wangxiaowei <1121133807@qq.com>
Date: Fri, 9 Aug 2024 15:10:26 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8E=E5=BF=AB=E8=AE=AF=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=A4=9A=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
bundle_b/pages/mall_news/detail.vue | 3 ++-
bundle_b/pages/mall_news/index.vue | 22 +++++++++++++++++-----
components/mall-news/mall-news.vue | 19 +++++++++++++++++--
3 files changed, 36 insertions(+), 8 deletions(-)
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}}
+
+
+
+
+
+
+
+
+
+
+
+