Authored by Rock Zhang

修复结算页面cookie中的cartType记录与url中的cartType不同步导致数据错误的bug

Code Review By Rock Zhang
@@ -40,7 +40,9 @@ if ($couponUse.data('name') !== orderInfo('couponName')) { @@ -40,7 +40,9 @@ if ($couponUse.data('name') !== orderInfo('couponName')) {
40 orderInfo('couponName', null); 40 orderInfo('couponName', null);
41 } 41 }
42 42
43 -orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary'); 43 +if (queryString.cartType || queryString.carttype || !orderInfo('cartType')) {
  44 + orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary');
  45 +}
44 46
45 function dispacthTapEvt(e) { 47 function dispacthTapEvt(e) {
46 var $cur = $(e.target).closest('li'); 48 var $cur = $(e.target).closest('li');