Authored by 沈志敏

wap 领券分享埋点

@@ -14,7 +14,7 @@ const getPageInfo = (pageInfo) => { @@ -14,7 +14,7 @@ const getPageInfo = (pageInfo) => {
14 dest.shareImg = pageInfo.data.shareImgUrl; 14 dest.shareImg = pageInfo.data.shareImgUrl;
15 dest.shareLink = pageInfo.data.shareUrl; 15 dest.shareLink = pageInfo.data.shareUrl;
16 dest.code = pageInfo.code; 16 dest.code = pageInfo.code;
17 - dest.activityID = pageInfo.id; 17 + dest.activityID = pageInfo.data.id;
18 dest.title = pageInfo.data.h5Title; 18 dest.title = pageInfo.data.h5Title;
19 dest.activityDesc = pageInfo.data.activityDesc; 19 dest.activityDesc = pageInfo.data.activityDesc;
20 dest.formatActivityDesc = pageInfo.data.formatActivityDesc; 20 dest.formatActivityDesc = pageInfo.data.formatActivityDesc;
@@ -43,6 +43,7 @@ const getUserStatus = (param) => { @@ -43,6 +43,7 @@ const getUserStatus = (param) => {
43 var dest = {}; 43 var dest = {};
44 44
45 dest.code = param.code; 45 dest.code = param.code;
  46 + dest.coupon = param && param.data && param.data.coupon;
46 dest.returnCode = param && param.data && param.data.returnCode; 47 dest.returnCode = param && param.data && param.data.returnCode;
47 dest.mobile = param && param.data && param.data.mobile; 48 dest.mobile = param && param.data && param.data.mobile;
48 if (param && param.data) { 49 if (param && param.data) {
@@ -154,10 +154,15 @@ $('.phone-input-content div').on('click', function() { @@ -154,10 +154,15 @@ $('.phone-input-content div').on('click', function() {
154 }, 154 },
155 success: function(data) { 155 success: function(data) {
156 if (data.result.code === 200) { 156 if (data.result.code === 200) {
157 - if (window._yas && window._yas.sendCustomInfo) { 157 + if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
158 window._yas.sendCustomInfo({ 158 window._yas.sendCustomInfo({
159 - activityID: activityID,  
160 - returnCode: data.result.returnCode 159 + op: 'YB_GET_COUP',
  160 + param: JSON.stringify({
  161 + PAGE_NM: document.title,
  162 + PAGE_URL: location.href,
  163 + COUP_ID: data.result.coupon,
  164 + TEL_ID: $('#phone').val()
  165 + })
161 }, true); 166 }, true);
162 } 167 }
163 if (!data.result.newUser) { 168 if (!data.result.newUser) {
@@ -235,10 +240,15 @@ $('.vertify-input-content').on('click', '.get', function() { @@ -235,10 +240,15 @@ $('.vertify-input-content').on('click', '.get', function() {
235 dataType: 'json', 240 dataType: 'json',
236 success: function(data) { 241 success: function(data) {
237 if (data.result.code === 200) { 242 if (data.result.code === 200) {
238 - if (window._yas && window._yas.sendCustomInfo) { 243 + if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
239 window._yas.sendCustomInfo({ 244 window._yas.sendCustomInfo({
240 - activityID: activityID,  
241 - returnCode: data.result.returnCode 245 + op: 'YB_GET_COUP',
  246 + param: JSON.stringify({
  247 + PAGE_NM: document.title,
  248 + PAGE_URL: location.href,
  249 + COUP_ID: data.result.coupon,
  250 + TEL_ID: $('#phone').val()
  251 + })
242 }, true); 252 }, true);
243 } 253 }
244 if (!data.result.newUser) { 254 if (!data.result.newUser) {