|
@@ -1,48 +1,110 @@
|
|
|
<template>
|
|
|
<!-- 开奖页 -->
|
|
|
<div class="content">
|
|
|
- <img :src="require('@/assets/svg/icon-btn-box.svg')" alt="" />
|
|
|
- <p>You already followed Younan111 </p>
|
|
|
- <p>Only new followers open silver chest</p>
|
|
|
- <p class="txt">Invite people to</p>
|
|
|
- <p class="txt">open golden chest!</p>
|
|
|
- <v-btn :txt="'Invite friends for more treasures'" :font-size="'16px'"></v-btn>
|
|
|
+ <img :src="require('@/assets/svg/icon-silver-open-box.svg')" alt="" />
|
|
|
+ <div class="mark">
|
|
|
+ <p>You already followed Younan111 </p>
|
|
|
+ <template v-if="state.status == '新粉给钱'">
|
|
|
+ <p>You Win</p>
|
|
|
+ <div class="money">$0.22</div>
|
|
|
+ <div class="mark2">
|
|
|
+ <img :src="require('@/assets/svg/icon-silver-open-box.svg')" alt="" />
|
|
|
+ <div>14872 SHBI stored in your DeNet account</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-if="state.status == '老粉不给钱'">
|
|
|
+ <p>Only new followers open silver chest</p>
|
|
|
+ <p class="txt">Invite people to</p>
|
|
|
+ <p class="txt">open golden chest!</p>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <v-btn :txt="'Invite friends for more treasures'" :font-size="'16px'" class="btn"></v-btn>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import { inject } from 'vue'
|
|
|
-import VBtn from '@/view/iframe/treasure-hunt/btn.vue'
|
|
|
+import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
|
|
|
let state = inject('state')
|
|
|
|
|
|
+state.status = '新粉给钱'
|
|
|
+// state.status = '老粉不给钱'
|
|
|
+
|
|
|
</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;
|
|
|
|
|
|
- p {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- text-align: center;
|
|
|
-
|
|
|
+ img {
|
|
|
+ margin-top: 15px;
|
|
|
}
|
|
|
|
|
|
- p:nth-child(1) {
|
|
|
- color: #A9A49F;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
+ .mark {
|
|
|
+ position: absolute;
|
|
|
+ top: 246px;
|
|
|
+ width: 375px;
|
|
|
|
|
|
- p:nth-child(2) {
|
|
|
- color: #FFFFFF;
|
|
|
- font-weight: 800;
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
+ p {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ p:nth-child(1) {
|
|
|
+ color: #A9A49F;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ p:nth-child(2) {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ color: #FFFFFF;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
|
|
|
- .money {
|
|
|
- color: #FFC83A;
|
|
|
+ .txt {
|
|
|
+ color: #FFC83A;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 24px;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .money {
|
|
|
+ color: #FFC83A;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 34px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mark2 {
|
|
|
+ margin-top: 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 17px;
|
|
|
+ height: 17px;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ div {
|
|
|
+ color: #A9A49F;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ .btn {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 25px;
|
|
|
+ left: 15px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|