result.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <!-- 开奖页 -->
  3. <div class="content">
  4. <img :src="require('@/assets/img/icon-silver-open-box.png')" alt="" />
  5. <div class="mark">
  6. <p>You already followed Younan111 </p>
  7. <!-- 新粉 -->
  8. <template v-if="state.start_task.amountValue > 0">
  9. <p>You Win</p>
  10. <div class="money">${{ state.start_task.usdAmountValue }}</div>
  11. <div class="mark2">
  12. <img :src="state.start_task.currencyIcon" alt="" />
  13. <div>{{ state.start_task.amountValue }} {{ state.start_task.currencySymbol }} stored in your DeNet
  14. account</div>
  15. </div>
  16. </template>
  17. <!-- 老粉不给钱 -->
  18. <template v-else>
  19. <p>Only new followers open silver chest</p>
  20. <p class="txt">Invite people to</p>
  21. <p class="txt">open golden chest!</p>
  22. </template>
  23. </div>
  24. <v-btn :txt="'Invite friends for more treasures'" :font-size="'16px'" class="btn"
  25. v-if="state.start_task.amountValue > 0" @onClick="clickBtn"></v-btn>
  26. <v-btn :txt="'Invite'" :font-size="'16px'" class="btn" v-else @onClick="clickBtn"></v-btn>
  27. </div>
  28. </template>
  29. <script setup>
  30. import { inject } from 'vue'
  31. import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
  32. let state = inject('state')
  33. const clickBtn = () => {
  34. state.init()
  35. state.page = '邀请页'
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .content {
  40. width: 375px;
  41. height: 500px;
  42. background: linear-gradient(179.96deg, #876635 20.15%, #31251A 44.61%, #24180C 78.18%);
  43. text-align: center;
  44. position: relative;
  45. img {
  46. margin-top: 15px;
  47. width: 250px;
  48. height: 250px;
  49. }
  50. .mark {
  51. position: absolute;
  52. top: 246px;
  53. width: 375px;
  54. p {
  55. margin: 0;
  56. padding: 0;
  57. text-align: center;
  58. }
  59. p:nth-child(1) {
  60. color: #A9A49F;
  61. font-weight: 400;
  62. font-size: 12px;
  63. margin-bottom: 10px;
  64. }
  65. p:nth-child(2) {
  66. margin-bottom: 10px;
  67. color: #FFFFFF;
  68. font-weight: 800;
  69. font-size: 18px;
  70. }
  71. .txt {
  72. color: #FFC83A;
  73. font-weight: 800;
  74. font-size: 24px;
  75. }
  76. .money {
  77. color: #FFC83A;
  78. font-weight: 800;
  79. font-size: 34px;
  80. }
  81. .mark2 {
  82. margin-top: 10px;
  83. display: flex;
  84. justify-content: center;
  85. img {
  86. width: 17px;
  87. height: 17px;
  88. margin: 0;
  89. }
  90. div {
  91. color: #A9A49F;
  92. font-weight: 400;
  93. font-size: 12px;
  94. }
  95. }
  96. }
  97. .btn {
  98. position: absolute;
  99. bottom: 25px;
  100. left: 15px;
  101. }
  102. }
  103. </style>