...
|
...
|
@@ -119,7 +119,6 @@ function cartDel(data, delUrl, cookieList) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
//购物车表单 删除商品
|
|
|
$payWapper.on('click', '.cart-del-btn', function() {
|
|
|
// new Confirm({
|
...
|
...
|
@@ -127,10 +126,9 @@ $payWapper.on('click', '.cart-del-btn', function() { |
|
|
// content: '<h4><i class="iconfont"></i>删除商品</h4>' +
|
|
|
// '<small>确定要从购物车中删除该商品吗?</small>'
|
|
|
// }).show();
|
|
|
console.log(99);
|
|
|
RConfirm(
|
|
|
'<i class="iconfont tip-icon"></i>确定要解除绑定',
|
|
|
'您确定要解除绑定?',
|
|
|
'<h3><i class="iconfont"></i>删除商品</h3>'+'<p>确定要从购物车中删除该商品吗?</p>',
|
|
|
|
|
|
function() {
|
|
|
$.ajax({
|
|
|
url: url,
|
...
|
...
|
@@ -141,8 +139,6 @@ $payWapper.on('click', '.cart-del-btn', function() { |
|
|
);
|
|
|
});
|
|
|
|
|
|
=======
|
|
|
>>>>>>> 3a2b8fa435f608cc40704e327ea3ee303f3c3da4
|
|
|
// 凑单图片懒加载
|
|
|
var togetherDialog = {};
|
|
|
var dialogTpl = require('hbs/cart/cart-togetherGoods.hbs');
|
...
|
...
|
@@ -179,7 +175,6 @@ function showTogetherGoods(id) { |
|
|
|
|
|
// 凑单弹框 详情切换
|
|
|
$('body').on('click', '.piclist li', function() {
|
|
|
console.log(99999);
|
|
|
pacList = $(this).index();
|
|
|
$('.detail-bigpic:not(.none) .piclist li').removeClass('active');
|
|
|
$(this).addClass('active');
|
...
|
...
|
@@ -266,30 +261,29 @@ $('body').on('click', '.cut, .add', function() { |
|
|
|
|
|
// 凑单弹框 商品信息弹出框,加入收藏夹
|
|
|
$cartGoodsDetail.on('click', '.btn-favCount', function() {
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
|
url: '',
|
|
|
data: {
|
|
|
productId: productId,
|
|
|
type: 'add'
|
|
|
}
|
|
|
}).then(function(d) {
|
|
|
if (d.code === 200) {
|
|
|
new Alert(d.message).show();
|
|
|
} else if (d.code === 403) {
|
|
|
if (d.data.url) {
|
|
|
window.location = d.data.url;
|
|
|
}
|
|
|
} else {
|
|
|
new Alert(d.message).show();
|
|
|
}
|
|
|
});
|
|
|
// $.ajax({
|
|
|
// type: 'POST',
|
|
|
// dataType: 'json',
|
|
|
// url: '',
|
|
|
// data: {
|
|
|
// productId: productId,
|
|
|
// type: 'add'
|
|
|
// }
|
|
|
// }).then(function(d) {
|
|
|
// if (d.code === 200) {
|
|
|
// new Alert(d.message).show();
|
|
|
// } else if (d.code === 403) {
|
|
|
// if (d.data.url) {
|
|
|
// window.location = d.data.url;
|
|
|
// }
|
|
|
// } else {
|
|
|
// new Alert(d.message).show();
|
|
|
// }
|
|
|
// });
|
|
|
});
|
|
|
|
|
|
|
|
|
// 购物车列表 赠品
|
|
|
<<<<<<< HEAD
|
|
|
//购物车列表 显示
|
|
|
$('.shop-cart').on('click', '.gift-sell .btn-clear', function() {
|
|
|
|
...
|
...
|
@@ -297,9 +291,8 @@ $('.shop-cart').on('click', '.gift-sell .btn-clear', function() { |
|
|
showPromotion(tid);
|
|
|
|
|
|
});
|
|
|
=======
|
|
|
// 购物车列表 显示
|
|
|
>>>>>>> 3a2b8fa435f608cc40704e327ea3ee303f3c3da4
|
|
|
|
|
|
function showPromotion(id) {
|
|
|
|
|
|
if (!id) {
|
...
|
...
|
@@ -423,13 +416,9 @@ $goodsChoose.on('click', '.choose-color .dt', function() { |
|
|
$('.bigImg').addClass('none').eq($(this).index()).removeClass('none');
|
|
|
});
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
//结算
|
|
|
$paySum.on('click','.btn-account', function() {
|
|
|
=======
|
|
|
// 结算
|
|
|
$paySum.on('click', '.btn-account', function() {
|
|
|
>>>>>>> 3a2b8fa435f608cc40704e327ea3ee303f3c3da4
|
|
|
understock = '';
|
|
|
|
|
|
// if ($('.pay-wapper .cart-item-checked').parents('.tr').find('.tipNoStore').length > 0) {
|
...
|
...
|
@@ -479,8 +468,5 @@ $('.shop-cart').on('click', giftBtn, function() { |
|
|
console.log(htmlJson);
|
|
|
|
|
|
});
|
|
|
<<<<<<< HEAD
|
|
|
=======
|
|
|
|
|
|
>>>>>>> 3a2b8fa435f608cc40704e327ea3ee303f3c3da4
|
|
|
require('./cart-action'); |
|
|
// require('./cart-action'); |
...
|
...
|
|