Commit 25ac54b0 authored by 俞嘉婷's avatar 俞嘉婷

神策埋点

parent 4d902953
module.exports = { module.exports = {
"GET /task_1/queryTasks.do": { "GET /task_1/queryTasks.do": {
code: null, "code": null,
data: { "data": {
endTimestamp: 1780196578000, "endTimestamp": 1806564797000,
item: [ "item": [{
{ "buttonText": null,
buttonText: "去完成", "code": "checkin",
code: "zy_1_1", "completedSize": 1,
completedSize: 1, "desc": null,
desc: null, "extra": null,
extra: '{"answerTimes":0,"drawTimes":0}', "icon": null,
icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg", "id": "mfvr9cl6",
id: "0l0cha7n", "index": null,
index: null, "indexes": null,
indexes: null, "intervalLimitSize": 1,
intervalLimitSize: 1, "intervalType": 1,
intervalType: 4, "jumpUrl": "/",
jumpUrl: "//yun.duiba.com.cn/aurora/assets/27f733e7771780689de2169ed291cad18feeab42.png", "options": [{
options: [ "degree": null,
{ "icon": null,
degree: null, "icon2": null,
icon: null, "id": "sp_draw",
icon2: null, "index": null,
id: "sp_draw_times", "name": "抽奖机会",
index: null, "prizeId": "sp_draw",
name: "完成任务发放答题次数占位道具", "prizeType": null,
prizeId: "sp_draw_times", "refId": null,
prizeType: null, "refType": null,
refId: null, "sendCount": 100
refType: null, }],
sendCount: 1, "playwayId": "task_1",
}, "prizePendingCode": "",
], "prizePendingCodeList": [{
playwayId: "customTask1", "code": null,
prizePendingCode: "", "index": 1
prizePendingCodeList: [{ code: "", index: 1 }], }],
ruleId: "spPrize@sp_draw_times@1", "ruleId": "spPrize@sp_draw@100",
sendPrize: true, "sendPrize": true,
subTitle: "抽奖次数+1抽奖次数+1抽奖次数+1", "subTitle": null,
taskStatus: 0, "taskStatus": 2,
title: "邀请任务", "title": "每日签到"
}, }, {
{ "buttonText": null,
buttonText: "去完成", "code": "invite",
code: "bt_3_1", "completedSize": 1,
completedSize: 1, "desc": null,
desc: null, "extra": null,
extra: '{"answerTimes":0,"drawTimes":0}', "icon": null,
icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg", "id": "24qpc5mn",
id: "sc2o1emu", "index": null,
index: null, "indexes": null,
indexes: null, "intervalLimitSize": 10,
intervalLimitSize: 1, "intervalType": 4,
intervalType: 4, "jumpUrl": "/",
jumpUrl: "https://doublerecording-prd-new.obs.cn-south-1.myhuaweicloud.com/bigCorse/%E6%B6%88%E4%BF%9D%E6%B4%BB%E5%8A%A8/VIP%E6%9C%8D%E5%8A%A1%E5%AE%A3%E4%BC%A0/2024%E5%B9%B4VIP%E6%9C%8D%E5%8A%A1%E5%AE%A3%E4%BC%A0%E8%A7%86%E9%A2%91%EF%BC%88%E5%B0%8F%E6%A0%BC%E5%BC%8F%EF%BC%89.mp4", "options": [{
options: [ "degree": null,
{ "icon": null,
degree: null, "icon2": null,
icon: null, "id": "sp_draw",
icon2: null, "index": null,
id: "sp_draw_times", "name": "抽奖机会",
index: null, "prizeId": "sp_draw",
name: "完成任务发放答题次数占位道具", "prizeType": null,
prizeId: "sp_draw_times", "refId": null,
prizeType: null, "refType": null,
refId: null, "sendCount": 1
refType: null, }],
sendCount: 1, "playwayId": "task_1",
}, "prizePendingCode": "",
], "prizePendingCodeList": [{
playwayId: "customTask1", "code": null,
prizePendingCode: "", "index": 1
prizePendingCodeList: [{ code: "", index: 1 }], }],
ruleId: "spPrize@sp_draw_times@1", "ruleId": "spPrize@sp_draw@1",
sendPrize: true, "sendPrize": true,
subTitle: "抽奖次数+1", "subTitle": null,
taskStatus: 0, "taskStatus": 0,
title: "看视频15s", "title": "邀请助力"
}, }, {
{ "buttonText": null,
buttonText: "去完成", "code": "browser_1",
code: "common_answer", "completedSize": 0,
completedSize: 0, "desc": null,
desc: null, "extra": null,
extra: '{"taskCode":"task_third_1_asset_growth_1","answerTimes":1,"drawTimes":0,"gear":1}', "icon": null,
icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg", "id": "p13s0tml",
id: "abwha4qz", "index": null,
index: null, "indexes": null,
indexes: null, "intervalLimitSize": 1,
intervalLimitSize: 1, "intervalType": 1,
intervalType: 3, "jumpUrl": "https://www.baidu.com/index.php?tn=75144485_1_dg&ch=9",
jumpUrl: "appjumpurl$$$ykjumpurl$$$otherjumpurl", "options": [{
options: null, "degree": null,
playwayId: "customTask1", "icon": null,
prizePendingCode: null, "icon2": null,
prizePendingCodeList: null, "id": "sp_draw",
ruleId: "spPrize@undefined@undefined", "index": null,
sendPrize: null, "name": "抽奖机会",
subTitle: "抽奖次数+1", "prizeId": "sp_draw",
taskStatus: 1, "prizeType": null,
title: "答题任务", "refId": null,
}, "refType": null,
{ "sendCount": 1
buttonText: "去完成", }],
code: "checkin", "playwayId": "task_1",
completedSize: 0, "prizePendingCode": null,
desc: null, "prizePendingCodeList": null,
extra: '{"taskCode":"task_third_1_asset_growth_1","answerTimes":1,"drawTimes":0,"gear":1}', "ruleId": "spPrize@sp_draw@1",
icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg", "sendPrize": null,
id: "abwha4qz", "subTitle": null,
index: null, "taskStatus": 0,
indexes: null, "title": "浏览任务1"
intervalLimitSize: 1, }, {
intervalType: 3, "buttonText": null,
jumpUrl: "appjumpurl$$$ykjumpurl$$$otherjumpurl", "code": "browser_2",
options: null, "completedSize": 0,
playwayId: "customTask1", "desc": null,
prizePendingCode: null, "extra": null,
prizePendingCodeList: null, "icon": null,
ruleId: "spPrize@undefined@undefined", "id": "59f9x9ri",
sendPrize: null, "index": null,
subTitle: "抽奖次数+1", "indexes": null,
taskStatus: 0, "intervalLimitSize": 1,
title: "签到任务", "intervalType": 1,
}, "jumpUrl": "www.baidu.com",
], "options": [{
startTimestamp: 1713841378000, "degree": null,
timestamp: 1714284614182, "icon": null,
"icon2": null,
"id": "sp_draw",
"index": null,
"name": "抽奖机会",
"prizeId": "sp_draw",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 1
}],
"playwayId": "task_1",
"prizePendingCode": null,
"prizePendingCodeList": null,
"ruleId": "spPrize@sp_draw@1",
"sendPrize": null,
"subTitle": null,
"taskStatus": 0,
"title": "浏览任务2"
}, {
"buttonText": null,
"code": "sy_1",
"completedSize": 0,
"desc": null,
"extra": null,
"icon": null,
"id": "17t3mzwz",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 1,
"jumpUrl": "/",
"options": [{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_draw",
"index": null,
"name": "抽奖机会",
"prizeId": "sp_draw",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 1
}],
"playwayId": "task_1",
"prizePendingCode": null,
"prizePendingCodeList": null,
"ruleId": "spPrize@sp_draw@1",
"sendPrize": null,
"subTitle": null,
"taskStatus": 0,
"title": "税优任务1"
}, {
"buttonText": null,
"code": "sy_2",
"completedSize": 1,
"desc": null,
"extra": null,
"icon": null,
"id": "wok8k1v3",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 1,
"jumpUrl": "/",
"options": [{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_draw",
"index": null,
"name": "抽奖机会",
"prizeId": "sp_draw",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 1
}],
"playwayId": "task_1",
"prizePendingCode": "",
"prizePendingCodeList": [{
"code": null,
"index": 1
}],
"ruleId": "spPrize@sp_draw@1",
"sendPrize": true,
"subTitle": null,
"taskStatus": 2,
"title": "税优任务2"
}, {
"buttonText": null,
"code": "zy_1",
"completedSize": 1,
"desc": null,
"extra": null,
"icon": null,
"id": "t1lamuxl",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 1,
"jumpUrl": "//yun.duiba.com.cn/polaris/mmexport1675768991570.8075de2c85c321b5c9659e674782d0fec918b583.mp4",
"options": [{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_draw",
"index": null,
"name": "抽奖机会",
"prizeId": "sp_draw",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 1
}],
"playwayId": "task_1",
"prizePendingCode": "",
"prizePendingCodeList": [{
"code": null,
"index": 1
}],
"ruleId": "spPrize@sp_draw@1",
"sendPrize": true,
"subTitle": null,
"taskStatus": 2,
"title": "增员任务1"
}, {
"buttonText": null,
"code": "zy_2",
"completedSize": 0,
"desc": null,
"extra": null,
"icon": null,
"id": "q37jdjnt",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 1,
"jumpUrl": "//yun.duiba.com.cn/polaris/mmexport1675768991570.8075de2c85c321b5c9659e674782d0fec918b583.mp4",
"options": [{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_draw",
"index": null,
"name": "抽奖机会",
"prizeId": "sp_draw",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 1
}],
"playwayId": "task_1",
"prizePendingCode": null,
"prizePendingCodeList": null,
"ruleId": "spPrize@sp_draw@1",
"sendPrize": null,
"subTitle": null,
"taskStatus": 0,
"title": "增员任务2"
}],
"startTimestamp": 1741764797000,
"timestamp": 1741939239747
}, },
message: null, "message": null,
success: true, "success": true,
timeStamp: 1714284614467, "timeStamp": 1741939239878
}, },
"POST /task_1/sendPrize.do": { "POST /task_1/sendPrize.do": {
code: null, code: null,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
return search.length ? matched && matched[2] : null; return search.length ? matched && matched[2] : null;
} }
CFG.operationId = '6130' CFG.operationId = '6131'
CFG.appID = "${APPID}"; CFG.appID = "${APPID}";
CFG.domain = location.origin; CFG.domain = location.origin;
......
...@@ -16,10 +16,10 @@ class CodePop extends React.Component { ...@@ -16,10 +16,10 @@ class CodePop extends React.Component {
componentDidMount = async () => { componentDidMount = async () => {
await this.creatCode(); await this.creatCode();
pageView("b12119", { pageView("b12854", {
page_name: "扫码唤端页", page_name: "扫码唤端页",
}); });
sensorLog(LOG_KEY.exposure, "b12119", "d12120", { sensorLog(LOG_KEY.exposure, "b12854", "d12855", {
page_name: "扫码唤端页", page_name: "扫码唤端页",
button_name: "关闭按钮", button_name: "关闭按钮",
}); });
...@@ -40,7 +40,7 @@ class CodePop extends React.Component { ...@@ -40,7 +40,7 @@ class CodePop extends React.Component {
/** 关闭 */ /** 关闭 */
clickClose = () => { clickClose = () => {
modalStore.closePop(); modalStore.closePop();
sensorLog(LOG_KEY.click, "b12119", "d12120", { sensorLog(LOG_KEY.click, "b12854", "d12855", {
page_name: "扫码唤端页", page_name: "扫码唤端页",
button_name: "关闭按钮", button_name: "关闭按钮",
}); });
......
...@@ -21,14 +21,14 @@ class LoginPop extends React.Component { ...@@ -21,14 +21,14 @@ class LoginPop extends React.Component {
}; };
componentDidMount() { componentDidMount() {
pageView("b12081", { pageView("b12830", {
page_name: "手机号登录页", page_name: "手机号登录页",
}); });
sensorLog(LOG_KEY.exposure, "b12081", "d12083", { sensorLog(LOG_KEY.exposure, "b12830", "d12832", {
page_name: "手机号登录页", page_name: "手机号登录页",
button_name: "登录按钮", button_name: "登录按钮",
}); });
sensorLog(LOG_KEY.exposure, "b12081", "d12082", { sensorLog(LOG_KEY.exposure, "b12830", "d12831", {
page_name: "手机号登录页", page_name: "手机号登录页",
button_name: "发送验证码按钮", button_name: "发送验证码按钮",
}); });
...@@ -53,7 +53,7 @@ class LoginPop extends React.Component { ...@@ -53,7 +53,7 @@ class LoginPop extends React.Component {
}; };
clickSend = _asyncThrottle(async () => { clickSend = _asyncThrottle(async () => {
sensorLog(LOG_KEY.click, "b12081", "d12082", { sensorLog(LOG_KEY.click, "b12830", "d12831", {
page_name: "手机号登录页", page_name: "手机号登录页",
button_name: "发送验证码按钮", button_name: "发送验证码按钮",
}); });
...@@ -69,7 +69,7 @@ class LoginPop extends React.Component { ...@@ -69,7 +69,7 @@ class LoginPop extends React.Component {
}); });
closeLogin = _asyncThrottle(async () => { closeLogin = _asyncThrottle(async () => {
sensorLog(LOG_KEY.click, "b12081", "d12083", { sensorLog(LOG_KEY.click, "b12830", "d12832", {
page_name: "手机号登录页", page_name: "手机号登录页",
button_name: "登录按钮", button_name: "登录按钮",
}); });
......
...@@ -18,10 +18,10 @@ class NoPrizeCard extends React.Component { ...@@ -18,10 +18,10 @@ class NoPrizeCard extends React.Component {
componentDidMount() { componentDidMount() {
pageView("b12137", { pageView("b12872", {
page_name: "祝福语翻转页", page_name: "祝福语翻转页",
}); });
sensorLog(LOG_KEY.exposure, "b12137", "d12138", { sensorLog(LOG_KEY.exposure, "b12872", "d12873", {
page_name: "祝福语翻转页", page_name: "祝福语翻转页",
button_name: "点击切换有惊喜按钮", button_name: "点击切换有惊喜按钮",
}); });
...@@ -41,7 +41,7 @@ class NoPrizeCard extends React.Component { ...@@ -41,7 +41,7 @@ class NoPrizeCard extends React.Component {
/** 切换按钮*/ /** 切换按钮*/
clickExchange1 = () => { clickExchange1 = () => {
sensorLog(LOG_KEY.click, "b12137", "d12138", { sensorLog(LOG_KEY.click, "b12872", "d12873", {
page_name: "祝福语翻转页", page_name: "祝福语翻转页",
button_name: "点击切换有惊喜按钮", button_name: "点击切换有惊喜按钮",
}); });
......
...@@ -16,14 +16,14 @@ class Pop_winprize extends React.Component { ...@@ -16,14 +16,14 @@ class Pop_winprize extends React.Component {
} }
componentDidMount() { componentDidMount() {
pageView("b12121", { pageView("b12856", {
page_name: "中奖弹窗", page_name: "中奖弹窗",
}); });
sensorLog(LOG_KEY.exposure, "b12121", "d12123", { sensorLog(LOG_KEY.exposure, "b12856", "d12858", {
page_name: "中奖弹窗", page_name: "中奖弹窗",
button_name: "关闭按钮", button_name: "关闭按钮",
}); });
sensorLog(LOG_KEY.exposure, "b12121", "d12122", { sensorLog(LOG_KEY.exposure, "b12856", "d12857", {
page_name: "中奖弹窗", page_name: "中奖弹窗",
button_name: "开心收下按钮", button_name: "开心收下按钮",
}); });
...@@ -31,14 +31,14 @@ class Pop_winprize extends React.Component { ...@@ -31,14 +31,14 @@ class Pop_winprize extends React.Component {
clickClose = () => { clickClose = () => {
modalStore.closePop(); modalStore.closePop();
sensorLog(LOG_KEY.click, "b12121", "d12123", { sensorLog(LOG_KEY.click, "b12856", "d12858", {
page_name: "中奖弹窗", page_name: "中奖弹窗",
button_name: "关闭按钮", button_name: "关闭按钮",
}); });
}; };
clickHappy = () => { clickHappy = () => {
modalStore.closePop(); modalStore.closePop();
sensorLog(LOG_KEY.click, "b12121", "d12122", { sensorLog(LOG_KEY.click, "b12856", "d12857", {
page_name: "中奖弹窗", page_name: "中奖弹窗",
button_name: "开心收下按钮", button_name: "开心收下按钮",
}); });
......
...@@ -30,13 +30,13 @@ class Taskpop extends React.Component { ...@@ -30,13 +30,13 @@ class Taskpop extends React.Component {
await taskStore.getTaskList(); await taskStore.getTaskList();
taskStore.taskList?.map((item, index) => { taskStore.taskList?.map((item, index) => {
if(item?.taskStatus == 1) { if(item?.taskStatus == 1) {
sensorLog(LOG_KEY.exposure, "b12104", "d12106", { sensorLog(LOG_KEY.exposure, "b12846", "d12848", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "领取奖励按钮", button_name: "领取奖励按钮",
}); });
} }
if(item?.taskStatus == 0) { if(item?.taskStatus == 0) {
sensorLog(LOG_KEY.exposure, "b12104", "d12105", { sensorLog(LOG_KEY.exposure, "b12846", "d12847", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "去完成按钮", button_name: "去完成按钮",
}); });
...@@ -51,14 +51,14 @@ class Taskpop extends React.Component { ...@@ -51,14 +51,14 @@ class Taskpop extends React.Component {
initSensor() { initSensor() {
pageView("b12104", { pageView("b12846", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
}); });
// sensorLog(LOG_KEY.exposure,"b7870","d8729"); // sensorLog(LOG_KEY.exposure,"b7870","d8729");
sensorLog(LOG_KEY.exposure, "b12104", "d12107", { sensorLog(LOG_KEY.exposure, "b12846", "d12849", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "返回按钮", button_name: "关闭按钮",
}); });
...@@ -83,7 +83,7 @@ class Taskpop extends React.Component { ...@@ -83,7 +83,7 @@ class Taskpop extends React.Component {
// MatterShareOpt(LOG_KEY.click,"b7870","d8729") // MatterShareOpt(LOG_KEY.click,"b7870","d8729")
// } // }
handleLogClick(23, 1); handleLogClick(23, 1);
sensorLog(LOG_KEY.click, "b12104", "d12105", { sensorLog(LOG_KEY.click, "b12846", "d12847", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "去完成按钮", button_name: "去完成按钮",
}); });
...@@ -91,7 +91,7 @@ class Taskpop extends React.Component { ...@@ -91,7 +91,7 @@ class Taskpop extends React.Component {
taskStore.taskList?.map((item, index) => { taskStore.taskList?.map((item, index) => {
if(item?.taskStatus == 1) { if(item?.taskStatus == 1) {
sensorLog(LOG_KEY.exposure, "b12104", "d12106", { sensorLog(LOG_KEY.exposure, "b12846", "d12848", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "领取奖励按钮", button_name: "领取奖励按钮",
}); });
...@@ -103,7 +103,7 @@ class Taskpop extends React.Component { ...@@ -103,7 +103,7 @@ class Taskpop extends React.Component {
taskPrizeHandle = _asyncThrottle(async (item) => { taskPrizeHandle = _asyncThrottle(async (item) => {
const { code, taskStatus } = item || {}; const { code, taskStatus } = item || {};
handleLogClick(23, 2); handleLogClick(23, 2);
sensorLog(LOG_KEY.click, "b12104", "d12106", { sensorLog(LOG_KEY.click, "b12846", "d12848", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "领取奖励按钮", button_name: "领取奖励按钮",
}); });
...@@ -116,9 +116,9 @@ class Taskpop extends React.Component { ...@@ -116,9 +116,9 @@ class Taskpop extends React.Component {
// page_name: "做任务赚骰子页", // page_name: "做任务赚骰子页",
// button_name: "关闭按钮", // button_name: "关闭按钮",
// }); // });
sensorLog(LOG_KEY.click, "b12104", "d12107", { sensorLog(LOG_KEY.click, "b12846", "d12849", {
page_name: "赚点赞次数弹窗", page_name: "赚点赞次数弹窗",
button_name: "返回按钮", button_name: "关闭按钮",
}); });
this.props.popData?.onClose && this.props.popData.onClose(); this.props.popData?.onClose && this.props.popData.onClose();
......
...@@ -28,13 +28,21 @@ class Drawpage extends React.Component { ...@@ -28,13 +28,21 @@ class Drawpage extends React.Component {
componentDidMount() { componentDidMount() {
this.getDrawInfo() this.getDrawInfo()
pageView("b12117", { pageView("b12842", {
page_name: "抽奖大转盘", page_name: "抽奖大转盘",
}); });
sensorLog(LOG_KEY.exposure, "b12117", "d12118", { sensorLog(LOG_KEY.exposure, "b12842", "d12843", {
page_name: "抽奖大转盘", page_name: "抽奖大转盘",
button_name: "立即抽奖按钮", button_name: "立即抽奖按钮",
}); });
sensorLog(LOG_KEY.exposure, "b12842", "d12844", {
page_name: "抽奖大转盘",
button_name: "做任务,赚次数按钮",
});
sensorLog(LOG_KEY.exposure, "b12842", "d12845", {
page_name: "抽奖大转盘",
button_name: "返回按钮",
});
} }
/** 获取转盘信息 */ /** 获取转盘信息 */
...@@ -49,7 +57,7 @@ class Drawpage extends React.Component { ...@@ -49,7 +57,7 @@ class Drawpage extends React.Component {
// 开始抽奖 // 开始抽奖
lottteryHandle = _asyncThrottle(async () => { lottteryHandle = _asyncThrottle(async () => {
sensorLog(LOG_KEY.click, "b12117", "d12118", { sensorLog(LOG_KEY.click, "b12842", "d12843", {
page_name: "抽奖大转盘", page_name: "抽奖大转盘",
button_name: "立即抽奖按钮", button_name: "立即抽奖按钮",
}); });
...@@ -103,11 +111,20 @@ class Drawpage extends React.Component { ...@@ -103,11 +111,20 @@ class Drawpage extends React.Component {
/** 返回 */ /** 返回 */
backHome = _throttle(() => { backHome = _throttle(() => {
sensorLog(LOG_KEY.click, "b12842", "d12845", {
page_name: "抽奖大转盘",
button_name: "返回按钮",
});
if (this.btnStarting) return false if (this.btnStarting) return false
store.changePage(PAGE_MAP.HOME_PAGE) store.changePage(PAGE_MAP.HOME_PAGE)
}) })
goTask = _throttle(() => { goTask = _throttle(() => {
sensorLog(LOG_KEY.click, "b12842", "d12844", {
page_name: "抽奖大转盘",
button_name: "做任务,赚次数按钮",
});
if (this.btnStarting) return false if (this.btnStarting) return false
modalStore.pushPop("Taskpop", { onClose: () => this.getDrawInfo() }) modalStore.pushPop("Taskpop", { onClose: () => this.getDrawInfo() })
}) })
......
...@@ -35,9 +35,9 @@ class Prizepage extends React.Component { ...@@ -35,9 +35,9 @@ class Prizepage extends React.Component {
// modalStore.pushPop("FillAddress") // modalStore.pushPop("FillAddress")
await this.getPrize(); await this.getPrize();
pageView("b12124", { page_name: "我的奖品页" }); pageView("b12859", { page_name: "我的奖品页" });
sensorLog(LOG_KEY.exposure, "b12124", "d12126", { page_name: "我的奖品页", button_name: "返回" }) sensorLog(LOG_KEY.exposure, "b12859", "d12861", { page_name: "我的奖品页", button_name: "返回" })
} }
fetchData = async () => { fetchData = async () => {
...@@ -105,7 +105,7 @@ class Prizepage extends React.Component { ...@@ -105,7 +105,7 @@ class Prizepage extends React.Component {
PrizeList.forEach((item) => { PrizeList.forEach((item) => {
if (!item?.invalid) { if (!item?.invalid) {
sensorLog(LOG_KEY.exposure, "b12124", "d12125", { sensorLog(LOG_KEY.exposure, "b12859", "d12860", {
button_name: "去领取", button_name: "去领取",
page_name: "我的奖品页", page_name: "我的奖品页",
entrance: extranceName[CFG.channel], entrance: extranceName[CFG.channel],
...@@ -124,7 +124,7 @@ class Prizepage extends React.Component { ...@@ -124,7 +124,7 @@ class Prizepage extends React.Component {
return; return;
} }
sensorLog(LOG_KEY.click, "b12124", "d12125", { sensorLog(LOG_KEY.click, "b12859", "d12860", {
button_name: "去领取", button_name: "去领取",
page_name: "我的奖品页", page_name: "我的奖品页",
operation_name: "去领取", operation_name: "去领取",
...@@ -224,7 +224,7 @@ class Prizepage extends React.Component { ...@@ -224,7 +224,7 @@ class Prizepage extends React.Component {
back = _throttle(async () => { back = _throttle(async () => {
// store.changePage(this.props?.from || PAGE_MAP.HOME_PAGE); // store.changePage(this.props?.from || PAGE_MAP.HOME_PAGE);
store.backPage(); store.backPage();
sensorLog(LOG_KEY.click, "b12124", "d12126", { sensorLog(LOG_KEY.click, "b12859", "d12861", {
operation_name: "返回", operation_name: "返回",
button_name: "返回", button_name: "返回",
operation_id: CFG.operationId, operation_id: CFG.operationId,
......
...@@ -94,16 +94,16 @@ export const initSensors = (uid) => { ...@@ -94,16 +94,16 @@ export const initSensors = (uid) => {
{ {
currentUrl: location.href, currentUrl: location.href,
referrer: document.referrer, referrer: document.referrer,
theme_name: "闪亮瞬间", theme_name: "人保春游记",
act_name: "闪亮瞬间", act_name: "人保春游记",
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
source_entry: CHANNEL_MAP[CFG.channel], source_entry: CHANNEL_MAP[CFG.channel],
source: CHANNEL_MAP[CFG.channel], source: CHANNEL_MAP[CFG.channel],
platform_name: extranceName[CFG.channel], platform_name: extranceName[CFG.channel],
platform_type: platformType[CFG.channel], platform_type: platformType[CFG.channel],
requirement_id: 1029, requirement_id: 1187,
is_login: uid ? "是" : "否", is_login: uid ? "是" : "否",
operation_name: "闪亮瞬间", operation_name: "人保春游记",
source_platform: CHANNEL_MAP?.[CFG.channel] || CFG.channel, source_platform: CHANNEL_MAP?.[CFG.channel] || CFG.channel,
entrance: extranceName[CFG.channel], entrance: extranceName[CFG.channel],
}, },
...@@ -128,7 +128,7 @@ export const sensorLog = (logKey, bid, did, options) => { ...@@ -128,7 +128,7 @@ export const sensorLog = (logKey, bid, did, options) => {
// console.log(`%c type: ${logKey} track_sign: ${`aL06Activity.${bid}.${did}.${logKey}.${EVENT_NAME[logKey]}`}`, "font-size: 20px; color: rgb(244, 123, 93)"); // console.log(`%c type: ${logKey} track_sign: ${`aL06Activity.${bid}.${did}.${logKey}.${EVENT_NAME[logKey]}`}`, "font-size: 20px; color: rgb(244, 123, 93)");
sensors.track(EVENT_NAME[logKey], { sensors.track(EVENT_NAME[logKey], {
track_sign: `aL06Activity.${bid}.${did}.${logKey}.${EVENT_NAME[logKey]}`, track_sign: `aL06Activity.${bid}.${did}.${logKey}.${EVENT_NAME[logKey]}`,
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
operation_id: CFG.operationId, operation_id: CFG.operationId,
act_type: "客经", act_type: "客经",
location_type: "活动", location_type: "活动",
...@@ -148,7 +148,7 @@ export const pageViewD = (bid, did, options) => { ...@@ -148,7 +148,7 @@ export const pageViewD = (bid, did, options) => {
sensors.track(EVENT_NAME[LOG_KEY.pageview], { sensors.track(EVENT_NAME[LOG_KEY.pageview], {
track_sign: `aL06Activity.${bid}.${did}.${LOG_KEY.pageview}.${EVENT_NAME[LOG_KEY.pageview]}`, track_sign: `aL06Activity.${bid}.${did}.${LOG_KEY.pageview}.${EVENT_NAME[LOG_KEY.pageview]}`,
operation_id: CFG.operationId, operation_id: CFG.operationId,
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
act_type: "客经", act_type: "客经",
location_type: "活动", location_type: "活动",
agent_code: store.setIndex?.agentCode, agent_code: store.setIndex?.agentCode,
...@@ -172,7 +172,7 @@ export const pageView = (bid, options) => { ...@@ -172,7 +172,7 @@ export const pageView = (bid, options) => {
sensors.track(EVENT_NAME[LOG_KEY.pageview], { sensors.track(EVENT_NAME[LOG_KEY.pageview], {
track_sign: `aL06Activity.${bid}.${LOG_KEY.pageview}.${EVENT_NAME[LOG_KEY.pageview]}`, track_sign: `aL06Activity.${bid}.${LOG_KEY.pageview}.${EVENT_NAME[LOG_KEY.pageview]}`,
operation_id: CFG.operationId, operation_id: CFG.operationId,
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
act_type: "客经", act_type: "客经",
location_type: "活动", location_type: "活动",
agent_code: store.setIndex?.agentCode, agent_code: store.setIndex?.agentCode,
...@@ -196,7 +196,7 @@ export const MatterViewOpt = (bid, options) => { ...@@ -196,7 +196,7 @@ export const MatterViewOpt = (bid, options) => {
location_type: "活动", location_type: "活动",
entrance: extranceName[CFG.channel], entrance: extranceName[CFG.channel],
sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
...options ...options
}); });
...@@ -217,7 +217,7 @@ export const MatterShareOpt = (bid, did, options) => { ...@@ -217,7 +217,7 @@ export const MatterShareOpt = (bid, did, options) => {
location_type: "活动", location_type: "活动",
entrance: extranceName[CFG.channel], entrance: extranceName[CFG.channel],
sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
...options ...options
}); });
...@@ -238,7 +238,7 @@ export const MatterViewDuration = (bid, time, options) => { ...@@ -238,7 +238,7 @@ export const MatterViewDuration = (bid, time, options) => {
location_type: "活动", location_type: "活动",
entrance: extranceName[CFG.channel], entrance: extranceName[CFG.channel],
sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo sales_id: CFG.workerCode || store.setIndex?.agentCode, // todo
avtivity_name: "闪亮瞬间", avtivity_name: "人保春游记",
$event_duration: time, $event_duration: time,
...options ...options
}); });
......
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