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
7350c5dc
Commit
7350c5dc
authored
Aug 24, 2023
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改卡片领取提示信息
parent
ff7bd05a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
albumIndex.vue
pages/album/albumIndex.vue
+27
-28
No files found.
pages/album/albumIndex.vue
View file @
7350c5dc
<
template
>
<
template
>
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-
show
="show">
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-
if
="show">
<view
class=
"nav-bar"
:style=
"
{'top': statusBarHeight + 'px', 'height': navHeight + 'px','line-height': navHeight + 'px'}">
<view
class=
"nav-bar"
:style=
"
{'top': statusBarHeight + 'px', 'height': navHeight + 'px','line-height': navHeight + 'px'}">
<u-icon
name=
"arrow-left"
v-if=
"options.index"
@
click=
"returnClick"
></u-icon>
<u-icon
name=
"arrow-left"
v-if=
"options.index"
@
click=
"returnClick"
></u-icon>
...
@@ -67,25 +67,26 @@
...
@@ -67,25 +67,26 @@
</view>
</view>
</view>
</view>
<image
class=
"coupon"
src=
"@/static/img/my/coupon.png"
mode=
"aspectFit"
@
click=
"showUseRule = true"
></image>
<image
class=
"coupon"
src=
"@/static/img/my/coupon.png"
mode=
"aspectFit"
@
click=
"showUseRule = true"
v-if=
"isHaveCoupon"
>
</image>
<u-mask
:show=
"showtip || showUseRule"
>
<u-mask
:show=
"showtip || showUseRule"
>
<view
class=
"mask"
>
<view
class=
"mask"
>
<view
class=
"img-box"
>
<view
class=
"img-box"
>
<image
class=
"bg"
src=
"@/static/img/my/backgroundIcon01.png"
mode=
"aspectFit"
></image>
<image
class=
"bg"
src=
"@/static/img/my/backgroundIcon01.png"
mode=
"aspectFit"
></image>
<view
class=
"post-card"
v-if=
"showtip"
>
<view
class=
"post-card"
v-if=
"showtip"
>
<view
class=
"congra"
>
恭喜您!
</view>
<view
class=
"thank"
>
- 感谢您的参与 -
</view>
<view
class=
"get-price-tip"
>
<view
class=
"tip-content"
>
获得摄影抵用券
<text>
免费领取
</text>
<text
class=
"price"
>
20
</text>
<text>
纪念小照片1张
</text>
元
</view>
</view>
<image
class=
"my-card"
src=
"./static/album/myCard.png"
mode=
"aspectFit"
></image>
<image
class=
"my-card"
src=
"./static/album/myCard.png"
mode=
"aspectFit"
></image>
<view
class=
"use-rule"
@
click=
"useRuleClick"
>
<view
class=
"address"
>
(领取地址:南站观景台旁)
</view>
使用规则
<u-icon
name=
"arrow-right"
></u-icon>
</view>
<view
class=
"address"
>
(使用地址:长江索道南站观景台旁)
</view>
</view>
</view>
<view
class=
"rules"
v-if=
"showUseRule"
>
<view
class=
"rules"
v-if=
"showUseRule"
>
<view
class=
"title"
>
使用规则
</view>
<view
class=
"title"
>
使用规则
</view>
...
@@ -127,6 +128,7 @@ export default {
...
@@ -127,6 +128,7 @@ export default {
capsule
:
0
,
capsule
:
0
,
navHeight
:
0
,
navHeight
:
0
,
show
:
false
,
//是否显示首页
show
:
false
,
//是否显示首页
isHaveCoupon
:
false
,
//是否有劵
list
:
[
list
:
[
{
{
title
:
'精彩瞬间'
,
title
:
'精彩瞬间'
,
...
@@ -195,10 +197,6 @@ export default {
...
@@ -195,10 +197,6 @@ export default {
this
.
showtip
=
false
this
.
showtip
=
false
this
.
showUseRule
=
false
this
.
showUseRule
=
false
},
},
useRuleClick
()
{
//---查看使用规则
this
.
showtip
=
false
this
.
showUseRule
=
true
},
jumpToScanFaceClick
()
{
//---跳转扫脸页面
jumpToScanFaceClick
()
{
//---跳转扫脸页面
const
openid
=
uni
.
getStorageSync
(
'openid'
)
const
openid
=
uni
.
getStorageSync
(
'openid'
)
...
@@ -293,12 +291,17 @@ export default {
...
@@ -293,12 +291,17 @@ export default {
this
.
show
=
true
this
.
show
=
true
}
}
},
},
couponIsUse
()
{
couponIsUse
()
{
//---判断是否有劵
const
openid
=
uni
.
getStorageSync
(
'openid'
)
const
openid
=
uni
.
getStorageSync
(
'openid'
)
this
.
$request
(
'wechatUser/myPage/getUserCouponList'
,{
openid
}).
then
(
res
=>
{
this
.
$request
(
'wechatUser/myPage/getUserCouponList'
,{
openid
}).
then
(
res
=>
{
if
(
res
.
code
===
'00'
)
{
if
(
res
.
code
===
'00'
)
{
console
.
log
(
res
.
data
)
console
.
log
(
res
.
data
)
res
.
data
.
forEach
(
item
=>
{
if
(
item
.
userRange
===
11
&&
item
.
couponStatus
===
1
)
{
this
.
isHaveCoupon
=
true
}
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
...
@@ -538,18 +541,14 @@ export default {
...
@@ -538,18 +541,14 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
36rpx
;
font-size
:
36rpx
;
.congra
{
.thank
{
font-weight
:
700
;
font-size
:
28rpx
;
}
color
:
#999
;
.price
{
font-size
:
64rpx
;
font-weight
:
700
;
color
:
#EE520E
;
margin
:
0
16rpx
;
}
}
.use-rule
{
.tip-content
{
font-size
:
24rpx
;
display
:
flex
;
color
:
#333
;
flex-direction
:
column
;
align-items
:
center
;
}
}
.address
{
.address
{
font-size
:
24rpx
;
font-size
:
24rpx
;
...
...
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