|
@@ -15,17 +15,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 红包 -->
|
|
|
- <template v-else-if="isCommonCpd">
|
|
|
+ <template v-else-if="isLottaryCpd">
|
|
|
<div class="mobile-land-page-prize-info-test">You are gifted an entries to earn</div>
|
|
|
<div class="mobile-land-page-prize-info-test">
|
|
|
<img v-if="!isCustomRewardCpd" class="icon" :src="currencyIconPath" />
|
|
|
<span class="pre-amount-value">{{ isCustomRewardCpd ? 1 : amountValue }}</span>
|
|
|
<span class="prize-name">{{ prize }}</span>
|
|
|
- <span class="usd-amount" v-if="!isCustomRewardCpd"> (${{ usValue }})</span>
|
|
|
+ <span class="usd-amount" v-if="!isCustomRewardCpd && usValue"> (${{ usValue }})</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 抽奖 -->
|
|
|
- <template v-else-if="isLottaryCpd">
|
|
|
+ <template v-else-if="isCommonCpd">
|
|
|
<div class="mobile-land-page-prize-info-test">
|
|
|
You Won
|
|
|
<img v-if="!isCustomRewardCpd" class="icon" :src="currencyIconPath" />
|
|
@@ -33,7 +33,7 @@
|
|
|
<FontZoom width="240" style="color: #000">
|
|
|
<span class="prize-name">{{ prize }}</span>
|
|
|
</FontZoom>
|
|
|
- <span class="usd-amount" v-if="!isCustomRewardCpd"> (${{ usValue }})</span>
|
|
|
+ <span class="usd-amount" v-if="!isCustomRewardCpd && usValue"> (${{ usValue }})</span>
|
|
|
</div>
|
|
|
<div class="mobile-land-page-prize-info-test">in the Giveaway!</div>
|
|
|
</template>
|
|
@@ -42,9 +42,9 @@
|
|
|
<div class="mobile-land-page-prize-info-test">Complete the quest to win</div>
|
|
|
<div class="mobile-land-page-prize-info-test">
|
|
|
<img class="icon" :src="currencyIconPath" />
|
|
|
- <span class="pre-amount-value">{{ amountValue }}</span>
|
|
|
+ <span class="pre-amount-value" v-if="amountValue">{{ amountValue }}</span>
|
|
|
<span class="prize-name">{{ prize }}</span>
|
|
|
- <span class="usd-amount"> (${{ usValue }})</span>
|
|
|
+ <span class="usd-amount" v-if="usValue"> (${{ usValue }})</span>
|
|
|
for you two!
|
|
|
</div>
|
|
|
</template>
|
|
@@ -109,12 +109,12 @@ export default {
|
|
|
},
|
|
|
amountValue: {
|
|
|
// 奖品数量
|
|
|
- type: String,
|
|
|
+ type: [String, Number],
|
|
|
default: '1',
|
|
|
},
|
|
|
usValue: {
|
|
|
// 转换为美金 的价值
|
|
|
- type: String,
|
|
|
+ type: [String, Number],
|
|
|
default: '',
|
|
|
},
|
|
|
prize: {
|
|
@@ -172,7 +172,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
tipCpd() {
|
|
|
- if (this.isCommonCpd) {
|
|
|
+ if (!this.useFul) {
|
|
|
+ return 'login Twitter to install DeNet Chrome Extension';
|
|
|
+ } else if (this.isCommonCpd) {
|
|
|
return 'to claim, log in twitter to install Denet Chrome Extension';
|
|
|
} else if (this.isLottaryCpd) {
|
|
|
return 'To participate, login Twitter to install DeNet Chrome Extension';
|