From c3e8e210bc5fd56c7372d9b638f9d9ac1303b7ff Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Sat, 27 Feb 2021 21:15:28 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E8=A1=A5=E5=85=85goods=5Fsmall=5Flog?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/goods_detail/goods_detail.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/goods_detail/goods_detail.vue b/src/pages/goods_detail/goods_detail.vue index 3333cb8..fd58ba7 100644 --- a/src/pages/goods_detail/goods_detail.vue +++ b/src/pages/goods_detail/goods_detail.vue @@ -56,6 +56,7 @@ export default { goods_name: "商品名称", goods_price: "0", goods_introduce: "", + goods_small_logo: "", isCollect: false } }, @@ -70,10 +71,11 @@ export default { methods: { // 获取商品信息 async getGoodsDetail(){ - const { pics, goods_name, goods_price, goods_introduce } = (await this.$u.api.getGoodsDetail({ goods_id: this.goods_id })).message + const { pics, goods_name, goods_price, goods_introduce, goods_small_logo} = (await this.$u.api.getGoodsDetail({ goods_id: this.goods_id })).message this.pics = pics this.goods_name = goods_name this.goods_price = goods_price + this.goods_small_logo = goods_small_logo // 给富文本中的img标签添加类名 let htmlStr = goods_introduce.replace(/