Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-back
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-back
Commits
31cc245d
Commit
31cc245d
authored
Feb 26, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券
parent
d10ddffd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
index.js
pages/index/index.js
+9
-5
No files found.
pages/index/index.js
View file @
31cc245d
...
...
@@ -18,6 +18,7 @@ import { ACTION_REFUND_SUCCESS } from '../../const/actioncmd'
import
{
ACTION_REFUND_FAILED
}
from
'../../const/actioncmd'
import
{
ACTION_PRINT_LAST_ORDER
}
from
'../../const/actioncmd'
import
{
FLOW_IDLE
,
FLOW_COLLECTIONS
,
FLOW_REFUND
}
from
'../../const/actioncmd'
import
{
ACTION_USE_COUPON
}
from
'../../const/actioncmd'
Page
({
...
...
@@ -235,12 +236,10 @@ Page({
}
else
if
(
res
.
action
==
ACTION_USE_COUPON
){
//优惠券
let
coupon
=
res
.
data
let
discCouponPrice
=
context
.
data
.
discCouponPrice
discCouponPrice
=
discCouponPrice
+
coupon
.
discCouponPrice
context
.
setData
({
discCouponState
:
coupon
.
discCouponState
,
discCouponMsg
:
coupon
.
discCouponMsg
,
discCouponPrice
:
discCouponPrice
discCouponPrice
:
coupon
.
discCouponPrice
})
}
...
...
@@ -726,7 +725,9 @@ Page({
//兑换券界面关闭
convertCouponClose
(
e
)
{
this
.
setData
({
convertCouponState
:
0
})
this
.
sendConvertCouponToFront
(
0
)
var
request
=
{};
request
.
convertCouponState
=
0
;
this
.
sendConvertCouponToFront
(
request
)
},
...
...
@@ -776,7 +777,10 @@ Page({
//使用券
useCoupon
(
e
)
{
this
.
setData
({
discCouponState
:
1
})
this
.
sendDiscCouponToFront
(
1
)
var
request
=
{};
request
.
convertCouponState
=
1
;
request
.
discCouponPrice
=
this
.
data
.
discCouponPrice
this
.
sendDiscCouponToFront
(
request
)
},
//发送退款金额.以分为单位
...
...
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