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
1fe7b4d8
Commit
1fe7b4d8
authored
Aug 28, 2023
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取劵金额
parent
932e7f3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
11 deletions
+35
-11
albumIndex.vue
pages/album/albumIndex.vue
+35
-11
coupon.png
static/img/my/coupon.png
+0
-0
No files found.
pages/album/albumIndex.vue
View file @
1fe7b4d8
...
@@ -67,13 +67,18 @@
...
@@ -67,13 +67,18 @@
</view>
</view>
</view>
</view>
<image
<view
class=
"coupon"
@
click=
"couponTip = true"
>
class=
"coupon"
<image
src=
"@/static/img/my/coupon.png"
class=
"coupon-img"
mode=
"aspectFit"
src=
"@/static/img/my/coupon.png"
@
click=
"couponTip = true"
mode=
"aspectFit"
v-if=
"isHaveCoupon"
>
v-if=
"isHaveCoupon"
>
</image>
</image>
<text
class=
"coupon-price"
>
<text
class=
"r-symbol"
>
¥
</text>
{{couponPrice}}
</text>
</view>
<u-mask
:show=
"postCartTip || couponTip || showUseRule"
>
<u-mask
:show=
"postCartTip || couponTip || showUseRule"
>
<view
class=
"mask"
>
<view
class=
"mask"
>
...
@@ -92,7 +97,7 @@
...
@@ -92,7 +97,7 @@
<view
class=
"congra"
>
恭喜您!
</view>
<view
class=
"congra"
>
恭喜您!
</view>
<view
class=
"get-coupon"
>
<view
class=
"get-coupon"
>
获得摄影抵用券
获得摄影抵用券
<text
class=
"price"
>
20
</text>
元
<text
class=
"price"
>
{{couponPrice}}
</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=
"showUseRuleClick"
>
<view
class=
"use-rule"
@
click=
"showUseRuleClick"
>
...
@@ -183,8 +188,9 @@ export default {
...
@@ -183,8 +188,9 @@ export default {
],
],
rules
:
[],
//使用规则
rules
:
[],
//使用规则
options
:
{},
//路由参数
options
:
{},
//路由参数
couponPrice
:
''
,
//优惠券金额
openid
:
''
,
openid
:
''
,
userId
:
''
userId
:
''
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -295,10 +301,10 @@ export default {
...
@@ -295,10 +301,10 @@ export default {
},
},
findPageMarketFun
(){
//---获取优惠券
findPageMarketFun
(){
//---获取优惠券
var
data
=
{
var
data
=
{
pageCode
:
'
orderInfo
'
,
pageCode
:
'
albumIndex
'
,
marketingStatus
:
1
,
marketingStatus
:
1
,
openid
:
this
.
openid
,
openid
:
this
.
openid
,
userId
:
this
.
userId
,
userId
:
this
.
userId
}
}
this
.
$request
(
'scenic/market/findPageMarket'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'scenic/market/findPageMarket'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
'00'
){
if
(
res
.
code
===
'00'
){
...
@@ -317,6 +323,7 @@ export default {
...
@@ -317,6 +323,7 @@ export default {
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
if
(
item
.
useRange
===
11
&&
item
.
couponStatus
===
1
)
{
if
(
item
.
useRange
===
11
&&
item
.
couponStatus
===
1
)
{
this
.
isHaveCoupon
=
true
this
.
isHaveCoupon
=
true
this
.
couponPrice
=
item
.
deductPrice
// 处理使用规则数据结构
// 处理使用规则数据结构
let
ruleContents
=
item
.
couponRule
?
item
.
couponRule
.
split
(
';'
)
:
[]
let
ruleContents
=
item
.
couponRule
?
item
.
couponRule
.
split
(
';'
)
:
[]
...
@@ -419,6 +426,22 @@ export default {
...
@@ -419,6 +426,22 @@ export default {
bottom
:
200rpx
;
bottom
:
200rpx
;
width
:
180rpx
;
width
:
180rpx
;
height
:
180rpx
;
height
:
180rpx
;
.coupon-img
{
width
:
100%
;
height
:
100%
;
}
.coupon-price
{
position
:
absolute
;
bottom
:
64rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
font-size
:
40rpx
;
font-weight
:
700
;
color
:
#fff
;
}
.r-symbol
{
font-size
:
10rpx
;
}
}
}
}
}
.nav-bar
{
.nav-bar
{
...
@@ -601,6 +624,7 @@ export default {
...
@@ -601,6 +624,7 @@ export default {
font-weight
:
700
;
font-weight
:
700
;
}
}
.price
{
.price
{
margin
:
0
6rpx
;
font-size
:
64rpx
;
font-size
:
64rpx
;
font-weight
:
700
;
font-weight
:
700
;
color
:
#EE520E
;
color
:
#EE520E
;
...
...
static/img/my/coupon.png
View replaced file @
932e7f3e
View file @
1fe7b4d8
11.2 KB
|
W:
|
H:
9.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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