bugfix: 补充goods_small_logo

This commit is contained in:
jqtmviyu@gmail.com 2021-02-27 21:15:28 +08:00
parent 61bd2fde39
commit c3e8e210bc

View File

@ -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"')
//