Commit d9561453 authored by 俞嘉婷's avatar 俞嘉婷

feat: 埋点 按照红包雨

parent 6af5e4fc
......@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
import { _decorator, Button, Node } from "cc";
import { observer } from "../store/decorators";
import ShareCenter from "../ShareCenter";
import { getWebData, WebNetName } from "../Utils/WebNet/WebNet";
import { getWebData, LOG_TYPE, sendLog, WebNetName } from "../Utils/WebNet/WebNet";
const { ccclass, property } = _decorator;
......@@ -22,9 +22,11 @@ export default class LimitPanel extends Panel {
}
async start() {
sendLog(LOG_TYPE.EXPOSURE, 11);
}
bindCard = () => {
sendLog(LOG_TYPE.CLICK, 11);
const urlType = JSON.parse(getWebData(WebNetName.getFrontVariable)?.data?.bindCardUrl || "") || {};
console.info('urlType', urlType);
if (ShareCenter.ins.isWeChat()) {
......
......@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
import { _decorator, Button, Node } from "cc";
import { observer } from "../store/decorators";
import ShareCenter from "../ShareCenter";
import { getProjectId, getWebData, WebNetName } from "../Utils/WebNet/WebNet";
import { getProjectId, getWebData, LOG_TYPE, sendLog, WebNetName } from "../Utils/WebNet/WebNet";
import { _asyncThrottle, getUrlParam } from "../Utils/Utils";
const { ccclass, property } = _decorator;
......@@ -23,9 +23,11 @@ export default class NotLoginPanel extends Panel {
}
async start() {
sendLog(LOG_TYPE.EXPOSURE, 10);
}
login = _asyncThrottle(() => {
sendLog(LOG_TYPE.CLICK, 10);
// MFS.login({
// "channel": "CHANNEL_CODE", // 需要在认证系统申请
// "callback": "loginCallback"
......
......@@ -80,6 +80,9 @@ export class runMainPage extends Scene {
this.startBtn.on(Button.EventType.CLICK, this.click_startGame, this)
this.taskBtn.on(Button.EventType.CLICK, this.click_Task, this)
sendLog(LOG_TYPE.EXPOSURE, 21);
sendLog(LOG_TYPE.EXPOSURE, 22);
sendLog(LOG_TYPE.EXPOSURE, 23);
}
async getIndex() {
const { success, data } = await sendWebNet(WebNetName.tcs_Index);
......@@ -136,8 +139,10 @@ export class runMainPage extends Scene {
click_Task = _asyncThrottle(() => {
showPanel(TaskPanel)
sendLog(LOG_TYPE.CLICK, 23);
})
click_startGame = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 22);
const { data, timeStamp } = getWebData(WebNetName.tcs_Index) || {};
const {
boolBankUser, // 是否是银行用户 true:是 false:不是
......
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