Authored by 郭成尧

Merge branch 'release/5.3' into gray

@@ -333,25 +333,23 @@ function submitOrder(times) { @@ -333,25 +333,23 @@ function submitOrder(times) {
333 $('.order-good').each(function() { 333 $('.order-good').each(function() {
334 PRD_SKN.push($(this).data('id')); 334 PRD_SKN.push($(this).data('id'));
335 PRD_SKU.push($(this).data('skn')); 335 PRD_SKU.push($(this).data('skn'));
336 - }) 336 + });
337 337
338 /* tar add 161116 */ 338 /* tar add 161116 */
339 - setTimeout(function() {  
340 - if (window._yas && window._yas.sendCustomInfo) {  
341 - window._yas.sendCustomInfo({  
342 - op: 'YB_SC_TOPAY_CLICK',  
343 - param: JSON.stringify({  
344 - C_ID: window._ChannelVary[cookie('_Channel')],  
345 - ORDER_CODE: res.data.order_code,  
346 - PRD_NUM: $('#goods-num').val(),  
347 - ORDER_AMOUNT: res.data.order_amount,  
348 - UNIONCOOKIE: res.data.unionCookie || '',  
349 - PRD_SKN: PRD_SKN.join(','),  
350 - PRD_SKU: PRD_SKU.join(',')  
351 - })  
352 - }, true);  
353 - }  
354 - }, 300) 339 + if (window._yas && window._yas.sendCustomInfo) {
  340 + window._yas.sendCustomInfo({
  341 + op: 'YB_SC_TOPAY_CLICK',
  342 + param: JSON.stringify({
  343 + C_ID: window._ChannelVary[cookie('_Channel')],
  344 + ORDER_CODE: res.data.order_code,
  345 + PRD_NUM: $('#goods-num').val(),
  346 + ORDER_AMOUNT: res.data.order_amount,
  347 + UNIONCOOKIE: res.data.unionCookie || '',
  348 + PRD_SKN: PRD_SKN.join(','),
  349 + PRD_SKU: PRD_SKU.join(',')
  350 + })
  351 + }, true);
  352 + }
355 353
356 window.setCookie('order-info', ''); 354 window.setCookie('order-info', '');
357 window.location.href = url; 355 window.location.href = url;