Compare commits

...

3 Commits

Author SHA1 Message Date
赵毅
fbc48066f6 11 2025-10-31 16:49:05 +08:00
赵毅
d7971b148e 修改商家入驻驳回后再次提交时图片显示的问题 2025-10-31 16:48:12 +08:00
赵毅
c3eeb0c3bc 修改易购商品的数据显示逻辑 2025-10-31 14:37:45 +08:00
2 changed files with 35 additions and 13 deletions

View File

@ -418,8 +418,30 @@ export default {
user_id: uni.getStorageSync("userId"), user_id: uni.getStorageSync("userId"),
id: this.secondId, id: this.secondId,
}).then((res) => { }).then((res) => {
// // commodity_goods_info_listinfoItemisShow
const commodityList = JSON.parse(JSON.stringify(res.commodity_list)); 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));
commodityList.forEach((tagItem) => { // commodityList.forEach((tagItem) => { //
tagItem.commodity_info_list.forEach((infoItem) => { // tagItem.commodity_info_list.forEach((infoItem) => { //
// isShow // isShow

View File

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