|
@@ -26,9 +26,9 @@ var $invoice = $('.invoice'), |
|
@@ -26,9 +26,9 @@ var $invoice = $('.invoice'), |
26
|
isTickets = $('#ticketsPage').val(),
|
26
|
isTickets = $('#ticketsPage').val(),
|
27
|
productSku = $('#productSku').val(),
|
27
|
productSku = $('#productSku').val(),
|
28
|
buyNumber = $('#buyNumber').val(),
|
28
|
buyNumber = $('#buyNumber').val(),
|
29
|
- headerTop = $("#yoho-header").outerHeight(),
|
|
|
30
|
- isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, //判断有货币是否可以单击
|
|
|
31
|
- addressTop = $(".address-wrap").outerHeight();
|
29
|
+ headerTop = $('#yoho-header').outerHeight(),
|
|
|
30
|
+ isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
|
|
|
31
|
+ addressTop = $('.address-wrap').outerHeight();
|
32
|
|
32
|
|
33
|
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
33
|
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
34
|
var invoiceCont = {
|
34
|
var invoiceCont = {
|
|
@@ -55,7 +55,8 @@ function invoiceInit() { |
|
@@ -55,7 +55,8 @@ function invoiceInit() { |
55
|
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
|
55
|
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
|
56
|
} else {
|
56
|
} else {
|
57
|
$('.invoice-type').text('服装(电子)');
|
57
|
$('.invoice-type').text('服装(电子)');
|
58
|
- //$('.invoice-type').text('服装(纸质)');
|
58
|
+
|
|
|
59
|
+ // $('.invoice-type').text('服装(纸质)');
|
59
|
}
|
60
|
}
|
60
|
}
|
61
|
}
|
61
|
|
62
|
|
|
@@ -193,15 +194,15 @@ function orderCompute() { |
|
@@ -193,15 +194,15 @@ function orderCompute() { |
193
|
skuList: isLimitGood() ? orderInfo('skuList') : undefined
|
194
|
skuList: isLimitGood() ? orderInfo('skuList') : undefined
|
194
|
};
|
195
|
};
|
195
|
|
196
|
|
196
|
- //门票
|
197
|
+ // 门票
|
197
|
if (isTickets) {
|
198
|
if (isTickets) {
|
198
|
data = {
|
199
|
data = {
|
199
|
type: 'tickets',
|
200
|
type: 'tickets',
|
200
|
productSku: productSku,
|
201
|
productSku: productSku,
|
201
|
buyNumber: buyNumber,
|
202
|
buyNumber: buyNumber,
|
202
|
yohoCoin: yohoCoin
|
203
|
yohoCoin: yohoCoin
|
203
|
- }
|
|
|
204
|
- };
|
204
|
+ };
|
|
|
205
|
+ }
|
205
|
|
206
|
|
206
|
loading.showLoadingMask();
|
207
|
loading.showLoadingMask();
|
207
|
$.ajax({
|
208
|
$.ajax({
|
|
@@ -306,7 +307,7 @@ function submitOrder() { |
|
@@ -306,7 +307,7 @@ function submitOrder() { |
306
|
// 货到付款的进入订单页面
|
307
|
// 货到付款的进入订单页面
|
307
|
url = '/home/orderDetail?order_code=' + res.data.order_code;
|
308
|
url = '/home/orderDetail?order_code=' + res.data.order_code;
|
308
|
} else {
|
309
|
} else {
|
309
|
- url = '/home/orders/pay?order_code=' + res.data.order_code;
|
310
|
+ url = '/cart/index/new/pay?order_code=' + res.data.order_code;
|
310
|
}
|
311
|
}
|
311
|
|
312
|
|
312
|
/* tar add 161116 */
|
313
|
/* tar add 161116 */
|
|
@@ -314,7 +315,7 @@ function submitOrder() { |
|
@@ -314,7 +315,7 @@ function submitOrder() { |
314
|
window._yas.sendCustomInfo({
|
315
|
window._yas.sendCustomInfo({
|
315
|
op: 'YB_SC_TOPAY_CLICK',
|
316
|
op: 'YB_SC_TOPAY_CLICK',
|
316
|
param: JSON.stringify({
|
317
|
param: JSON.stringify({
|
317
|
- C_ID: window._ChannelVary[cookie('_Channel')],
|
318
|
+ C_ID: window._ChannelVary[window.cookie('_Channel')],
|
318
|
ORDER_CODE: res.data.order_code,
|
319
|
ORDER_CODE: res.data.order_code,
|
319
|
PRD_NUM: $('#goods-num').val(),
|
320
|
PRD_NUM: $('#goods-num').val(),
|
320
|
ORDER_AMOUNT: res.data.order_amount,
|
321
|
ORDER_AMOUNT: res.data.order_amount,
|
|
@@ -528,7 +529,7 @@ function ticketsConfirm() { |
|
@@ -528,7 +529,7 @@ function ticketsConfirm() { |
528
|
}
|
529
|
}
|
529
|
|
530
|
|
530
|
// 校验手机号
|
531
|
// 校验手机号
|
531
|
-$ticketsMobile.blur(function(e) {
|
532
|
+$ticketsMobile.blur(function() {
|
532
|
var reg = /^[0123456789]{1,30}$/;
|
533
|
var reg = /^[0123456789]{1,30}$/;
|
533
|
var mobile = $ticketsMobile.val();
|
534
|
var mobile = $ticketsMobile.val();
|
534
|
|
535
|
|