nieyuge 2 سال پیش
والد
کامیت
605daadc01
1فایلهای تغییر یافته به همراه62 افزوده شده و 18 حذف شده
  1. 62 18
      pages/toolbox/index.vue

+ 62 - 18
pages/toolbox/index.vue

@@ -175,26 +175,49 @@ export default {
 		let that = this;
 		this.pageSource = Report.pageSource.newUserLandingPage;
 		this.setCookieMid();
-		Report.reportLog({
-			baseInfo: {
-				appVersionCode: appVersionCode,
-				mid: this.mid,
-				pageSource: this.pageSource,
-				appType,
-				machineCode: this.mid,
-			},
-			params: {
-				eventData: {
-					businessType: Report.businessType.pageView,
-					postId: this.detail.postId,
-					srcContentId: this.detail.srcContentId,
-					redPacketType: 5,
-					postEditorUrl: this.detail.postBizData.convertUrl,
+		this.device = getBrowserType();
+		if (this.device == 'ios' || this.device == '安卓') {
+			Report.reportLog({
+				baseInfo: {
+					appVersionCode: appVersionCode,
+					mid: this.mid,
+					pageSource: Report.pageSource.mobileLandingPage,
+					appType,
+					machineCode: this.mid,
 				},
-			},
-		});
+				params: {
+					eventData: {
+						businessType: Report.businessType.pageView,
+						postId: this.detail.postId,
+						srcContentId: this.detail.srcContentId,
+						redPacketType: 5,
+						nftProjectId: this.detail.postBizData.certNftProjectId,
+						postEditorUrl: this.detail.postBizData.convertUrl,
+					},
+				},
+			});
+		} else {
+			Report.reportLog({
+				baseInfo: {
+					appVersionCode: appVersionCode,
+					mid: this.mid,
+					pageSource: this.pageSource,
+					appType,
+					machineCode: this.mid,
+				},
+				params: {
+					eventData: {
+						businessType: Report.businessType.pageView,
+						postId: this.detail.postId,
+						srcContentId: this.detail.srcContentId,
+						redPacketType: 5,
+						postEditorUrl: this.detail.postBizData.convertUrl,
+					},
+				},
+			});
+		}
+		
 		this.copy_link = window.location.href;
-		this.device = getBrowserType();
 		this.getConfig();
 		this.getUserInfo();
 		console.log('device', this.device);
@@ -293,6 +316,27 @@ export default {
 			clipboard.on('error', function () {
 				Toast('copy error');
 			});
+			
+			Report.reportLog({
+				baseInfo: {
+					appVersionCode: appVersionCode,
+					mid: this.mid,
+					pageSource: Report.pageSource.mobileLandingPage,
+					appType,
+					machineCode: this.mid,
+				},
+				params: {
+					eventData: {
+						businessType: Report.businessType.buttonClick,
+						objectType: Report.objectType.copyLinkButton,
+						postId: this.detail.postId,
+						srcContentId: this.detail.srcContentId,
+						redPacketType: 5,
+						nftProjectId: this.detail.postBizData.certNftProjectId,
+						postEditorUrl: this.detail.postBizData.convertUrl,
+					},
+				},
+			});
 		},
 		clickExtension() {
 			window.open(this.config.extensionsInstallUrl);