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
3cb3ddb0
Commit
3cb3ddb0
authored
Aug 01, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐详情-收藏
parent
f8bb17e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
packageDetails.vue
src/pages/packageDetails/packageDetails.vue
+20
-7
No files found.
src/pages/packageDetails/packageDetails.vue
View file @
3cb3ddb0
...
@@ -202,15 +202,28 @@ function getProdDetailFn(prodId) {
...
@@ -202,15 +202,28 @@ function getProdDetailFn(prodId) {
* 获取收藏
* 获取收藏
*/
*/
function
getCollectFn
(
shopId
)
{
function
getCollectFn
(
shopId
)
{
getCollect
(
shopId
).
then
((
res
)
=>
{
if
(
shopInfo
.
value
.
isCollect
===
0
)
{
if
(
res
.
code
===
0
)
{
shopInfo
.
value
.
privateIntFcount
++
;
console
.
log
(
'111'
);
shopInfo
.
value
.
isCollect
=
1
;
}
}
else
{
});
shopInfo
.
value
.
privateIntFcount
--
;
shopInfo
.
value
.
isCollect
=
0
;
}
shopInfo
.
value
.
console
.
log
(
'111'
);
// getCollect(shopId).then((res) => {
// if (res.code === 0) {
// if (shopInfo.value.isCollect === 0) {
// shopInfo.value.privateIntFcount++;
// shopInfo.value.isCollect = 1;
// } else {
// shopInfo.value.privateIntFcount--;
// shopInfo.value.isCollect = 0;
// }
// shopInfo.value.console.log('111');
// }
// });
}
}
function
collectionFn
()
{
function
collectionFn
()
{
console
.
log
(
'shopInfo.value'
,
shopId
.
value
);
getCollectFn
(
shopId
.
value
);
getCollectFn
(
shopId
.
value
);
}
}
function
getLocationFn
()
{
function
getLocationFn
()
{
...
...
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