open-box.vue 2.3 KB

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