nieyuge преди 2 години
родител
ревизия
02d6759d4d
променени са 1 файла, в които са добавени 42 реда и са изтрити 38 реда
  1. 42 38
      pages/index.vue

+ 42 - 38
pages/index.vue

@@ -620,26 +620,28 @@ export default {
 		document.documentElement.style.fontSize = '62.5%'
 		if (this.isMobile()) {
 			this.setCookieMid();
-			Report.reportLog({
-				baseInfo: {
-					appVersionCode: this.appVersionCode,
-					mid: this.mid,
-					pageSource: Report.pageSource.mobileLandingPage,
-					appType,
-					machineCode: this.mid
-				},
-				params: {
-					eventData: {
-						businessType: Report.businessType.pageView
-					},
-                    extParams: {
-                        postId: this.detail.postId,
-                        srcContentId: this.detail.srcContentId,
-                        senderId: this.detail.srcUserId,
-                        status: this.status,
+            setTimeout(() => {
+                Report.reportLog({
+                    baseInfo: {
+                        appVersionCode: this.appVersionCode,
+                        mid: this.mid,
+                        pageSource: Report.pageSource.mobileLandingPage,
+                        appType,
+                        machineCode: this.mid
+                    },
+                    params: {
+                        eventData: {
+                            businessType: Report.businessType.pageView
+                        },
+                        extParams: {
+                            postId: this.detail.postId,
+                            srcContentId: this.detail.srcContentId,
+                            senderId: this.detail.srcUserId,
+                            status: this.status,
+                        }
                     }
-				}
-			})
+                })
+            }, 500)
 			this.show_moblie = true
 			this.cp_link = window.location.href
 			// 复制链接
@@ -671,26 +673,28 @@ export default {
 				this.status = 'nothing'
 			}
 			this.setPickupInfo()
-			Report.reportLog({
-				baseInfo: {
-					appVersionCode: this.appVersionCode,
-					mid: this.mid,
-					pageSource: Report.pageSource.newUserLandingPage,
-					appType,
-					machineCode: this.mid
-				},
-				params: {
-					eventData: {
-						businessType: Report.businessType.pageView,
-					},
-                    extParams: {
-                        postId: this.detail.postId,
-                        srcContentId: this.detail.srcContentId,
-                        senderId: this.detail.srcUserId,
-                        status: this.status,
+            setTimeout(() => {
+                Report.reportLog({
+                    baseInfo: {
+                        appVersionCode: this.appVersionCode,
+                        mid: this.mid,
+                        pageSource: Report.pageSource.newUserLandingPage,
+                        appType,
+                        machineCode: this.mid
+                    },
+                    params: {
+                        eventData: {
+                            businessType: Report.businessType.pageView,
+                        },
+                        extParams: {
+                            postId: this.detail.postId,
+                            srcContentId: this.detail.srcContentId,
+                            senderId: this.detail.srcUserId,
+                            status: this.status,
+                        }
                     }
-				}
-			});
+                });
+            }, 500)
 		} else {
 			this.show_home = true
 			this.status = 'no-chrome'