Authored by 沈志敏

wap 领券分享埋点

... ... @@ -14,7 +14,7 @@ const getPageInfo = (pageInfo) => {
dest.shareImg = pageInfo.data.shareImgUrl;
dest.shareLink = pageInfo.data.shareUrl;
dest.code = pageInfo.code;
dest.activityID = pageInfo.id;
dest.activityID = pageInfo.data.id;
dest.title = pageInfo.data.h5Title;
dest.activityDesc = pageInfo.data.activityDesc;
dest.formatActivityDesc = pageInfo.data.formatActivityDesc;
... ... @@ -43,6 +43,7 @@ const getUserStatus = (param) => {
var dest = {};
dest.code = param.code;
dest.coupon = param && param.data && param.data.coupon;
dest.returnCode = param && param.data && param.data.returnCode;
dest.mobile = param && param.data && param.data.mobile;
if (param && param.data) {
... ...
... ... @@ -154,10 +154,15 @@ $('.phone-input-content div').on('click', function() {
},
success: function(data) {
if (data.result.code === 200) {
if (window._yas && window._yas.sendCustomInfo) {
if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
window._yas.sendCustomInfo({
activityID: activityID,
returnCode: data.result.returnCode
op: 'YB_GET_COUP',
param: JSON.stringify({
PAGE_NM: document.title,
PAGE_URL: location.href,
COUP_ID: data.result.coupon,
TEL_ID: $('#phone').val()
})
}, true);
}
if (!data.result.newUser) {
... ... @@ -235,10 +240,15 @@ $('.vertify-input-content').on('click', '.get', function() {
dataType: 'json',
success: function(data) {
if (data.result.code === 200) {
if (window._yas && window._yas.sendCustomInfo) {
if (window._yas && window._yas.sendCustomInfo && data.result.coupon) {
window._yas.sendCustomInfo({
activityID: activityID,
returnCode: data.result.returnCode
op: 'YB_GET_COUP',
param: JSON.stringify({
PAGE_NM: document.title,
PAGE_URL: location.href,
COUP_ID: data.result.coupon,
TEL_ID: $('#phone').val()
})
}, true);
}
if (!data.result.newUser) {
... ...