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
78ed0493
Commit
78ed0493
authored
Sep 19, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel
into develop
parents
92663815
021af6d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
70 deletions
+74
-70
albumIndex.vue
pages/album/albumIndex.vue
+72
-69
chooseFavorite.vue
pages/album/chooseFavorite.vue
+2
-1
No files found.
pages/album/albumIndex.vue
View file @
78ed0493
...
@@ -248,12 +248,12 @@ export default {
...
@@ -248,12 +248,12 @@ export default {
})
})
},
},
async
handleWhetherToVotePage
()
{
//---判断是否跳转投票页面
async
handleWhetherToVotePage
()
{
//---判断是否跳转投票页面
try
{
// 1.获取调查列表id
// 1.获取调查列表id
const
surveyQueryData
=
{
const
surveyQueryData
=
{
pageCode
:
'albumIndex'
,
//默认前端写死
pageCode
:
'albumIndex'
,
//默认前端写死
channelId
:
this
.
options
.
channelId
//游客扫码携带的channelId
channelId
:
this
.
options
.
channelId
//游客扫码携带的channelId
}
}
const
surveyList
=
await
this
.
judgeWhether
(
'scenic/market/findPageMarket'
,
surveyQueryData
)
const
surveyList
=
await
this
.
judgeWhether
(
'scenic/market/findPageMarket'
,
surveyQueryData
)
// 2.判断商店是否在做投票活动,获取模板
// 2.判断商店是否在做投票活动,获取模板
...
@@ -267,7 +267,6 @@ export default {
...
@@ -267,7 +267,6 @@ export default {
})
})
}
else
{
// 调查模板为空则直接展示首页
}
else
{
// 调查模板为空则直接展示首页
this
.
show
=
true
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
this
.
couponIsUse
()
return
return
}
}
...
@@ -283,7 +282,6 @@ export default {
...
@@ -283,7 +282,6 @@ export default {
voteObj
=
await
this
.
judgeWhether
(
'wechatUser/pdAlbum/checkVisitorSurvey'
,
votedQueryData
)
voteObj
=
await
this
.
judgeWhether
(
'wechatUser/pdAlbum/checkVisitorSurvey'
,
votedQueryData
)
}
else
{
}
else
{
this
.
show
=
true
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
this
.
couponIsUse
()
return
return
}
}
...
@@ -295,9 +293,14 @@ export default {
...
@@ -295,9 +293,14 @@ export default {
})
})
}
else
if
(
voteObj
.
alreadySurvey
===
1
)
{
// 已投票
}
else
if
(
voteObj
.
alreadySurvey
===
1
)
{
// 已投票
this
.
show
=
true
this
.
show
=
true
this
.
getCoupon
()
this
.
couponIsUse
()
this
.
couponIsUse
()
}
}
}
catch
(
e
){
this
.
show
=
true
this
.
couponIsUse
()
console
.
log
(
e
)
}
},
},
getCoupon
()
{
//---获取优惠券
getCoupon
()
{
//---获取优惠券
var
data
=
{
var
data
=
{
...
...
pages/album/chooseFavorite.vue
View file @
78ed0493
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"img-box"
>
<view
class=
"img-box"
>
<view
class=
"item"
v-for=
"(item, index) in imgArr"
:key=
"item.templateId"
@
click=
"imageChange(item)"
>
<view
class=
"item"
v-for=
"(item, index) in imgArr"
:key=
"item.templateId"
@
click=
"imageChange(item)"
>
<image
class=
"img"
:src=
"item.templateUrl"
mode=
"
aspectFill
"
></image>
<image
class=
"img"
:src=
"item.templateUrl"
mode=
"
widthFix
"
></image>
<checkbox
class=
"checkbox blue round"
:checked=
"item.value"
:value=
"item.templateId"
shape=
"circle"
></checkbox>
<checkbox
class=
"checkbox blue round"
:checked=
"item.value"
:value=
"item.templateId"
shape=
"circle"
></checkbox>
</view>
</view>
</view>
</view>
...
@@ -173,6 +173,7 @@ export default {
...
@@ -173,6 +173,7 @@ export default {
.img
{
.img
{
width
:
100%
;
width
:
100%
;
heigit
:
100%
;
heigit
:
100%
;
border-radius
:
16rpx
;
}
}
.checkbox
{
.checkbox
{
position
:
absolute
;
position
:
absolute
;
...
...
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