This commit is contained in:
2020-07-15 16:21:43 +08:00
parent 1854ffff03
commit cc9fb2b48b
11 changed files with 190 additions and 31 deletions

View File

@@ -67,15 +67,16 @@ export default {
this.id = id;
this.$u.api.getGoodsDetails({ id: id }).then((res)=>{
if (res.errCode == 0) {
this.goodsInfo = res.data;
this.goodsInfo.goods_image_mobile.forEach(item => {
this.goodsInfo = res.data.goods;
let list = [];
res.data.goods_image[0].forEach(item => {
let temp = {
image: item
}
this.list.push(temp);
list.push(temp);
})
this.list = list;
// console.log(this.goodsInfo.mobile_body);
}
})
this.$u.api.goodsInfo({id}).then((res)=>{