|
@@ -31,7 +31,9 @@ let $invoice = $('.invoice'), |
|
@@ -31,7 +31,9 @@ let $invoice = $('.invoice'), |
31
|
buyNumber = $('#buyNumber').val(),
|
31
|
buyNumber = $('#buyNumber').val(),
|
32
|
headerTop = $('#yoho-header').outerHeight(),
|
32
|
headerTop = $('#yoho-header').outerHeight(),
|
33
|
isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
|
33
|
isYohoCoinClick = $coinLi.data('yoho-coin-click') * 1, // 判断有货币是否可以单击
|
34
|
- addressTop = $('.address-wrap').outerHeight();
|
34
|
+ addressTop = $('.address-wrap').outerHeight(),
|
|
|
35
|
+ $message = $('#msg'),
|
|
|
36
|
+ $noPrintPrice = $('.no-print-price');
|
35
|
|
37
|
|
36
|
let orderCont = cookie.get('order-info') && JSON.parse(cookie.get('order-info'));
|
38
|
let orderCont = cookie.get('order-info') && JSON.parse(cookie.get('order-info'));
|
37
|
let invoiceCont = {
|
39
|
let invoiceCont = {
|
|
@@ -417,6 +419,17 @@ $invoice.on('touchend', '.checkbox', function(e) { |
|
@@ -417,6 +419,17 @@ $invoice.on('touchend', '.checkbox', function(e) { |
417
|
e.stopPropagation();
|
419
|
e.stopPropagation();
|
418
|
});
|
420
|
});
|
419
|
|
421
|
|
|
|
422
|
+/**
|
|
|
423
|
+ * 是否打印价格
|
|
|
424
|
+ */
|
|
|
425
|
+$noPrintPrice.on('touchend', '.checkbox', function(e) {
|
|
|
426
|
+ let $this = $(this);
|
|
|
427
|
+
|
|
|
428
|
+ orderInfo('isPrintPrice', $this.hasClass('icon-cb-radio'));
|
|
|
429
|
+ e.preventDefault();
|
|
|
430
|
+ e.stopPropagation();
|
|
|
431
|
+});
|
|
|
432
|
+
|
420
|
$invoice.find('[name="invoice-title"]').on('blur', function() {
|
433
|
$invoice.find('[name="invoice-title"]').on('blur', function() {
|
421
|
orderInfo('invoiceText', $(this).val());
|
434
|
orderInfo('invoiceText', $(this).val());
|
422
|
}).end().find('.invoice-type').on('change', function() {
|
435
|
}).end().find('.invoice-type').on('change', function() {
|
|
@@ -554,6 +567,13 @@ $ticketsMobile.blur(function() { |
|
@@ -554,6 +567,13 @@ $ticketsMobile.blur(function() { |
554
|
// 初始化发票信息内容
|
567
|
// 初始化发票信息内容
|
555
|
invoiceInit();
|
568
|
invoiceInit();
|
556
|
|
569
|
|
|
|
570
|
+// 留言点击滚动屏幕
|
|
|
571
|
+$message.on('click', function() {
|
|
|
572
|
+ $('html,body').animate({
|
|
|
573
|
+ scrollTop: $message.offset().top
|
|
|
574
|
+ }, 500);
|
|
|
575
|
+});
|
|
|
576
|
+
|
557
|
$(window).scroll(function() {
|
577
|
$(window).scroll(function() {
|
558
|
|
578
|
|
559
|
if ($(this).scrollTop() >= (headerTop + addressTop)) {
|
579
|
if ($(this).scrollTop() >= (headerTop + addressTop)) {
|