瀏覽代碼

feat. 进入素材埋点

erekook 8 月之前
父節點
當前提交
bcac48b3d2
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/video/video.js

+ 7 - 1
pages/video/video.js

@@ -106,10 +106,16 @@ Page({
     }
     console.log("入口:", options);
     try {
-      let { type, jump, shared_video_id, tag_id, collectId } = options;
+      let { type, jump, shared_video_id, tag_id, collectId, tid } = options;
       const scene = wx.getStorageSync("scene");
       console.log("入口:", type, jump, scene, shared_video_id);
       if ((type === "share" || type === "tuiguang") && shared_video_id) {
+        SendEvent("enter_wxwork_material", {
+          materialId: shared_video_id,
+          type: "video",
+          tag_id: tag_id,
+          task_id: tid,
+        });
         if (jump === "1") {
           console.log("jump为1直接跳转到视频详情页");
           // 延迟跳转,确保列表页已经加载完成