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