Browse Source

[bug fix]miss log

jihuaqiang 2 years ago
parent
commit
0810e50d49
1 changed files with 8 additions and 6 deletions
  1. 8 6
      components/MobileLandPage.vue

+ 8 - 6
components/MobileLandPage.vue

@@ -62,7 +62,7 @@
 		<FontZoom width="330">
 			<div class="mobile-land-page-tip">{{ tipCpd }}</div>
 		</FontZoom>
-		<div class="mobile-land-page-login-twitter" @click="toLogin">{{ isLoginCpd || loginSuccessBack ? 'Claim Prize' : 'Login Twitter' }}</div>
+		<div class="mobile-land-page-login-twitter" @click="toLogin">{{ isLoginCpd || loginSuccessBack ? (!useFul || isNFTCpd ? 'Install' : 'Claim Prize') : 'Login Twitter' }}</div>
 	</div>
 </template>
 <script>
@@ -219,11 +219,13 @@ export default {
 				logData.params.eventData.nftProjectId = this.nftProjectId;
 			}
 			Report.reportLog(logData);
-			if (userInfo) {
-				location.href = `/course?useful=${this.useFul ? '1' : '0'}&playType=${this.playType}&rewardType=${this.rewardType}&postId=${this.postId}&nftProjectId=${this.nftProjectId}&srcContentId=${this.srcContentId}`;
-			} else {
-				this.twitterAuth();
-			}
+			setTimeout(() => {
+				if (userInfo) {
+					location.href = `/course?useful=${this.useFul ? '1' : '0'}&playType=${this.playType}&rewardType=${this.rewardType}&postId=${this.postId}&nftProjectId=${this.nftProjectId}&srcContentId=${this.srcContentId}`;
+				} else {
+					this.twitterAuth();
+				}
+			}, 200);
 		},
 		cancelLogin() {
 			location.href = `/course?useful=${this.useFul ? '1' : '0'}&playType=${this.playType}&rewardType=${this.rewardType}&postId=${this.postId}&nftProjectId=${this.nftProjectId}&srcContentId=${this.srcContentId}`;