Authored by yyq

删除购物车调整

@@ -221,7 +221,7 @@ @@ -221,7 +221,7 @@
221 <div class="goods-price"> 221 <div class="goods-price">
222 <p>\{{show_price}} x \{{buy_number}}</p> 222 <p>\{{show_price}} x \{{buy_number}}</p>
223 <p> 223 <p>
224 - <a href="javascript:void(0)" class="cart-goods-del" data-id=\{{goods_incart_id}} data-cheapest=\{{is_cheapest_free}}>删除</a> 224 + <a href="javascript:void(0)" class="cart-goods-del" data-id=\{{goods_incart_id}} data-cheapest=\{{is_cheapest_free}} data-sku=\{{product_sku}} data-proid=\{{promotion_id}} data-num=\{{buy_number}}>删除</a>
225 </p> 225 </p>
226 </div> 226 </div>
227 </div> 227 </div>
@@ -187,13 +187,12 @@ function loadCartDetail(key) { @@ -187,13 +187,12 @@ function loadCartDetail(key) {
187 function delCartGoods(data, callback) { 187 function delCartGoods(data, callback) {
188 var param = { 188 var param = {
189 return_type: 'jsonp', 189 return_type: 'jsonp',
190 - method: 'open.Shoppingcart.delone',  
191 - shopping_key: data.key,  
192 - id: data.id,  
193 - isreduce: data.isreduce 190 + product_sku: data.sku,
  191 + promotion_id: data.proid,
  192 + product_num: data.num
194 }; 193 };
195 194
196 - $.getJSON('http://www.yohobuy.com/common/shoppingCart/?callback=?', param, function(jsonData) { 195 + $.getJSON('http://www.yohobuy.com/common/delCartGoods/?callback=?', param, function(jsonData) {
197 var strG = ''; 196 var strG = '';
198 197
199 if (jsonData.code === 200) { 198 if (jsonData.code === 200) {