Authored by 郭成尧

point-push

@@ -245,6 +245,19 @@ orderHammer.on('tap', function(e) { @@ -245,6 +245,19 @@ orderHammer.on('tap', function(e) {
245 } else if ($cur.closest('.refund').length > 0) { 245 } else if ($cur.closest('.refund').length > 0) {
246 // 申请退款 246 // 申请退款
247 $refundReaMask.css('visibility', 'visible'); 247 $refundReaMask.css('visibility', 'visible');
  248 +
  249 + /**
  250 + * 埋点
  251 + */
  252 + if (window._yas && window._yas.sendCustomInfo) {
  253 + window._yas.sendCustomInfo({
  254 + op: 'YB_ORDER_REFUND_C',
  255 + param: JSON.stringify({
  256 + C_ID: window._ChannelVary[window.cookie('_Channel')],
  257 + ORD_NUM: id
  258 + })
  259 + }, true);
  260 + }
248 } else if ($cur.closest('.order-goods').length > 0) { 261 } else if ($cur.closest('.order-goods').length > 0) {
249 262
250 // Location to order detail 263 // Location to order detail
@@ -120,6 +120,19 @@ optHammer.on('tap', function(e) { @@ -120,6 +120,19 @@ optHammer.on('tap', function(e) {
120 $reaMask.css('visibility', 'visible'); 120 $reaMask.css('visibility', 'visible');
121 } else if ($cur.hasClass('btn-refund')) { 121 } else if ($cur.hasClass('btn-refund')) {
122 $refundReaMask.css('visibility', 'visible'); 122 $refundReaMask.css('visibility', 'visible');
  123 +
  124 + /**
  125 + * 埋点
  126 + */
  127 + if (window._yas && window._yas.sendCustomInfo) {
  128 + window._yas.sendCustomInfo({
  129 + op: 'YB_ORDER_REFUND_C',
  130 + param: JSON.stringify({
  131 + C_ID: window._ChannelVary[window.cookie('_Channel')],
  132 + ORD_NUM: orderId
  133 + })
  134 + }, true);
  135 + }
123 } else if ($cur.hasClass('btn-rebuy')) { 136 } else if ($cur.hasClass('btn-rebuy')) {
124 $.ajax({ 137 $.ajax({
125 type: 'GET', 138 type: 'GET',
@@ -141,6 +154,19 @@ optHammer.on('tap', function(e) { @@ -141,6 +154,19 @@ optHammer.on('tap', function(e) {
141 if ($ownerInfo.data('changeable') === true) { 154 if ($ownerInfo.data('changeable') === true) {
142 $ownerInfo.find('.rest').show(); 155 $ownerInfo.find('.rest').show();
143 $ownerInfo.on('touchend', function() { 156 $ownerInfo.on('touchend', function() {
  157 + /**
  158 + * 埋点
  159 + */
  160 + if (window._yas && window._yas.sendCustomInfo) {
  161 + window._yas.sendCustomInfo({
  162 + op: 'YB_ORDER_MODIFY_ADDRESS_C',
  163 + param: JSON.stringify({
  164 + C_ID: window._ChannelVary[window.cookie('_Channel')],
  165 + ORD_NUM: orderId
  166 + })
  167 + }, true);
  168 + }
  169 +
144 location.href = $ownerInfo.data('url'); 170 location.href = $ownerInfo.data('url');
145 }); 171 });
146 } 172 }