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(/