Commit 468eae6a authored by cc's avatar cc

md

parent 36866f36
......@@ -59,6 +59,7 @@ export function handleLogExposure(id: number | string, id2: number | string = 1)
dpm: `${appId}.110.${id}.${id2}`,
dcm,
domain,
dom,
appId,
});
}
......@@ -68,6 +69,7 @@ export function handleLogClick(id: number | string, id2: number | string = 1) {
dpm: `${appId}.110.${id}.${id2}`,
dcm,
domain,
dom,
appId,
});
}
......@@ -4,7 +4,6 @@ import store from "./store";
// import modalStore from "./modal";
import { saveCookies, setCookies } from "./fetcher";
import shareStore from "./share";
// import { handleLogClick } from "../../MD";
import { isWeChat } from "../utils/share";
import { getUrlParam, windowJumpUrl } from "../utils/utils";
import { appJump } from "../utils/sensors.js";
......@@ -12,6 +11,7 @@ import { CHANNEL_PARAMS, TASK_CODE } from "../utils/constants";
import { Toast } from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import LongImgPop from "@/panels/longImgPop/longImgPop.jsx";
import { handleLogClick, handleLogExposure } from "../MD";
interface TaskItem {
jumpUrl?: string;
......@@ -38,6 +38,18 @@ const taskStore = makeAutoObservable({
});
if ((success && data)) {
this.taskList = data?.item || [];
(data?.item || []).map((item,index)=>{
console.log('item?.taskStatus',item?.taskStatus)
if(item?.taskStatus == 0){
if(item?.code == 'invite'){
handleLogExposure(35,3)
}else{
handleLogExposure(35,1)
}
}else if(item?.taskStatus == 1){
handleLogExposure(35,2)
}
})
}
},
......@@ -45,7 +57,7 @@ const taskStore = makeAutoObservable({
async doTask(item) {
// jumpUrl 后端已经根据渠道返回对应的链接
const { code, jumpUrl } = item || {};
handleLogClick(35,1)
switch (true) {
//签到
case code == "sign":
......@@ -177,7 +189,7 @@ const taskStore = makeAutoObservable({
async getTaskPrize(item) {
const { id, code, prizePendingCode } = item || {};
handleLogClick(35,2)
const { success, data } = await API.sendPrize({
taskId: id,
taskCode: code,
......
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