Commit 56481042 authored by 王勇霞's avatar 王勇霞

feat: 埋点

parent 68b210c1
......@@ -10,7 +10,6 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import SignCom from './signCom/signCom';
import API from '@/api';
import taskStore from '@/store/task';
import { handleTaskLogClick } from '@/MD';
@observer
class TaskPanel extends React.Component {
......@@ -52,11 +51,9 @@ class TaskPanel extends React.Component {
<span className='taskTitle'>{`${el.title}(${el.completeSize || 0}/${el.intervalLimit || 0})`}</span>
<span className='taskSubTitle'>{el.subtitle}</span>
{el.taskStatus == 0 && <Button className='goToBtn' onClick={_asyncThrottle(() => {
handleTaskLogClick(28, el.code, 1);
taskStore.doComplete(el)
})}></Button>}
{el.taskStatus == 1 && <Button className='dailingqu' onClick={_asyncThrottle(() => {
handleTaskLogClick(28, el.code, 2);
taskStore.sendPrize(el.code);
})}></Button>}
{el.taskStatus == 2 && <Button className='completed'></Button>}
......
......@@ -7,7 +7,7 @@ import HomePage from '@/pages/HomePage/HomePage';
import { windowJumpUrl } from '@/utils/utils';
import { Toast } from '@grace/ui';
import shareStore from './share';
import { handleTaskLogExposure } from '@/MD';
// import { handleTaskLogExposure } from '@/MD';
const taskStore = makeAutoObservable({
// 任务列表
taskInfo: {},
......@@ -28,10 +28,10 @@ const taskStore = makeAutoObservable({
this.taskList.forEach(el => {
const { code } = el;
if (el.taskStatus == 0) {
handleTaskLogExposure(28, code, 1);
// handleTaskLogExposure(28, code, 1);
}
if (el.taskStatus == 1) {
handleTaskLogExposure(28, code, 2);
// handleTaskLogExposure(28, code, 2);
}
});
}
......
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