修复结算页面cokie中的cartType记录与url中的cartType不同步导致数据错误的bug
Code Review By Rock Zhang
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -46,7 +46,9 @@ if (document.referrer && document.referrer.indexOf('/cart/index/index') !== -1) | @@ -46,7 +46,9 @@ if (document.referrer && document.referrer.indexOf('/cart/index/index') !== -1) | ||
46 | orderInfo('couponName', null); | 46 | orderInfo('couponName', null); |
47 | } | 47 | } |
48 | 48 | ||
49 | -orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary'); | 49 | +if (queryString.cartType || queryString.carttype || !orderInfo('cartType')) { |
50 | + orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary'); | ||
51 | +} | ||
50 | 52 | ||
51 | function dispacthTapEvt(e) { | 53 | function dispacthTapEvt(e) { |
52 | var $cur = $(e.target).closest('li'); | 54 | var $cur = $(e.target).closest('li'); |
-
Please register or login to post a comment