Commit 98fab2ad authored by haiyoucuv's avatar haiyoucuv

music

parent 0b6485ab
...@@ -33,46 +33,75 @@ class Userhomepage extends React.Component { ...@@ -33,46 +33,75 @@ class Userhomepage extends React.Component {
async componentDidMount() { async componentDidMount() {
this.startTime = +new Date(); this.startTime = +new Date();
MatterViewOpt("b12833", {
page_name: "活动首页", if (isWeChat()) {
}); if (!await store.checkBindStatus()) return;
}
// modalStore.pushPop("AssistSucPanel");
await store.getHomeInfo();
if (store.setIndex?.agent) {
MatterViewOpt("b12839", {
page_name: "业务员端首页-友客小程序"
});
sensorLog(LOG_KEY.exposure, "b12839", "d12841", {
button_name: "去拜访按钮",
page_name: "业务员端首页-友客小程序"
});
if (+CFG.channel == 5) {
sensorLog(LOG_KEY.exposure, "b12839", "d12840", {
button_name: "分享按钮",
page_name: "业务员端首页-友客小程序"
});
}
} else {
MatterViewOpt("b12833", {
page_name: "活动首页"
});
}
sensorLog(LOG_KEY.exposure, "b12833", "d12838", { sensorLog(LOG_KEY.exposure, "b12833", "d12838", {
button_name: "邀请好友助力按钮", button_name: "邀请好友助力按钮",
page_name: "活动首页", page_name: "活动首页"
}); });
sensorLog(LOG_KEY.exposure, "b12833", "d12837", { sensorLog(LOG_KEY.exposure, "b12833", "d12837", {
button_name: "抽奖按钮", button_name: "抽奖按钮",
page_name: "活动首页", page_name: "活动首页"
}); });
sensorLog(LOG_KEY.exposure, "b12833", "d12836", { sensorLog(LOG_KEY.exposure, "b12833", "d12836", {
button_name: "邀请明细按钮", button_name: "邀请明细按钮",
page_name: "活动首页", page_name: "活动首页"
}); });
sensorLog(LOG_KEY.exposure, "b12833", "d12835", { sensorLog(LOG_KEY.exposure, "b12833", "d12835", {
button_name: "奖品按钮", button_name: "奖品按钮",
page_name: "活动首页", page_name: "活动首页"
}); });
sensorLog(LOG_KEY.exposure, "b12833", "d12834", { sensorLog(LOG_KEY.exposure, "b12833", "d12834", {
button_name: "规则按钮", button_name: "规则按钮",
page_name: "活动首页", page_name: "活动首页"
}); });
if (isWeChat()) {
if (!await store.checkBindStatus()) return;
}
// modalStore.pushPop("AssistSucPanel");
await store.getHomeInfo();
this.flushCD(); this.flushCD();
shareStore.doAssist(); shareStore.doAssist();
} }
componentWillUnmount() { componentWillUnmount() {
MatterViewDuration("b12833", +new Date() - this.startTime,{ if (store.setIndex?.agent) {
page_name: "活动首页", MatterViewDuration("b12839", +new Date() - this.startTime, {
}); page_name: "业务员端首页-友客小程序"
});
} else {
MatterViewDuration("b12833", +new Date() - this.startTime, {
page_name: "活动首页"
});
}
} }
/** 规则按钮*/ /** 规则按钮*/
...@@ -123,6 +152,10 @@ class Userhomepage extends React.Component { ...@@ -123,6 +152,10 @@ class Userhomepage extends React.Component {
accessLog("502", { accessLog("502", {
from: CFG.channel from: CFG.channel
}); });
sensorLog(LOG_KEY.click, "b12839", "d12841", {
button_name: "去拜访按钮",
page_name: "业务员端首页-友客小程序"
});
if (!store.checkActTime()) return; if (!store.checkActTime()) return;
windowJumpUrl(store.frontVariable?.SaleManUrl windowJumpUrl(store.frontVariable?.SaleManUrl
+ "&actPlatforms=" + getUrlParam("actPlatforms") + "&actPlatforms=" + getUrlParam("actPlatforms")
...@@ -160,6 +193,10 @@ class Userhomepage extends React.Component { ...@@ -160,6 +193,10 @@ class Userhomepage extends React.Component {
accessLog("502", { accessLog("502", {
from: CFG.channel from: CFG.channel
}); });
MatterShareOpt("b12839", "d12840", {
button_name: "分享按钮",
page_name: "业务员端首页-友客小程序"
})
if (!store.checkActTime()) return; if (!store.checkActTime()) return;
shareStore.doShare(); shareStore.doShare();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment