Compare commits

..

No commits in common. "fbc48066f62a72a2bba136505b762584c57b7c2c" and "249c440d6192f174077d3b77f17c9e31a92ee7ed" have entirely different histories.

2 changed files with 13 additions and 35 deletions

View File

@ -418,30 +418,8 @@ export default {
user_id: uni.getStorageSync("userId"),
id: this.secondId,
}).then((res) => {
// commodity_goods_info_listinfoItemisShow
const filteredList = res.commodity_list.filter(item => {
// itemcommodity_info_list
if (item.commodity_info_list && Array.isArray(item.commodity_info_list)) {
// commodity_goods_info_listinfoItem
item.commodity_info_list = item.commodity_info_list.filter(infoItem =>
infoItem.commodity_goods_info_list &&
Array.isArray(infoItem.commodity_goods_info_list) &&
infoItem.commodity_goods_info_list.length > 0
);
// infoItemitem
return item.commodity_info_list.length > 0;
}
return false;
});
// infoItemisShow
filteredList.forEach((item) => {
item.commodity_info_list.forEach((infoItem) => {
infoItem.isShow = false;
});
});
//
const commodityList = JSON.parse(JSON.stringify(filteredList));
//
const commodityList = JSON.parse(JSON.stringify(res.commodity_list));
commodityList.forEach((tagItem) => { //
tagItem.commodity_info_list.forEach((infoItem) => { //
// isShow

View File

@ -410,7 +410,7 @@ export default {
//
Promise.all([this.getPro(), this.getClassify()]).then(() => {
//
if (options.itemObj) {
if(options.itemObj){
this.itemObj = JSON.parse(options.itemObj)
this.store_name = this.itemObj.merchant_name
this.address = this.itemObj.address
@ -422,12 +422,12 @@ export default {
if (this.itemObj.ad_code) {
this.parseAdCode(this.itemObj.ad_code);
}
this.imgList = this.itemObj.facade_photo ? this.itemObj.facade_photo.split(",").map(item => ({ url: this.picUrl + item })) : []
this.imgList2 = this.itemObj.facade_photo ? this.itemObj.facade_photo.split(",") : []
this.imgList3 = this.itemObj.interior_photo ? this.itemObj.interior_photo.split(",").map(item => ({ url: this.picUrl + item })) : []
this.imgList4 = this.itemObj.interior_photo ? this.itemObj.interior_photo.split(",") : []
this.imgList5 = this.itemObj.license_photo?.split(",").map(item => ({ url: this.picUrl + item }))
this.imgList6 = this.itemObj.license_photo?.split(",")
this.imgList = this.itemObj.facade_photo.split(",").map(item => ({ url: this.picUrl + item }))
this.imgList2 = this.itemObj.facade_photo.split(",")
this.imgList3 = this.itemObj.interior_photo.split(",").map(item => ({ url: this.picUrl + item }))
this.imgList4 = this.itemObj.interior_photo.split(",")
this.imgList5 = this.itemObj.license_photo.split(",").map(item => ({ url: this.picUrl + item }))
this.imgList6 = this.itemObj.license_photo.split(",")
}
})
}