修复商家入驻Bug

parent 6250c0d0
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
:file-list="testFileList[item.areaId]" :file-list="testFileList[item.areaId]"
image-mode="aspectFill" image-mode="aspectFill"
:action="action" :action="action"
@change="handleCategoyChange($event, item.areaId, item.areaName)" @change="handleCategoyChange($event, item.areaId)"
:limit="1" :limit="1"
class="img1" class="img1"
:header="headers" :header="headers"
...@@ -167,6 +167,7 @@ ...@@ -167,6 +167,7 @@
v-model="show" v-model="show"
position="bottom" position="bottom"
custom-style="height:500px;overflow:auto;" custom-style="height:500px;overflow:auto;"
safe-area-inset-bottom="true"
@close="handleClose" @close="handleClose"
> >
<view class="hcontent"> <view class="hcontent">
...@@ -293,7 +294,6 @@ const beforeRemove = ({ file, fileList, resolve }) => { ...@@ -293,7 +294,6 @@ const beforeRemove = ({ file, fileList, resolve }) => {
*/ */
const processingImageAddresses = (fileList) => { const processingImageAddresses = (fileList) => {
const data = fileList.value.map((item) => { const data = fileList.value.map((item) => {
console.log(JSON.parse(item.response));
return JSON.parse(item.response).data.url; return JSON.parse(item.response).data.url;
}); });
return data.join(','); return data.join(',');
...@@ -305,28 +305,26 @@ const processingImageAddresses1 = (fileList) => { ...@@ -305,28 +305,26 @@ const processingImageAddresses1 = (fileList) => {
return data.join(','); return data.join(',');
}; };
const categoryShopsList = ref({});
// 新增经营资质上传 // 新增经营资质上传
const testFileList = ref([]); const testFileList = ref([]);
const handleCategoyChange = ({ fileList: files }, valId, valName) => { const handleCategoyChange = ({ fileList: files }, valId) => {
testFileList.value[valId] = files; testFileList.value[valId] = files;
// 资质上传图片 // 资质上传图片
// 资质清空图片 // 资质清空图片
choosedShopInfo.value.forEach((item) => {
if (item.areaId === valId) {
choosedShopInfo.value.forEach((item) => { choosedShopInfo.value.forEach((item) => {
if (item.areaId === valId) { if (item.areaId === valId) {
item.qualifications = item.qualifications =
files.length === 0 ? '' : processingImageAddresses1(testFileList.value[valId]); files.length === 0 ? '' : processingImageAddresses1(testFileList.value[valId]);
} }
}); });
}
});
console.log('在删除或上传资质图片时'); // 修改本地存储的值
console.log(choosedShopInfo.value); try {
xma.setStorageSync('storage_choosedShopInfo', JSON.stringify(choosedShopInfo.value));
} catch (e) {
console.log(e);
}
}; };
// 店铺logo门头上传 // 店铺logo门头上传
...@@ -493,9 +491,7 @@ const getShopInfoByIdFun = async (data) => { ...@@ -493,9 +491,7 @@ const getShopInfoByIdFun = async (data) => {
// 店铺分类:点击左侧团购、助农tab,添加active样式,清空选择的店铺类型数组 // 店铺分类:点击左侧团购、助农tab,添加active样式,清空选择的店铺类型数组
const setActiveCategory = (index) => { const setActiveCategory = (index) => {
console.log(index);
categoryActiveIndex.value = index; categoryActiveIndex.value = index;
choosedShopArr.value = [];
}; };
// 店铺分类是否显示 // 店铺分类是否显示
......
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