Browse Source

Merge branch 'dev_1.1.7_lint' of https://git.yishihui.com/DeNet/de-net-official into dev_1.1.7_lint

jihuaqiang 2 years ago
parent
commit
903a49b90b
2 changed files with 11 additions and 3 deletions
  1. 5 2
      components/MobileLandPage.vue
  2. 6 1
      pages/treasure/invite.vue

+ 5 - 2
components/MobileLandPage.vue

@@ -41,7 +41,6 @@
 			<template v-else-if="isTreasureCpd">
 				<div class="mobile-land-page-prize-info-test">Complete the quest to win up to</div>
 				<div class="mobile-land-page-prize-info-test">
-					<img class="icon" :src="currencyIconPath" />
 					<span class="pre-amount-value" v-if="amountValue">{{ amountValue }}</span>
 					<span class="prize-name">{{ prize }}</span>
 					<span class="usd-amount treasure-usd-amount"> ${{ usValue }} for you two!</span>
@@ -294,7 +293,7 @@ export default {
 	align-items: center;
 	padding: 0 16px;
 	&-invited-info {
-		width: 302px;
+		min-width: 302px;
 		height: 72px;
 		margin-top: 28px;
 		position: relative;
@@ -306,6 +305,10 @@ export default {
 		justify-content: flex-start;
 		background: #ffffff;
 		border: 1px solid #c0daeb;
+		padding-right: 12px;
+		box-sizing: border-box;
+		white-space: nowrap;
+
 		.invited-photo {
 			width: 70px;
 			height: 70px;

+ 6 - 1
pages/treasure/invite.vue

@@ -147,7 +147,12 @@ export default {
 	mounted() {
 		setTimeout(() => {
 			this.checkInstall()
-				.then(() => {})
+				.then(() => {
+					if (this.detail.srcContentId && this.detail.inviteUserInfo && this.detail.inviteUserInfo.postNickName) {
+						let url = `https://twitter.com/${this.detail.inviteUserInfo.postNickName}/status/${this.detail.srcContentId}`;
+						window.open(url);
+					}
+				})
 				.catch(() => {
 					this.setTreasureInfo();
 				});