修复商家入驻Bug

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