open-box.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="background"></div>
  3. <!-- 开奖页 -->
  4. <div class="content">
  5. <img :src="require('@/assets/img/icon-silver-open-box.png')" alt="" />
  6. <div class="mark">
  7. <p>You Win</p>
  8. <div class="money">$0.22</div>
  9. <div class="mark2">
  10. <img :src="require('@/assets/img/icon-silver-open-box.png')" alt="" />
  11. <div>14872 SHBI stored in your DeNet account</div>
  12. </div>
  13. </div>
  14. <v-btn :txt="'OK'" :font-size="'16px'" class="btn" :icon="false"></v-btn>
  15. </div>
  16. </template>
  17. <script setup>
  18. import { inject } from 'vue'
  19. import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
  20. let state = inject('state')
  21. state.status = '新粉给钱'
  22. // state.status = '老粉不给钱'
  23. </script>
  24. <style lang="scss" scoped>
  25. .background {
  26. background: #000000;
  27. opacity: .9;
  28. position: fixed;
  29. width: 100%;
  30. height: 100%;
  31. z-index: 1;
  32. }
  33. .content {
  34. z-index: 2;
  35. width: 375px;
  36. height: 500px;
  37. text-align: center;
  38. position: relative;
  39. img {
  40. margin-top: 15px;
  41. }
  42. .mark {
  43. position: absolute;
  44. top: 246px;
  45. width: 375px;
  46. p {
  47. margin: 0;
  48. padding: 0;
  49. text-align: center;
  50. }
  51. p:nth-child(1) {
  52. margin-bottom: 10px;
  53. color: #FFFFFF;
  54. font-weight: 800;
  55. font-size: 18px;
  56. }
  57. .txt {
  58. color: #FFC83A;
  59. font-weight: 800;
  60. font-size: 24px;
  61. }
  62. .money {
  63. color: #FFC83A;
  64. font-weight: 800;
  65. font-size: 34px;
  66. }
  67. .mark2 {
  68. margin-top: 10px;
  69. display: flex;
  70. justify-content: center;
  71. img {
  72. width: 17px;
  73. height: 17px;
  74. margin: 0;
  75. }
  76. div {
  77. color: #A9A49F;
  78. font-weight: 400;
  79. font-size: 12px;
  80. }
  81. }
  82. }
  83. .btn {
  84. position: absolute;
  85. bottom: 25px;
  86. left: 15px;
  87. }
  88. }
  89. </style>