Commit 7837a6b9 authored by 邱旭's avatar 邱旭

1

parent af285044
......@@ -4,6 +4,7 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import { getlogItem } from "../../Main";
import { Buried } from "../../../libs/tw/util/Buried";
export default class TaskCenter extends Panel {
public closeBtn: eui.Button;
......@@ -123,12 +124,12 @@ class TaskCenterItem extends eui.ItemRenderer {
}, this.data.subActivityId);
}, this);
} else if(status == 0 && done < limit) { // 未完成
NetManager.ins.showLog(getlogItem(63));
NetManager.ins.showLog(this.getlogItem());
this.btnImg.source = 'TaskCenter_' + 'goTask' + 'Btn_png';
this.btnLabel.text = `${appIncompleteText}(${done}/${limit})`;
this.btnLabel.strokeColor = 0x1376df;
this.btnGroup.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(63));
NetManager.ins.clickLog(this.getlogItem());
// 跳转任务链接
window.location.href = this.data.appIncompletelink;
}, this);
......@@ -138,4 +139,10 @@ class TaskCenterItem extends eui.ItemRenderer {
this.btnLabel.strokeColor = 0x7e7e7e;
}
}
private getlogItem(){
const Dpm = Buried.connectDpm(110, 63, this.data.subActivityId); // 点击埋点
const Dcm = Buried.connectDcm(202, 0, 0); // 曝光埋点
return Buried.createExposure(Dpm, Dcm);
}
}
\ No newline at end of file
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