Authored by 梁志锋

购物车中失效商品不能删除

@@ -75,7 +75,9 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { @@ -75,7 +75,9 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
75 }, function() { 75 }, function() {
76 tip.show('网络异常'); 76 tip.show('网络异常');
77 }); 77 });
78 -}).on('touchstart', '.icon-del', function(e) { 78 +});
  79 +
  80 +$('.icon-del').on('touchstart', function(e) {
79 var $this = $(this); 81 var $this = $(this);
80 82
81 e.stopPropagation(); 83 e.stopPropagation();
@@ -112,6 +114,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { @@ -112,6 +114,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
112 } 114 }
113 }, function() { 115 }, function() {
114 tip.show('网络异常'); 116 tip.show('网络异常');
  117 + window.location.reload();
115 }); 118 });
116 }); 119 });
117 }); 120 });