...
|
...
|
@@ -61,8 +61,6 @@ function invoiceInit() { |
|
|
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
|
|
|
} else {
|
|
|
$('.invoice-type').text('服装(电子)');
|
|
|
|
|
|
// $('.invoice-type').text('服装(纸质)');
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -85,7 +83,6 @@ function isLimitGood() { |
|
|
return getQueryParam().limitproductcode;
|
|
|
}
|
|
|
|
|
|
|
|
|
if (window.getUid() !== orderInfo('uid')) {
|
|
|
order.init();
|
|
|
window.location.reload();
|
...
|
...
|
@@ -192,8 +189,8 @@ function orderCompute() { |
|
|
deliverId = orderInfo('deliveryId'),
|
|
|
data = {
|
|
|
cartType: orderInfo('cartType') || 'ordinary',
|
|
|
deliveryId: orderInfo('deliveryId'),
|
|
|
paymentTypeId: orderInfo('paymentTypeId'),
|
|
|
deliveryId: deliverId, // 配送方式id
|
|
|
paymentType: orderInfo('paymentType'),
|
|
|
yohoCoin: yohoCoin,
|
|
|
sku: productSku,
|
|
|
activityId: activityId
|
...
|
...
|
@@ -283,7 +280,7 @@ function submitOrder() { |
|
|
invoiceTypeId: orderInfo('invoice') ? ($invoice.find('.invoice-type').val() ||
|
|
|
orderInfo('invoiceType')) : null,
|
|
|
remark: msg,
|
|
|
paymentId: orderInfo('paymentTypeId'),
|
|
|
paymentId: orderInfo('paymentTypeId'), // 支付方式id
|
|
|
paymentType: orderInfo('paymentType'), // 支付方式
|
|
|
useYohoCoin: orderInfo('yohoCoin'),
|
|
|
cartToken: $('#cart-token').val()
|
...
|
...
|
@@ -331,7 +328,10 @@ $('.delivery-id').on('touchend', 'li', function() { |
|
|
});
|
|
|
|
|
|
$('.payment-type').on('touchend', 'li', function() {
|
|
|
orderInfo('paymentType', $('.icon-cb-radio', this).data('id'));
|
|
|
var $paymentType = $('.icon-cb-radio', this);
|
|
|
|
|
|
orderInfo('paymentTypeId', $paymentType.data('id')); // 支付方式id
|
|
|
orderInfo('paymentType', $paymentType.data('payment-type')); // 支付方式
|
|
|
});
|
|
|
|
|
|
$('.dispatch-time').on('touchend', 'li', function() {
|
...
|
...
|
@@ -391,14 +391,6 @@ $('#msg').find('textarea').on('blur', function() { |
|
|
orderInfo('msg', $(this).val());
|
|
|
});
|
|
|
|
|
|
$('.pay-mode').on('click', 'li', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
orderInfo('paymentTypeId', $this.data('pay-id'));
|
|
|
orderInfo('paymentType', $this.data('pay-type'));
|
|
|
payType = $this.data('pay-type');
|
|
|
});
|
|
|
|
|
|
$('form').on('submit', function() {
|
|
|
return false;
|
|
|
});
|
...
|
...
|
@@ -446,10 +438,12 @@ $subBlock.on('touchstart', 'li', function() { |
|
|
|
|
|
|
|
|
$('.bill a').on('touchstart', function() {
|
|
|
orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderInfo('paymentType', $('.payment-type .icon-cb-radio').data('id'));
|
|
|
var $paymentType = $('.payment-type .icon-cb-radio');
|
|
|
|
|
|
orderInfo('paymentTypeId', $paymentType.data('id')); // 支付方式id
|
|
|
orderInfo('paymentType', $paymentType.data('payment-type')); // 支付方式
|
|
|
|
|
|
payType = $('.payment-type .icon-cb-radio').data('id');
|
|
|
payType = $paymentType.data('payment-type');
|
|
|
submitOrder();
|
|
|
});
|
|
|
|
...
|
...
|
|