Commit 58aa4d82 authored by xinzhedeai's avatar xinzhedeai

fix:商户详情图片为空时,数据格式导致上传不了图片的问题处理

parent 7d764eab
...@@ -139,7 +139,6 @@ window.addEventListener('load', function () { ...@@ -139,7 +139,6 @@ window.addEventListener('load', function () {
return true; return true;
}, },
afterRead(file, type) { // 调用爱山东中台系统,将数据流传递过去 afterRead(file, type) { // 调用爱山东中台系统,将数据流传递过去
alert(type)
vant.Toast.loading({ vant.Toast.loading({
message: '正在处理...', message: '正在处理...',
forbidClick: true, forbidClick: true,
...@@ -562,12 +561,18 @@ window.addEventListener('load', function () { ...@@ -562,12 +561,18 @@ window.addEventListener('load', function () {
let tempData = result.data let tempData = result.data
if(tempData['businessLicensePhotos']){ if(tempData['businessLicensePhotos']){
tempData['businessLicensePhotos'] = tempData['businessLicensePhotos'].split(',') tempData['businessLicensePhotos'] = tempData['businessLicensePhotos'].split(',')
}else{
tempData['businessLicensePhotos'] = []
} }
if(tempData['floorPlanPhotos']){ if(tempData['floorPlanPhotos']){
tempData['floorPlanPhotos'] = tempData['floorPlanPhotos'].split(',') tempData['floorPlanPhotos'] = tempData['floorPlanPhotos'].split(',')
}else{
tempData['floorPlanPhotos'] = []
} }
if(tempData['storefrontPhotos']){ if(tempData['storefrontPhotos']){
tempData['storefrontPhotos'] = tempData['storefrontPhotos'].split(',') tempData['storefrontPhotos'] = tempData['storefrontPhotos'].split(',')
}else{
tempData['storefrontPhotos'] = []
} }
this.formData = tempData this.formData = tempData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment