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
4bb2493e
Commit
4bb2493e
authored
Aug 14, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新商铺入住页
parent
e30b0992
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
detail.vue
src/pages/storeEntry/detail.vue
+31
-2
No files found.
src/pages/storeEntry/detail.vue
View file @
4bb2493e
...
...
@@ -464,6 +464,11 @@ const getShopInfoByIdFun = async (data) => {
qualifications
:
item
.
qualifications
,
});
});
try
{
xma
.
setStorageSync
(
'storage_choosedShopInfo'
,
JSON
.
stringify
(
choosedShopInfo
.
value
));
}
catch
(
e
)
{
console
.
log
(
e
);
}
testFileList
.
value
=
choosedShopInfo
.
value
.
reduce
((
obj
,
item
)
=>
{
if
(
item
.
qualifications
===
''
)
{
obj
[
item
.
areaId
]
=
[];
...
...
@@ -487,7 +492,14 @@ const show = ref(false);
// 关闭店铺分类弹出层
const
handleClose
=
()
=>
{
show
.
value
=
false
;
try
{
const
value
=
xma
.
getStorageSync
(
'storage_choosedShopInfo'
);
if
(
value
)
{
choosedShopInfo
.
value
=
JSON
.
parse
(
value
);
}
}
catch
(
e
)
{
// error
}
setTimeout
(()
=>
{
testFileList
.
value
=
choosedShopInfo
.
value
.
reduce
((
obj
,
item
)
=>
{
if
(
item
.
qualifications
===
''
)
{
...
...
@@ -508,7 +520,11 @@ const originChooseCategoryLength = 0;
// 根据choosedShopInfo,更新categoryShopsList的值
const
chooseCategory
=
()
=>
{
show
.
value
=
false
;
try
{
xma
.
setStorageSync
(
'storage_choosedShopInfo'
,
JSON
.
stringify
(
choosedShopInfo
.
value
));
}
catch
(
e
)
{
console
.
log
(
e
);
}
testFileList
.
value
=
choosedShopInfo
.
value
.
reduce
((
obj
,
item
)
=>
{
if
(
item
.
qualifications
===
''
)
{
obj
[
item
.
areaId
]
=
[];
...
...
@@ -661,6 +677,19 @@ const submitData = () => {
categoryShops
:
dealCategoryData
.
value
,
});
}
try
{
xma
.
setStorageSync
(
'storage_choosedShopInfo'
,
{});
xma
.
showToast
({
title
:
'修改成功'
,
icon
:
'success'
,
duration
:
3000
,
success
:
(
res
)
=>
{
xma
.
redirectTo
({
url
:
'/pages/storeEntry/index'
});
},
});
}
catch
(
e
)
{
console
.
log
(
e
);
}
}
})
.
catch
((
error
)
=>
{
...
...
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