|
@@ -2,43 +2,36 @@
|
|
|
<!-- 封面页 -->
|
|
|
<div class="cover">
|
|
|
<v-head :left-data="state.detail.postUserInfo || null"></v-head>
|
|
|
- <div class="waring" v-if="state.cover_status == '奖励已被领光'">
|
|
|
- <div>All treasures</div>
|
|
|
- <div>are hunted</div>
|
|
|
- </div>
|
|
|
<!-- 邀请人 -->
|
|
|
- <template v-else>
|
|
|
- <div class="invite"
|
|
|
- v-if="state.detail.inviteUserInfo && state.detail.inviteUserInfo.nickName != state.detail.postUserInfo.nickName">
|
|
|
- <img :src="state.detail.inviteUserInfo.avatarUrl" alt="" />
|
|
|
- <span>@{{ state.detail.inviteUserInfo.nickName }} invites you</span>
|
|
|
- </div>
|
|
|
- <div class="in-invite" v-else></div>
|
|
|
- <div class="treasure">
|
|
|
- <component-zoom width="335" fontSize="34" style="margin:0 auto;">
|
|
|
- <span>Treasure</span>
|
|
|
- <span>${{ toLast(state.detail.amountUsdValue, 2) }}</span>
|
|
|
- </component-zoom>
|
|
|
- </div>
|
|
|
- <div class="gain" v-if="Number(state.detail.upGainAmountValue) > 0">
|
|
|
- <component-zoom width="335" fontSize="34" style="margin:0 auto;">
|
|
|
- <span>Your Gain Up to</span>
|
|
|
- <span>$</span>
|
|
|
- <span>{{ toLast(state.detail.upGainAmountValue, 3) }}</span>
|
|
|
- </component-zoom>
|
|
|
- </div>
|
|
|
- <div class="coin" v-if="state.detail.currencySymbol != 'USD'">
|
|
|
- <img :src="state.detail.currencyIconPath" alt="" />
|
|
|
- <span> {{ state.detail.currencySymbol }} equivalent (Crypto)</span>
|
|
|
- </div>
|
|
|
- <div class="coin" v-else></div>
|
|
|
- </template>
|
|
|
+ <div class="invite"
|
|
|
+ v-if="state.detail.inviteUserInfo && state.detail.inviteUserInfo.nickName != state.detail.postUserInfo.nickName">
|
|
|
+ <img :src="state.detail.inviteUserInfo.avatarUrl" alt="" />
|
|
|
+ <span>@{{ state.detail.inviteUserInfo.nickName }} invites you</span>
|
|
|
+ </div>
|
|
|
+ <div class="in-invite" v-else></div>
|
|
|
+ <div class="treasure">
|
|
|
+ <component-zoom width="335" fontSize="34" style="margin:0 auto;">
|
|
|
+ <span>Treasure</span>
|
|
|
+ <span>${{ toLast(state.detail.amountUsdValue, 2) }}</span>
|
|
|
+ </component-zoom>
|
|
|
+ </div>
|
|
|
+ <div class="gain" v-if="Number(state.detail.upGainAmountValue) > 0">
|
|
|
+ <component-zoom width="335" fontSize="34" style="margin:0 auto;">
|
|
|
+ <span>Your Gain Up to</span>
|
|
|
+ <span>$</span>
|
|
|
+ <span>{{ toLast(state.detail.upGainAmountValue, 3) }}</span>
|
|
|
+ </component-zoom>
|
|
|
+ </div>
|
|
|
+ <div class="coin" v-if="state.detail.currencySymbol != 'USD'">
|
|
|
+ <img :src="state.detail.currencyIconPath" alt="" />
|
|
|
+ <span> {{ state.detail.currencySymbol }} equivalent (Crypto)</span>
|
|
|
+ </div>
|
|
|
+ <div class="coin" v-else></div>
|
|
|
|
|
|
<div class="box">
|
|
|
- <img :src="require('@/assets/img/icon-gold-close-box.png')" alt="" v-if="state.cover_status == '奖励已被领光'" />
|
|
|
- <img :src="require('@/assets/img/icon-treasure-box.png')" alt="" v-else />
|
|
|
+ <img :src="require('@/assets/img/icon-treasure-box.png')" alt="" />
|
|
|
</div>
|
|
|
- <div class="mark" :style="{ 'opacity': state.cover_status == '奖励已被领光' ? '0' : '1' }">
|
|
|
+ <div class="mark">
|
|
|
<img :src="require('@/assets/svg/icon-three-line.svg')" alt="" />
|
|
|
<span>to Hunt Treasure</span>
|
|
|
</div>
|
|
@@ -334,20 +327,6 @@ async function clickBtn() {
|
|
|
if (!global_userInfo || !global_userInfo.uid) {
|
|
|
return
|
|
|
}
|
|
|
- if (state.cover_status == '奖励已被领光') {
|
|
|
- Report.reportLog({
|
|
|
- pageSource: Report.pageSource.expiredPage,
|
|
|
- businessType: Report.businessType.buttonClick,
|
|
|
- objectType: Report.objectType.getMoreGiveaway,
|
|
|
- postId: state.postId,
|
|
|
- shareLinkId: state.invite_code,
|
|
|
- currentInvitedNum: state.inviteCount,
|
|
|
- redPacketType: Report.redPacketType.treasure
|
|
|
- });
|
|
|
-
|
|
|
- window.open('https://twitter.com/search?q=%23denet');
|
|
|
- return
|
|
|
- }
|
|
|
state.btn_loading = true
|
|
|
|
|
|
Report.reportLog({
|