...
|
...
|
@@ -31,7 +31,9 @@ let $invoice = $('.invoice'), |
|
|
buyNumber = $('#buyNumber').val(),
|
|
|
headerTop = $('#yoho-header').outerHeight(),
|
|
|
isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
|
|
|
addressTop = $('.address-wrap').outerHeight();
|
|
|
addressTop = $('.address-wrap').outerHeight(),
|
|
|
$message = $('#msg'),
|
|
|
$noPrintPrice = $('.no-print-price');
|
|
|
|
|
|
let orderCont = cookie.get('order-info') && JSON.parse(cookie.get('order-info'));
|
|
|
let invoiceCont = {
|
...
|
...
|
@@ -287,6 +289,7 @@ function submitOrder() { |
|
|
invoiceType: orderInfo('invoice') ? ($invoice.find('.invoice-type').val() ||
|
|
|
orderInfo('invoiceType')) : null,
|
|
|
msg: msg,
|
|
|
isPrintPrice: orderInfo('isPrintPrice'),
|
|
|
paymentTypeId: orderInfo('paymentTypeId'),
|
|
|
paymentType: orderInfo('paymentType'), // 支付方式
|
|
|
couponCode: orderInfo('couponCode'),
|
...
|
...
|
@@ -417,6 +420,17 @@ $invoice.on('touchend', '.checkbox', function(e) { |
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 是否打印价格
|
|
|
*/
|
|
|
$noPrintPrice.on('touchend', '.checkbox', function(e) {
|
|
|
let $this = $(this);
|
|
|
|
|
|
orderInfo('isPrintPrice', $this.hasClass('icon-cb-radio') ? 'N' : 'Y');
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
$invoice.find('[name="invoice-title"]').on('blur', function() {
|
|
|
orderInfo('invoiceText', $(this).val());
|
|
|
}).end().find('.invoice-type').on('change', function() {
|
...
|
...
|
@@ -554,6 +568,13 @@ $ticketsMobile.blur(function() { |
|
|
// 初始化发票信息内容
|
|
|
invoiceInit();
|
|
|
|
|
|
// 留言点击滚动屏幕
|
|
|
$message.on('click', function() {
|
|
|
$('html,body').animate({
|
|
|
scrollTop: $message.offset().top
|
|
|
}, 500);
|
|
|
});
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
|
|
|
if ($(this).scrollTop() >= (headerTop + addressTop)) {
|
...
|
...
|
|