Ver código fonte

[edit] report

wenliming 2 anos atrás
pai
commit
0c2a52fe33
1 arquivos alterados com 10 adições e 9 exclusões
  1. 10 9
      src/view/iframe/red-packet/luck-draw.vue

+ 10 - 9
src/view/iframe/red-packet/luck-draw.vue

@@ -661,15 +661,6 @@ function onTweetReplyClick(params) {
     }
 
     window.parent.postMessage({ actionType: "IFRAME_RED_PACKET_ON_TWEET_REPLY_CLICK", data: replyData }, "*");
-
-    Report.reportLog({
-        objectType: Report.objectType.comment_and_tag,
-        pageSource: Report.pageSource.task_page,
-        businessType: Report.businessType.buttonClick,
-        postId: state.postId,
-        srcContentId: state.tweetId,
-        senderId: state.userId,
-    });
 }
 
 function changeNotification(checked) {
@@ -706,6 +697,16 @@ async function clickReply(params) {
     } else {
         window.parent.postMessage({ actionType: "IFRAME_RED_PACKET_REPLY_CLICK", data: replyData }, "*");
     }
+
+    // 埋点
+    Report.reportLog({
+        objectType: Report.objectType.comment_and_tag,
+        pageSource: Report.pageSource.task_page,
+        businessType: Report.businessType.buttonClick,
+        postId: state.postId,
+        srcContentId: state.tweetId,
+        senderId: state.userId,
+    });
 }
 
 /**