bugfix: 补充goods_small_logo
This commit is contained in:
parent
61bd2fde39
commit
c3e8e210bc
@ -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(/<img/g, '<img class="img"')
|
||||
// 判断设备类型
|
||||
|
Loading…
Reference in New Issue
Block a user