Ver Fonte

Merge branch 'bug_fix_220526_report' into feature_220519_facebook_share

# Conflicts:
#	pages/index.vue
A\An há 2 anos atrás
pai
commit
05db986b3f
2 ficheiros alterados com 52 adições e 16 exclusões
  1. 4 2
      log-center/logEnum.js
  2. 48 14
      pages/index.vue

+ 4 - 2
log-center/logEnum.js

@@ -9,9 +9,11 @@ export const businessType = {
 }
 
 export const objectType = {
-    installButton: "install-button"
+    installButton: "install-button",
+    copyLinkButton: "copy-link-button"
 }
 
 export const pageSource = {
-    newUserLandingPage: "new-user-landing-page"
+    newUserLandingPage: "new-user-landing-page",
+    mobileLandingPage: "mobile-landing-page"
 }

+ 48 - 14
pages/index.vue

@@ -65,7 +65,7 @@
 						<img v-else src="/svg/icon-twitter.svg" alt />
 						<div class="luck-content">
 							<div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
-							<div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
+							<div class="luck-time">{{ formatTime(item.receiveTimestamp, 'MM-DD HH:mm') }}</div>
 						</div>
 						<div class="luck-money">
 							<img :src="item.currencyIconPath" alt />
@@ -199,7 +199,7 @@
 					{{ cp_link }}
 				</div>
 				<div class="area-btn">
-					<div class="btn" :data-clipboard-text="cp_link">Copy Link</div>
+					<div class="btn" :data-clipboard-text="cp_link" @click="copyLinkHandle">Copy Link</div>
 				</div>
 			</div>
 			<div class="layer" v-show="layer_show">
@@ -262,7 +262,7 @@ export default {
 				}
 			},
 			currencyIconPath: '',
-			title: '',
+			title: 'DeNet Giveaway',
 			metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
 			jumpUrl: jumpUrl,
 			status: '',
@@ -319,6 +319,23 @@ export default {
 		}
 	},
 	methods: {
+		copyLinkHandle() {
+			Report.reportLog({
+				baseInfo: {
+					appVersionCode: this.appVersionCode,
+					mid: this.mid,
+					pageSource: Report.pageSource.mobileLandingPage,
+					appType,
+					machineCode: this.mid
+				},
+				params: {
+					eventData: {
+						businessType: Report.businessType.buttonClick,
+						objectType: Report.objectType.copyLinkButton
+					}
+				}
+			})
+		},
 		clickOpenChrome() {
 			window.open('https://www.google.com/chrome')
 		},
@@ -334,7 +351,8 @@ export default {
 					appVersionCode: this.appVersionCode,
 					mid: this.mid,
 					pageSource: Report.pageSource.newUserLandingPage,
-					appType
+					appType,
+					machineCode: this.mid
 				},
 				params: {
 					eventData: {
@@ -588,6 +606,20 @@ export default {
 
 		document.documentElement.style.fontSize = '62.5%'
 		if (this.isMobile()) {
+			Report.reportLog({
+				baseInfo: {
+					appVersionCode: this.appVersionCode,
+					mid: this.mid,
+					pageSource: Report.pageSource.mobileLandingPage,
+					appType,
+					machineCode: this.mid
+				},
+				params: {
+					eventData: {
+						businessType: Report.businessType.pageView
+					}
+				}
+			})
 			this.show_moblie = true
 			this.cp_link = window.location.href
 			// 复制链接
@@ -624,7 +656,8 @@ export default {
 					appVersionCode: this.appVersionCode,
 					mid: this.mid,
 					pageSource: Report.pageSource.newUserLandingPage,
-					appType
+					appType,
+					machineCode: this.mid
 				},
 				params: {
 					eventData: {
@@ -1073,7 +1106,7 @@ body,
 		border-radius: 2rem;
 		// background: red;
 		overflow-y: hidden;
-		box-shadow: 0 0 5px #888888;
+		box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
 		background: #fff;
 
 
@@ -1137,7 +1170,7 @@ body,
 				text-align: center;
 				color: #fff;
 				background: #389AFF;
-				border-radius: 0 586px 586px/0 0 104px 104px;
+				border-radius: 0 586px 586px/0 0 164px 164px;
 
 				.txt {
 					padding-top: 8.5rem;
@@ -1181,9 +1214,10 @@ body,
 			padding: 14px 0 11px 0;
 			background: #fff;
 			display: flex;
+            font-weight: 500;
 			justify-content: space-between;
 			color: #B0B0B0;
-			border-bottom: 1px solid #D1D1D1;
+			border-bottom: 1px solid #F2F2F2;
 		}
 
 
@@ -1195,7 +1229,7 @@ body,
 				display: flex;
 				padding: 12px 0;
 				margin: 0 16px;
-				border-bottom: 1px solid #d1d1d1;
+				border-bottom: 1px solid #F2F2F2;
 				justify-content: space-between;
 				position: relative;
 
@@ -1239,14 +1273,14 @@ body,
 						font-size: 16px;
 						letter-spacing: 0.3px;
 						color: #444444;
+                        margin-bottom: 5px;
 					}
 
 					.luck-time {
 						font-weight: 400;
 						font-size: 12px;
 						line-height: 14px;
-
-						color: #9b9b9b;
+						color: #B0B0B0;
 					}
 				}
 
@@ -1319,7 +1353,7 @@ body,
 	}
 
 	.redPacket2 {
-		left: 30.6rem;
+		left: 43.6rem;
 		margin-left: -18rem;
 	}
 
@@ -1333,7 +1367,7 @@ body,
 	.install {
 		position: absolute;
 		top: 20rem;
-		left: 78.5rem;
+		left: 73.5rem;
 
 		.title {
 			font-size: 4.8rem;
@@ -1347,7 +1381,7 @@ body,
 			width: 40rem;
 			height: 3.3rem;
 			line-height: 3.3rem;
-
+            font-weight: normal;
 			span {
 				font-size: 1.4rem;
 			}