Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
0b313973
Commit
0b313973
authored
Aug 15, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复商家入驻Bug
parent
6250c0d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
detail.vue
src/pages/storeEntry/detail.vue
+11
-15
No files found.
src/pages/storeEntry/detail.vue
View file @
0b313973
...
...
@@ -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
]);
}
});
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
=
[];
};
// 店铺分类是否显示
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment