修改商家入驻驳回后再次提交时图片显示的问题
This commit is contained in:
parent
c3eeb0c3bc
commit
d7971b148e
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="auditStatusContainer" v-if="itemObj.status == 1">
|
||||
<view class="auditStatusContainer" v-if="itemObj.status == 3">
|
||||
<view class="header">
|
||||
<view class="statusIcon">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/enter_audit1.png" mode="aspectFill" class="auditStatus" />
|
||||
@ -55,7 +55,7 @@
|
||||
<button class="btn" @click="goShopManage">进入店铺管理</button>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="auditStatusContainer" v-if="itemObj.status == 3">
|
||||
<view class="auditStatusContainer" v-if="itemObj.status == 1">
|
||||
<view class="header">
|
||||
<view class="statusIcon">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/enter_audit2.png" mode="aspectFill" class="auditStatus" />
|
||||
|
||||
@ -175,25 +175,25 @@ export default {
|
||||
// 根据ad_code解析省市区信息
|
||||
parseAdCode(adCode) {
|
||||
if (!adCode) return;
|
||||
|
||||
|
||||
// 提取省级ad_code(前2位)
|
||||
const provinceCode = adCode.toString().substring(0, 2) + '0000';
|
||||
// 提取市级ad_code(前4位)
|
||||
const cityCode = adCode.toString().substring(0, 4) + '00';
|
||||
// 区县级ad_code(完整6位)
|
||||
const districtCode = adCode.toString();
|
||||
|
||||
|
||||
// 查找省份信息
|
||||
const province = this.pro.find(item => item.ad_code == provinceCode);
|
||||
if (province) {
|
||||
this.confirmProv = province;
|
||||
|
||||
|
||||
// 获取对应城市列表并查找城市信息
|
||||
this.getCity(provinceCode).then(() => {
|
||||
const city = this.city.find(item => item.ad_code == cityCode);
|
||||
if (city) {
|
||||
this.confirmCity = city;
|
||||
|
||||
|
||||
// 获取对应区县列表并查找区县信息
|
||||
this.getBuss(cityCode).then(() => {
|
||||
const district = this.buss.find(item => item.ad_code == districtCode);
|
||||
@ -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.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(",")
|
||||
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(",")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user