Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
panyongping
uni-pdtravel
Commits
b61e9e81
Commit
b61e9e81
authored
Sep 15, 2023
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改相册首页逻辑
parent
32794fac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
69 deletions
+72
-69
albumIndex.vue
pages/album/albumIndex.vue
+72
-69
No files found.
pages/album/albumIndex.vue
View file @
b61e9e81
...
...
@@ -248,12 +248,12 @@ export default {
})
},
async
handleWhetherToVotePage
()
{
//---判断是否跳转投票页面
try
{
// 1.获取调查列表id
const
surveyQueryData
=
{
pageCode
:
'albumIndex'
,
//默认前端写死
channelId
:
this
.
options
.
channelId
//游客扫码携带的channelId
}
const
surveyList
=
await
this
.
judgeWhether
(
'scenic/market/findPageMarket'
,
surveyQueryData
)
// 2.判断商店是否在做投票活动,获取模板
...
...
@@ -267,7 +267,6 @@ export default {
})
}
else
{
// 调查模板为空则直接展示首页
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
return
}
...
...
@@ -283,7 +282,6 @@ export default {
voteObj
=
await
this
.
judgeWhether
(
'wechatUser/pdAlbum/checkVisitorSurvey'
,
votedQueryData
)
}
else
{
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
return
}
...
...
@@ -295,9 +293,14 @@ export default {
})
}
else
if
(
voteObj
.
alreadySurvey
===
1
)
{
// 已投票
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
}
}
catch
(
e
){
this
.
show
=
true
this
.
couponIsUse
()
console
.
log
(
e
)
}
},
getCoupon
()
{
//---获取优惠券
var
data
=
{
...
...
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