Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
59f3f8f66226deaeedca86e2725081d9959d5f0f
1 parent
e84f8891
实付金额发生变化,使用有货币为0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
static/js/cart/order-ensure.js
static/js/cart/select-coupon.js
static/js/cart/order-ensure.js
View file @
59f3f8f
...
...
@@ -326,6 +326,8 @@ if (!orderInfo('addressId')) {
$
(
'.delivery-id'
).
on
(
'touchend'
,
'li'
,
function
()
{
orderInfo
(
'deliveryId'
,
$
(
this
).
data
(
'id'
));
//实付金额发生变化,使用有货币为0
orderInfo
(
'yohoCoin'
,
0
);
orderCompute
();
});
...
...
static/js/cart/select-coupon.js
View file @
59f3f8f
...
...
@@ -56,6 +56,8 @@ $newCoupon.on('submit', function() {
}
if
(
res
.
code
===
200
)
{
tip
.
show
(
'优惠券可用'
);
//实付金额发生变化,使用有货币为0
orderInfo
(
'yohoCoin'
,
0
);
orderInfo
(
'couponCode'
,
res
.
data
.
coupon_code
);
orderInfo
(
'couponName'
,
res
.
data
.
coupon_title
);
window
.
location
.
href
=
'/cart/index/orderEnsure'
;
...
...
@@ -81,6 +83,8 @@ $couponList.on('touchstart', '.employ-main', function() {
$
(
'body'
).
on
(
'touchend'
,
'.not-use'
,
function
()
{
orderInfo
(
'couponCode'
,
null
);
orderInfo
(
'couponName'
,
null
);
//实付金额发生变化,使用有货币为0
orderInfo
(
'yohoCoin'
,
0
);
location
.
href
=
'/cart/index/orderEnsure'
;
});
...
...
@@ -138,6 +142,8 @@ function getCouponHandle(allCoupons) {
//tip.show('优惠券可用');
orderInfo
(
'couponCode'
,
res
.
data
.
coupon_code
);
orderInfo
(
'couponName'
,
res
.
data
.
coupon_title
);
//实付金额发生变化,使用有货币为0
orderInfo
(
'yohoCoin'
,
0
);
window
.
location
.
href
=
'/cart/index/orderEnsure'
;
}
else
if
(
res
.
message
)
{
tip
.
show
(
res
.
message
);
...
...
Please
register
or
login
to post a comment