Authored by 郭成尧

point

@@ -264,11 +264,8 @@ orderHammer.on('tap', function(e) { @@ -264,11 +264,8 @@ orderHammer.on('tap', function(e) {
264 }, function() { 264 }, function() {
265 dialog.hideDialog(); 265 dialog.hideDialog();
266 $refundReaMask.css('visibility', 'visible'); 266 $refundReaMask.css('visibility', 'visible');
267 - });  
268 267
269 - /**  
270 - * 埋点  
271 - */ 268 + // 埋点
272 if (window._yas && window._yas.sendCustomInfo) { 269 if (window._yas && window._yas.sendCustomInfo) {
273 window._yas.sendCustomInfo({ 270 window._yas.sendCustomInfo({
274 op: 'YB_ORDER_REFUND_C', 271 op: 'YB_ORDER_REFUND_C',
@@ -278,6 +275,7 @@ orderHammer.on('tap', function(e) { @@ -278,6 +275,7 @@ orderHammer.on('tap', function(e) {
278 }) 275 })
279 }, true); 276 }, true);
280 } 277 }
  278 + });
281 } else if ($cur.closest('.order-goods').length > 0) { 279 } else if ($cur.closest('.order-goods').length > 0) {
282 280
283 // Location to order detail 281 // Location to order detail
@@ -126,19 +126,6 @@ optHammer.on('tap', function(e) { @@ -126,19 +126,6 @@ optHammer.on('tap', function(e) {
126 // $reaMask.css('visibility', 'visible'); 126 // $reaMask.css('visibility', 'visible');
127 } else if ($cur.hasClass('btn-refund')) { 127 } else if ($cur.hasClass('btn-refund')) {
128 // $refundReaMask.css('visibility', 'visible'); 128 // $refundReaMask.css('visibility', 'visible');
129 -  
130 - /**  
131 - * 埋点  
132 - */  
133 - if (window._yas && window._yas.sendCustomInfo) {  
134 - window._yas.sendCustomInfo({  
135 - op: 'YB_ORDER_REFUND_C',  
136 - param: JSON.stringify({  
137 - C_ID: window._ChannelVary[window.cookie('_Channel')],  
138 - ORD_NUM: orderId  
139 - })  
140 - }, true);  
141 - }  
142 } else if ($cur.hasClass('btn-rebuy')) { 129 } else if ($cur.hasClass('btn-rebuy')) {
143 $.ajax({ 130 $.ajax({
144 type: 'GET', 131 type: 'GET',
@@ -374,6 +361,17 @@ $sureRefund.on('click', function() { @@ -374,6 +361,17 @@ $sureRefund.on('click', function() {
374 }, function() { 361 }, function() {
375 dialog.hideDialog(); 362 dialog.hideDialog();
376 $refundReaMask.css('visibility', 'visible'); 363 $refundReaMask.css('visibility', 'visible');
  364 +
  365 + // 埋点
  366 + if (window._yas && window._yas.sendCustomInfo) {
  367 + window._yas.sendCustomInfo({
  368 + op: 'YB_ORDER_REFUND_C',
  369 + param: JSON.stringify({
  370 + C_ID: window._ChannelVary[window.cookie('_Channel')],
  371 + ORD_NUM: orderId
  372 + })
  373 + }, true);
  374 + }
377 }); 375 });
378 }); 376 });
379 377