Merge branch 'hotfix/coupon' into 'gray'
优惠券刷新 文案 See merge request !1328
Showing
3 changed files
with
14 additions
and
3 deletions
@@ -56,7 +56,7 @@ function droitHtml(contents) { | @@ -56,7 +56,7 @@ function droitHtml(contents) { | ||
56 | {title: '特权介绍', data: ['金卡及以上会员享受限定次数的免费送达服务。']}, | 56 | {title: '特权介绍', data: ['金卡及以上会员享受限定次数的免费送达服务。']}, |
57 | {title: '使用说明', data: [ | 57 | {title: '使用说明', data: [ |
58 | '金卡会员每月可享3次普通快递免邮,白金会员每月可享5次顺丰快递免邮(顺丰无法触达地区将改发其他快递)。', | 58 | '金卡会员每月可享3次普通快递免邮,白金会员每月可享5次顺丰快递免邮(顺丰无法触达地区将改发其他快递)。', |
59 | - '免邮次数每月一日更新,会员等级升级时,免邮次数当天更新。', '金卡会员可消耗一次免邮次数将已达到免邮门槛的普通快递订单升级至顺丰快递。']}, | 59 | + '免邮次数每月一日更新,会员等级升级时,免邮次数当天更新。']}, |
60 | ], | 60 | ], |
61 | interlocution: [] | 61 | interlocution: [] |
62 | }; | 62 | }; |
@@ -21,6 +21,7 @@ let $useCoupon = $('#useCoupon'); | @@ -21,6 +21,7 @@ let $useCoupon = $('#useCoupon'); | ||
21 | let $notUseCoupon = $('#notUseCoupon'); | 21 | let $notUseCoupon = $('#notUseCoupon'); |
22 | 22 | ||
23 | let winH = $(window).height(); | 23 | let winH = $(window).height(); |
24 | +let linkUrl = document.referrer; | ||
24 | 25 | ||
25 | require('common'); | 26 | require('common'); |
26 | require('cart/cartbuynow/select-coupon'); | 27 | require('cart/cartbuynow/select-coupon'); |
@@ -40,7 +41,11 @@ function fixedLayOut() { | @@ -40,7 +41,11 @@ function fixedLayOut() { | ||
40 | } | 41 | } |
41 | 42 | ||
42 | function goToBack() { | 43 | function goToBack() { |
43 | - history.go(-1); | 44 | + if (linkUrl) { |
45 | + window.location.href = linkUrl; | ||
46 | + } else { | ||
47 | + history.go(-1); | ||
48 | + } | ||
44 | } | 49 | } |
45 | 50 | ||
46 | /** | 51 | /** |
@@ -20,6 +20,7 @@ let $useCoupon = $('#useCoupon'); | @@ -20,6 +20,7 @@ let $useCoupon = $('#useCoupon'); | ||
20 | let $notUseCoupon = $('#notUseCoupon'); | 20 | let $notUseCoupon = $('#notUseCoupon'); |
21 | 21 | ||
22 | let winH = $(window).height(); | 22 | let winH = $(window).height(); |
23 | +let linkUrl = document.referrer; | ||
23 | 24 | ||
24 | require('common'); | 25 | require('common'); |
25 | require('cart/cartbuynow/select-coupon'); | 26 | require('cart/cartbuynow/select-coupon'); |
@@ -39,7 +40,11 @@ function fixedLayOut() { | @@ -39,7 +40,11 @@ function fixedLayOut() { | ||
39 | } | 40 | } |
40 | 41 | ||
41 | function goToBack() { | 42 | function goToBack() { |
42 | - history.go(-1); | 43 | + if (linkUrl) { |
44 | + window.location.href = linkUrl; | ||
45 | + } else { | ||
46 | + history.go(-1); | ||
47 | + } | ||
43 | } | 48 | } |
44 | 49 | ||
45 | /** | 50 | /** |
@@ -88,6 +93,7 @@ $useCoupon.on('click', function() { | @@ -88,6 +93,7 @@ $useCoupon.on('click', function() { | ||
88 | } | 93 | } |
89 | 94 | ||
90 | orderInfo('couponCode', couponCodeArray.join(',')); | 95 | orderInfo('couponCode', couponCodeArray.join(',')); |
96 | + | ||
91 | if (couponCodeArray.length > 0) { | 97 | if (couponCodeArray.length > 0) { |
92 | goToBack(); | 98 | goToBack(); |
93 | } else { | 99 | } else { |
-
Please register or login to post a comment