Authored by yyq

删除购物车调整

... ... @@ -221,7 +221,7 @@
<div class="goods-price">
<p>\{{show_price}} x \{{buy_number}}</p>
<p>
<a href="javascript:void(0)" class="cart-goods-del" data-id=\{{goods_incart_id}} data-cheapest=\{{is_cheapest_free}}>删除</a>
<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>
</p>
</div>
</div>
... ...
... ... @@ -187,13 +187,12 @@ function loadCartDetail(key) {
function delCartGoods(data, callback) {
var param = {
return_type: 'jsonp',
method: 'open.Shoppingcart.delone',
shopping_key: data.key,
id: data.id,
isreduce: data.isreduce
product_sku: data.sku,
promotion_id: data.proid,
product_num: data.num
};
$.getJSON('http://www.yohobuy.com/common/shoppingCart/?callback=?', param, function(jsonData) {
$.getJSON('http://www.yohobuy.com/common/delCartGoods/?callback=?', param, function(jsonData) {
var strG = '';
if (jsonData.code === 200) {
... ...