...
|
...
|
@@ -243,6 +243,7 @@ payWay = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
// 配送方式
|
|
|
deliveryWay = {
|
|
|
$deliveryType: $('.delivery-way-wrap .check-btn'),
|
|
|
$deliveryTime: $('.delivery-time-wrap .check-btn'),
|
...
|
...
|
@@ -350,6 +351,7 @@ deliveryWay = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
// jit拆单
|
|
|
multiPackage = {
|
|
|
$el: $('.multi-package-row'),
|
|
|
init: function() {
|
...
|
...
|
@@ -426,6 +428,7 @@ multiPackage = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
// 优惠券
|
|
|
coupon = {
|
|
|
$el: $('#use-coupons'),
|
|
|
init: function() {
|
...
|
...
|
@@ -537,6 +540,7 @@ coupon = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
// 有货币
|
|
|
yohoCoin = {
|
|
|
$el: $('#yoho-coin-box'),
|
|
|
init: function() {
|
...
|
...
|
@@ -559,18 +563,21 @@ yohoCoin = { |
|
|
var that = this;
|
|
|
|
|
|
this.$el.on('click', '.coin-use-btn', function() {
|
|
|
if (order.coin * 1 === this.maxCoin * 1) {
|
|
|
return;
|
|
|
if (order.coin * 1 !== this.maxCoin * 1) {
|
|
|
compute(that.maxCoin);
|
|
|
}
|
|
|
|
|
|
compute(that.maxCoin);
|
|
|
that.close();
|
|
|
}).on('click', '.coin-cancel-btn', function() {
|
|
|
if (order.coin * 1 === 0) {
|
|
|
return;
|
|
|
if (order.coin * 1 !== 0) {
|
|
|
compute();
|
|
|
}
|
|
|
|
|
|
compute();
|
|
|
that.close();
|
|
|
});
|
|
|
},
|
|
|
close: function() {
|
|
|
this.$el.prev().children('.locker-switch').trigger('click');
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|