Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
9a4852b3
Commit
9a4852b3
authored
Jun 20, 2023
by
hxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券 bug 修复
parent
a23bc750
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/components/activity/coupon.vue
+10
-3
No files found.
src/components/activity/coupon.vue
View file @
9a4852b3
...
...
@@ -96,7 +96,7 @@
</div>
</div>
</div>
<div
class=
"receive"
>
<div
class=
"receive"
v-if=
"item.receiveTag != 0"
>
<div>
立即
</div>
<div>
领取
</div>
</div>
...
...
@@ -288,7 +288,7 @@
</div>
</div>
</div>
<div
class=
"receive"
:style=
"{
<div
class=
"receive"
v-if=
"item.receiveTag != 0"
:style=
"{
'color':datas.componentData.color && datas.componentData.color.hotColor,
'background':datas.componentData.color && datas.componentData.color.type == 1 ? 'rgba(255,255,255,.8)' : 'linear-gradient(0deg,#FFE590 50%, #FFF0D1 100%)'
}"
>
...
...
@@ -561,7 +561,7 @@
领到券开始到当月月底有效
</
template
>
</div>
<div
class=
"coupon-receive"
<div
class=
"coupon-receive"
v-if=
"item.receiveTag != 0"
:style=
"{'background' : datas.componentData.color && datas.componentData.color.name}"
>
立即领取
</div>
</div>
...
...
@@ -657,6 +657,13 @@ export default {
// 领取优惠券
receiveCoupon
(
code
,
item
)
{
console
.
log
(
"----领取优惠券"
,
code
,
item
)
if
(
item
.
receiveTag
!=
1
)
{
wx
.
showToast
({
title
:
'不在可领取时间~'
,
icon
:
"none"
})
return
;
}
this
.
usingIntegrals
=
(
item
.
consumeIntegral
-
0
).
toFixed
(
0
);
this
.
couponCode
=
code
;
this
.
couItem
=
item
;
...
...
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