Commit 98fab2ad authored by haiyoucuv's avatar haiyoucuv

music

parent 0b6485ab
......@@ -33,48 +33,77 @@ class Userhomepage extends React.Component {
async componentDidMount() {
this.startTime = +new Date();
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: "活动首页",
page_name: "活动首页"
});
}
sensorLog(LOG_KEY.exposure, "b12833", "d12838", {
button_name: "邀请好友助力按钮",
page_name: "活动首页",
page_name: "活动首页"
});
sensorLog(LOG_KEY.exposure, "b12833", "d12837", {
button_name: "抽奖按钮",
page_name: "活动首页",
page_name: "活动首页"
});
sensorLog(LOG_KEY.exposure, "b12833", "d12836", {
button_name: "邀请明细按钮",
page_name: "活动首页",
page_name: "活动首页"
});
sensorLog(LOG_KEY.exposure, "b12833", "d12835", {
button_name: "奖品按钮",
page_name: "活动首页",
page_name: "活动首页"
});
sensorLog(LOG_KEY.exposure, "b12833", "d12834", {
button_name: "规则按钮",
page_name: "活动首页",
page_name: "活动首页"
});
if (isWeChat()) {
if (!await store.checkBindStatus()) return;
}
// modalStore.pushPop("AssistSucPanel");
await store.getHomeInfo();
this.flushCD();
shareStore.doAssist();
}
componentWillUnmount() {
MatterViewDuration("b12833", +new Date() - this.startTime,{
page_name: "活动首页",
if (store.setIndex?.agent) {
MatterViewDuration("b12839", +new Date() - this.startTime, {
page_name: "业务员端首页-友客小程序"
});
} else {
MatterViewDuration("b12833", +new Date() - this.startTime, {
page_name: "活动首页"
});
}
}
/** 规则按钮*/
clickRule = () => {
accessLog("502", {
......@@ -123,6 +152,10 @@ class Userhomepage extends React.Component {
accessLog("502", {
from: CFG.channel
});
sensorLog(LOG_KEY.click, "b12839", "d12841", {
button_name: "去拜访按钮",
page_name: "业务员端首页-友客小程序"
});
if (!store.checkActTime()) return;
windowJumpUrl(store.frontVariable?.SaleManUrl
+ "&actPlatforms=" + getUrlParam("actPlatforms")
......@@ -160,6 +193,10 @@ class Userhomepage extends React.Component {
accessLog("502", {
from: CFG.channel
});
MatterShareOpt("b12839", "d12840", {
button_name: "分享按钮",
page_name: "业务员端首页-友客小程序"
})
if (!store.checkActTime()) return;
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