...
|
...
|
@@ -98,8 +98,8 @@ function submitOrder() { |
|
|
data: {
|
|
|
addressId: orderInfo('addressId'),
|
|
|
cartType: orderInfo('cartType'),
|
|
|
deliveryId: orderInfo('deliveryId'),
|
|
|
deliveryTimeId: orderInfo('deliveryTimeId'),
|
|
|
deliveryId: orderInfo('deliveryId') || 1,
|
|
|
deliveryTimeId: orderInfo('deliveryTimeId') || 1,
|
|
|
invoiceText: orderInfo('invoiceText'),
|
|
|
invoiceType: orderInfo('invoiceType'),
|
|
|
msg: orderInfo('msg'),
|
...
|
...
|
@@ -109,13 +109,24 @@ function submitOrder() { |
|
|
yohoCoin: orderInfo('yohoCoin')
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
console.log(res);
|
|
|
if (!res) {
|
|
|
tip.show('网络出错');
|
|
|
}
|
|
|
if (res.code !== 200) {
|
|
|
tip.show(res.message || '网络出错');
|
|
|
} else {
|
|
|
console.log(1);
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络出错');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 界面点击,状态存 cookie
|
|
|
if (!orderInfo('addressId')) {
|
|
|
orderInfo('addressId', $('.address-wrap').data('address-id'));
|
|
|
}
|
|
|
|
|
|
$('.dispatch-mode').on('touchend', 'li', function() {
|
|
|
orderInfo('deliveryId', $(this).data('id'));
|
|
|
orderCompute();
|
...
|
...
|
|