...
|
...
|
@@ -103,17 +103,6 @@ function chooseColor(index) { |
|
|
}
|
|
|
|
|
|
function arrivalNotice() {
|
|
|
// $.ajax({
|
|
|
// type: 'POST',
|
|
|
// url: '/shopping/cart/add',
|
|
|
// data: {
|
|
|
// productSku: sku,
|
|
|
// buyNumber: 1
|
|
|
// }
|
|
|
// }).then(function(data) {
|
|
|
// if (data.code === 200) {
|
|
|
// }
|
|
|
// });
|
|
|
var tip = new Dialog({
|
|
|
className: 'arr-notice-dialog',
|
|
|
content: noticeSuccFn(),
|
...
|
...
|
@@ -123,6 +112,7 @@ function arrivalNotice() { |
|
|
btnClass: ['sure'],
|
|
|
name: '确定',
|
|
|
cb: function() {
|
|
|
// 目前没有到货通知接口,前端只有展示逻辑
|
|
|
tip.close();
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -235,21 +225,24 @@ $('.arr-notice').click(function() { |
|
|
$addToBag.click(function() {
|
|
|
var sku = getBuyProduct();
|
|
|
|
|
|
if (sku) {
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/shopping/cart/add',
|
|
|
data: {
|
|
|
productSku: sku,
|
|
|
buyNumber: 1
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$tradeWrapper.slideUp(SLIDETIME);
|
|
|
$balanceWrapper.slideDown(SLIDETIME);
|
|
|
}
|
|
|
});
|
|
|
if (!sku) {
|
|
|
$sizeText.html('<em class="blue">请选择尺码</em>');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/shopping/cart/add',
|
|
|
data: {
|
|
|
productSku: sku,
|
|
|
buyNumber: 1
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$tradeWrapper.slideUp(SLIDETIME);
|
|
|
$balanceWrapper.slideDown(SLIDETIME);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 继续购物
|
...
|
...
|
|