|
@@ -1,168 +1,214 @@
|
|
|
<template>
|
|
|
- <!-- 开奖页 -->
|
|
|
- <div class="content" v-show-log="state.log_result_show">
|
|
|
- <img :src="require('@/assets/img/icon-silver-open-box-big.png')" alt="" />
|
|
|
- <div class="mark">
|
|
|
-
|
|
|
- <!-- 新粉 -->
|
|
|
- <template v-if="Number(state.start_task.amountValue) > 0">
|
|
|
- <p>You are now following
|
|
|
- <template v-for="item, i in state.follows">
|
|
|
- <span v-if="i == 0">@{{ item.name }}</span>
|
|
|
- <span v-else>, @{{ item.name }}</span>
|
|
|
- </template>
|
|
|
- </p>
|
|
|
- <p>You Win</p>
|
|
|
- <component-zoom width="335" fontSize="34" style="margin:0 auto;">
|
|
|
- <div class="money">${{ state.start_task.usdAmountValue }}</div>
|
|
|
- </component-zoom>
|
|
|
- <div class="mark2">
|
|
|
- <img :src="state.start_task.currencyIcon" alt="" />
|
|
|
- <div>{{ state.start_task.amountValue }} {{ state.start_task.currencySymbol }} stored in your DeNet
|
|
|
- account</div>
|
|
|
+ <div class="content">
|
|
|
+ <!-- 结果页 -->
|
|
|
+ <div class="header">
|
|
|
+ <img :src="require('@/assets/subject/004-back-head-top.svg')" alt class="back" />
|
|
|
+ <!-- 领到钱了 -->
|
|
|
+ <template v-if="Number(state.detail.amountUsdValue) > 0">
|
|
|
+ <div class="tip1">This Giveaway Expired on {{ moment(state.detail.endTimestamp).format('MM-DD') }}</div>
|
|
|
+ <div class="tip2">🎉 Awesome! You are the Winner!</div>
|
|
|
+ <div class="tip3">+${{ state.detail.amountUsdValue }}</div>
|
|
|
+ <div class="tip3-back"></div>
|
|
|
+ </template>
|
|
|
+ <!-- 没有领到钱 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="rabbit">
|
|
|
+ <img :src="require('@/assets/subject/001-icon-rabbit.svg')" alt />
|
|
|
+ <p>Sorry, you missed this treasure</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="list">
|
|
|
+ <receive-list></receive-list>
|
|
|
+ </div>
|
|
|
+ <div class="footer">
|
|
|
+ <!-- 领取到钱了 -->
|
|
|
+ <template v-if="Number(state.detail.amountUsdValue) > 0">
|
|
|
+ <div class="btn btn1" @click="clickDone">
|
|
|
+ <img :src="require('@/assets/svg/icon-wallet-success.svg')" alt />
|
|
|
+ <span>Wallet</span>
|
|
|
</div>
|
|
|
+ <get-more :style_type="4">
|
|
|
+ <div class="btn btn2">
|
|
|
+ <img :src="require('@/assets/svg/icon-gold-box-close.svg')" alt />
|
|
|
+ <span>Get More</span>
|
|
|
+ </div>
|
|
|
+ </get-more>
|
|
|
</template>
|
|
|
- <!-- 老粉不给钱 -->
|
|
|
+ <!-- 没有领到钱 -->
|
|
|
<template v-else>
|
|
|
- <p>You already followed
|
|
|
- <template v-for="item, i in state.follows">
|
|
|
- <span v-if="i == 0">@{{ item.name }}</span>
|
|
|
- <span v-else>, @{{ item.name }}</span>
|
|
|
- </template>
|
|
|
- </p>
|
|
|
- <p>Only new followers open silver chest</p>
|
|
|
- <p class="txt">Invite people to</p>
|
|
|
- <p class="txt">open golden chest!</p>
|
|
|
+ <div class="btn btn2 btn3" @click="clickBtn">
|
|
|
+ <img :src="require('@/assets/svg/icon-gold-box-close.svg')" alt />
|
|
|
+ <span>Look for more treasures</span>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <v-btn :txt="'Invite friends for more treasures'" :font-size="'16px'" class="btn"
|
|
|
- v-if="Number(state.start_task.amountValue) > 0" v-click-log="state.log_result_click" @onClick="clickBtn"
|
|
|
- :disabled="false"></v-btn>
|
|
|
- <v-btn :txt="'Invite'" :font-size="'16px'" class="btn" v-else @onClick="clickBtn" :disabled="false"
|
|
|
- v-click-log="state.log_result_click"></v-btn>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import { inject, onMounted } from 'vue'
|
|
|
-import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
|
|
|
+import ReceiveList from '@/view/iframe/treasure-hunt/components/receive-list.vue'
|
|
|
+import { chromeExtensionUrl } from '@/uilts/chromeExtension.js'
|
|
|
+import GetMore from '@/view/iframe/publish/components/get-more.vue'
|
|
|
import Report from "@/log-center/log"
|
|
|
|
|
|
let state = inject('state')
|
|
|
+var moment = require('moment')
|
|
|
|
|
|
-state.log_result_show = {
|
|
|
- businessType: Report.businessType.pageView,
|
|
|
- pageSource: Report.pageSource.newFansRewardPage,
|
|
|
- redPacketType: Report.redPacketType.treasure,
|
|
|
- shareLinkId: state.invite_code,
|
|
|
- postId: state.postId,
|
|
|
- extParams: {
|
|
|
- isNewFans: Number(state.start_task.amountValue) > 0 ? true : false
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-state.log_result_click = {
|
|
|
- businessType: Report.businessType.buttonClick,
|
|
|
- pageSource: Report.pageSource.newFansRewardPage,
|
|
|
- objectType: Report.objectType.nextButton,
|
|
|
- redPacketType: Report.redPacketType.treasure,
|
|
|
- shareLinkId: state.invite_code,
|
|
|
- postId: state.postId,
|
|
|
- extParams: {
|
|
|
- isNewFans: Number(state.start_task.amountValue) > 0 ? true : false
|
|
|
- }
|
|
|
+function clickDone() {
|
|
|
+ window.open(`${chromeExtensionUrl + ('iframe/home.html')}`)
|
|
|
}
|
|
|
|
|
|
-async function clickBtn() {
|
|
|
- let _userInfo = await state.checkIsLogin()
|
|
|
- if (!_userInfo) {
|
|
|
- return
|
|
|
- }
|
|
|
- state.init(() => {
|
|
|
- state.page = '邀请页'
|
|
|
- })
|
|
|
+const clickBtn = () => {
|
|
|
+ // Report.reportLog({
|
|
|
+ // pageSource: Report.pageSource.pending_page,
|
|
|
+ // businessType: Report.businessType.buttonClick,
|
|
|
+ // objectType: Report.objectType.getMoreGiveaway,
|
|
|
+ // postId: state.postId
|
|
|
+ // });
|
|
|
+ window.open('https://twitter.com/search?q=%23denet');
|
|
|
}
|
|
|
-JSON.parse('[{\"type\":2},{\"type\":10},{\"relatedUsers\":[{\"name\":\"Ice17619765\",\"twitterUserId\":\"1502254505236525056\"},{\"name\":\"IanDuddyUK\",\"twitterUserId\":\"556285604\"},{\"name\":\"ffvc\",\"twitterUserId\":\"285917234\"}],\"type\":1}]')
|
|
|
-
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.content {
|
|
|
width: 375px;
|
|
|
- height: 500px;
|
|
|
- background: linear-gradient(179.96deg, #876635 20.15%, #31251A 44.61%, #24180C 78.18%);
|
|
|
- text-align: center;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- img {
|
|
|
- margin-top: 15px;
|
|
|
- width: 250px;
|
|
|
- height: 250px;
|
|
|
- }
|
|
|
-
|
|
|
- .mark {
|
|
|
- position: absolute;
|
|
|
- top: 246px;
|
|
|
- width: 375px;
|
|
|
|
|
|
- p {
|
|
|
- margin: 0;
|
|
|
- padding: 0 16px;
|
|
|
- text-align: center;
|
|
|
+ .header {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 150px;
|
|
|
+ position: relative;
|
|
|
|
|
|
+ .back {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: -1;
|
|
|
}
|
|
|
|
|
|
- p:nth-child(1) {
|
|
|
- color: #A9A49F;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 12px;
|
|
|
- margin-bottom: 10px;
|
|
|
+ .tip1 {
|
|
|
+ color: #FFFFFF;
|
|
|
+ opacity: 0.5;
|
|
|
+ text-align: center;
|
|
|
+ padding-top: 16px;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 13px;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
|
|
|
- p:nth-child(2) {
|
|
|
- margin-bottom: 10px;
|
|
|
+ .tip2 {
|
|
|
color: #FFFFFF;
|
|
|
+ text-align: center;
|
|
|
font-weight: 800;
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
+ font-size: 16px;
|
|
|
+ margin-top: 11px;
|
|
|
|
|
|
- .txt {
|
|
|
- color: #FFC83A;
|
|
|
- font-weight: 800;
|
|
|
- font-size: 24px;
|
|
|
+ }
|
|
|
|
|
|
+ .tip3-back {
|
|
|
+ width: 100%;
|
|
|
+ height: 43px;
|
|
|
+ position: absolute;
|
|
|
+ top: 74px;
|
|
|
+ left: 0;
|
|
|
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.826667) 26.4%, #FFFFFF 71.47%, rgba(255, 255, 255, 0) 100%);
|
|
|
+ opacity: 0.15;
|
|
|
+ z-index: 1;
|
|
|
}
|
|
|
|
|
|
- .money {
|
|
|
- color: #FFC83A;
|
|
|
+ .tip3 {
|
|
|
+ position: absolute;
|
|
|
+ top: 74px;
|
|
|
+ z-index: 2;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ line-height: 43px;
|
|
|
+ height: 43px;
|
|
|
+ color: #F5C03F;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 26px;
|
|
|
font-weight: 800;
|
|
|
- font-size: 34px;
|
|
|
}
|
|
|
|
|
|
- .mark2 {
|
|
|
- margin-top: 10px;
|
|
|
+
|
|
|
+ .rabbit {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: center;
|
|
|
|
|
|
img {
|
|
|
- width: 17px;
|
|
|
- height: 17px;
|
|
|
- margin: 0;
|
|
|
- margin-right: 5px;
|
|
|
+ width: 150px;
|
|
|
+ height: 80px;
|
|
|
+ margin-top: 14px;
|
|
|
+ margin-bottom: 4px;
|
|
|
}
|
|
|
|
|
|
- div {
|
|
|
- color: #A9A49F;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 12px;
|
|
|
+ .flower {
|
|
|
+ width: 62px;
|
|
|
+ height: 62px;
|
|
|
+ }
|
|
|
|
|
|
+ p {
|
|
|
+ width: 100%;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #fff;
|
|
|
+ text-align: center;
|
|
|
+ letter-spacing: 0.3px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .btn {
|
|
|
- position: absolute;
|
|
|
- bottom: 25px;
|
|
|
- left: 15px;
|
|
|
+ .list {
|
|
|
+ height: 336px;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .footer {
|
|
|
+ height: 84px;
|
|
|
+ display: flex;
|
|
|
+ padding: 16px;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ width: 166.5px;
|
|
|
+ height: 52px;
|
|
|
+ border-radius: 100px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 18px;
|
|
|
+ user-select: none;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ margin-right: 7px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn1 {
|
|
|
+ background: #FFFFFF;
|
|
|
+ border: 1px solid #DEDEDE;
|
|
|
+ color: #585858;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn2 {
|
|
|
+ color: #FFFFFF;
|
|
|
+ background: #1D9BF0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn3 {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|