Authored by 梁志锋

购物车修改

@@ -14,7 +14,6 @@ var chosePanel = require('./chose-panel'), @@ -14,7 +14,6 @@ var chosePanel = require('./chose-panel'),
14 var $cartContent = $('.cart-content'); 14 var $cartContent = $('.cart-content');
15 15
16 var navHammer, 16 var navHammer,
17 - $advanceBuy = $('.advance-buy'),  
18 cartType = $('#cartType').val(); 17 cartType = $('#cartType').val();
19 18
20 var hasChecked = $('.cart-goods .icon-cb-checked').length > 0 ? true : false; //是否有选中商品 19 var hasChecked = $('.cart-goods .icon-cb-checked').length > 0 ? true : false; //是否有选中商品
@@ -75,7 +75,6 @@ function show(html, cb) { @@ -75,7 +75,6 @@ function show(html, cb) {
75 //隐藏当前Panel 75 //隐藏当前Panel
76 function hide() { 76 function hide() {
77 $('.chose-panel').hide(); 77 $('.chose-panel').hide();
78 - //cbFn = null;  
79 } 78 }
80 79
81 //修改加入购物车的文字和背景 80 //修改加入购物车的文字和背景
@@ -25,7 +25,7 @@ function getProductInfo(skn, promotionId) { @@ -25,7 +25,7 @@ function getProductInfo(skn, promotionId) {
25 tip.show('网络错误'); 25 tip.show('网络错误');
26 return; 26 return;
27 } 27 }
28 - chosePanel.show(html, function(){ 28 + chosePanel.show(html, function() {
29 window.location.href = '/cart/index/orderEnsure?cartType=' + queryString.cartType; 29 window.location.href = '/cart/index/orderEnsure?cartType=' + queryString.cartType;
30 }); 30 });
31 }, function() { 31 }, function() {