Authored by zhangxiaoru

埋点

@@ -174,7 +174,7 @@ $invoice.on('touchend', '.checkbox', function() { @@ -174,7 +174,7 @@ $invoice.on('touchend', '.checkbox', function() {
174 }) 174 })
175 }, true); 175 }, true);
176 } 176 }
177 - }, 200) 177 + }, 200);
178 }); 178 });
179 179
180 180
@@ -311,7 +311,9 @@ function submitOrder(times) { @@ -311,7 +311,9 @@ function submitOrder(times) {
311 times: times || 1 311 times: times || 1
312 } 312 }
313 }).then(function(res) { 313 }).then(function(res) {
314 - var url; 314 + var url,
  315 + PRD_SKN = [],
  316 + PRD_SKU = [];
315 317
316 if (!res) { 318 if (!res) {
317 tip.show('系统繁忙,请稍后再试!'); 319 tip.show('系统繁忙,请稍后再试!');
@@ -319,8 +321,6 @@ function submitOrder(times) { @@ -319,8 +321,6 @@ function submitOrder(times) {
319 } 321 }
320 322
321 if (res.code === 200) { 323 if (res.code === 200) {
322 - var PRD_SKN = [],  
323 - PRD_SKU = [];  
324 324
325 if (payType === 2) { 325 if (payType === 2) {
326 326
@@ -330,9 +330,6 @@ function submitOrder(times) { @@ -330,9 +330,6 @@ function submitOrder(times) {
330 url = '/home/orders/pay?order_code=' + res.data.order_code; 330 url = '/home/orders/pay?order_code=' + res.data.order_code;
331 } 331 }
332 332
333 - var PRD_SKN = [],  
334 - PRD_SKU = [];  
335 -  
336 $('.order-good').each(function() { 333 $('.order-good').each(function() {
337 PRD_SKN.push($(this).data('id')); 334 PRD_SKN.push($(this).data('id'));
338 PRD_SKU.push($(this).data('skn')); 335 PRD_SKU.push($(this).data('skn'));
@@ -354,8 +351,7 @@ function submitOrder(times) { @@ -354,8 +351,7 @@ function submitOrder(times) {
354 }) 351 })
355 }, true); 352 }, true);
356 } 353 }
357 - }, 200)  
358 - 354 + }, 300)
359 355
360 window.setCookie('order-info', ''); 356 window.setCookie('order-info', '');
361 window.location.href = url; 357 window.location.href = url;
@@ -507,7 +503,7 @@ $subBlock.on('touchstart', 'li', function() { @@ -507,7 +503,7 @@ $subBlock.on('touchstart', 'li', function() {
507 $('.bill a').on('touchstart', function() { 503 $('.bill a').on('touchstart', function() {
508 if (isTickets) { 504 if (isTickets) {
509 ticketsConfirm(); 505 ticketsConfirm();
510 - return ; 506 + return;
511 507
512 } 508 }
513 orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id')); 509 orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id'));
@@ -531,7 +527,7 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') { @@ -531,7 +527,7 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
531 } 527 }
532 528
533 //电子票下单 529 //电子票下单
534 -function ticketsConfirm () { 530 +function ticketsConfirm() {
535 531
536 if(!$ticketsMobile.val()) { 532 if(!$ticketsMobile.val()) {
537 tip.show('手机号必填'); 533 tip.show('手机号必填');
@@ -215,7 +215,7 @@ $('.box').on('touchstart', function() { @@ -215,7 +215,7 @@ $('.box').on('touchstart', function() {
215 215
216 if (window._yas && window._yas.sendCustomInfo) { 216 if (window._yas && window._yas.sendCustomInfo) {
217 window._yas.sendCustomInfo({ 217 window._yas.sendCustomInfo({
218 - op: 'YB_SC_PAYMENT', 218 + op: 'YB_SC_PAYMENT_TOPAY_CLICK',
219 param: JSON.stringify({ 219 param: JSON.stringify({
220 C_ID: window._ChannelVary[cookie('_Channel')], 220 C_ID: window._ChannelVary[cookie('_Channel')],
221 ORDER_CODE: $('.order-code').val(), 221 ORDER_CODE: $('.order-code').val(),