result.vue 3.6 KB

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