game.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <view class="page">
  3. <view class="item item-white-bg position-relative">
  4. <view class="title flex">
  5. <image class="next" src="../../static/index/game/titlenext.png" mode=""></image>
  6. <view class="name">
  7. 盲盒详情
  8. </view>
  9. <image class="next tar" src="../../static/index/game/titlenext.png" mode=""></image>
  10. </view>
  11. <view class="tip-text">
  12. 限量发售 售完为止
  13. </view>
  14. <view class="type flex">
  15. <view class="typeitem">
  16. <text>发售价格:</text>
  17. <text class="text">21U</text>
  18. </view>
  19. <view class="typeitem">
  20. <text>发售总量:</text>
  21. <text class="text">1222个</text>
  22. </view>
  23. </view>
  24. <view class="type flex">
  25. <view class="typeitem">
  26. <text>探索周期:</text>
  27. <text class="text">45天</text>
  28. </view>
  29. <view class="typeitem">
  30. <text>每日产出:</text>
  31. <text class="text">5个矿石</text>
  32. </view>
  33. </view>
  34. <view class="buttom">
  35. 立即购买
  36. </view>
  37. <image class="tipImgRadius tiptop tipleft" src="../../static/index/game/tipimg.png" mode="scaleToFill">
  38. </image>
  39. <image class="tipImgRadius tiptop tipright" src="../../static/index/game/tipimg.png" mode="scaleToFill">
  40. </image>
  41. <image class="tipImgRadius tipbottom tipleft" src="../../static/index/game/tipimg.png" mode="scaleToFill">
  42. </image>
  43. <image class="tipImgRadius tipbottom tipright" src="../../static/index/game/tipimg.png" mode="scaleToFill">
  44. </image>
  45. </view>
  46. <navigator url="/pages/user/blindBox">
  47. <view class="item-white-bg flex mygame">
  48. <view class="left flex">
  49. <image class="tipimg" src="../../static/index/game/mhtip.png" mode="scaleToFill"></image>
  50. <view class="tiptext">
  51. 我的盲盒
  52. </view>
  53. </view>
  54. <view class="right flex">
  55. <view class="nextright text-linear-gradient">
  56. 查看详情
  57. </view>
  58. <image class="nextimg" src="../../static/index/game/opennext.png" mode="scaleToFill"></image>
  59. </view>
  60. </view>
  61. </navigator>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. };
  69. },
  70. onLoad(options) {
  71. },
  72. onShow() {},
  73. methods: {
  74. }
  75. };
  76. </script>
  77. <style lang="scss" scoped>
  78. .page {
  79. min-height: calc(100vh - var(--window-bottom));
  80. background-image: url("../../static/index/game/pageBg.png");
  81. background-repeat: no-repeat;
  82. background-size: 100% auto;
  83. padding-top: 1050rpx;
  84. line-height: 1;
  85. background-color: rgba(2, 8, 43, 1);
  86. padding-bottom: 30rpx;
  87. }
  88. .item-white-bg {
  89. border-radius: 30rpx;
  90. border: 2px solid #FFF;
  91. box-shadow: inset 0 5rpx 1px 0px rgba(100, 35, 192, .5);
  92. background-image: linear-gradient(#f6f0ff, #d2bfef);
  93. }
  94. .item {
  95. margin: 0 50rpx 30rpx 50rpx;
  96. padding: 40rpx;
  97. padding-bottom: 60rpx;
  98. .tipImgRadius {
  99. width: 20rpx;
  100. height: 20rpx;
  101. position: absolute;
  102. &.tiptop {
  103. top: 20rpx;
  104. }
  105. &.tipleft {
  106. left: 20rpx;
  107. }
  108. &.tipbottom {
  109. bottom: 20rpx;
  110. }
  111. &.tipright {
  112. right: 20rpx;
  113. }
  114. }
  115. .title {
  116. justify-content: center;
  117. color: #FFF;
  118. font-size: 40rpx;
  119. font-weight: bold;
  120. border-radius: 100rpx;
  121. padding: 20rpx 0;
  122. line-height: 1;
  123. background-image: linear-gradient(to right, rgba(138, 97, 194, 1), #2c324e);
  124. box-shadow: inset 0 5rpx 10rpx 1px rgba(255, 255, 255, .6);
  125. margin: 0 40rpx;
  126. margin-top: -80rpx;
  127. .name {
  128. padding: 0 30rpx;
  129. }
  130. .next {
  131. height: 26rpx;
  132. width: 60rpx;
  133. &.tar {
  134. transform: rotate(180deg);
  135. }
  136. }
  137. }
  138. .tip-text {
  139. text-align: center;
  140. font-weight: bold;
  141. font-size: 34rpx;
  142. color: #1C1C36;
  143. padding: 40rpx 0;
  144. }
  145. .type {
  146. padding: 0 20rpx;
  147. font-weight: 500;
  148. font-size: 28rpx;
  149. color: #1C1C36;
  150. padding-bottom: 30rpx;
  151. .typeitem {
  152. width: 50%;
  153. .text {
  154. color: #5E379E;
  155. }
  156. }
  157. }
  158. .buttom {
  159. margin-top: 20rpx;
  160. border-radius: 20rpx;
  161. text-align: center;
  162. padding: 20rpx;
  163. font-weight: 500;
  164. font-size: 31rpx;
  165. color: #FFFFFF;
  166. background-image: linear-gradient(#533492, #7b40bf);
  167. }
  168. }
  169. .mygame {
  170. margin: 0 50rpx;
  171. padding: 20rpx 40rpx;
  172. .left {
  173. .tipimg {
  174. width: 65rpx;
  175. height: 60rpx;
  176. }
  177. .tiptext {
  178. padding-left: 10rpx;
  179. font-weight: bold;
  180. font-size: 34rpx;
  181. color: #1C1C36;
  182. }
  183. }
  184. .right {
  185. .nextright {
  186. font-weight: 400;
  187. font-size: 25rpx;
  188. margin-right: 10rpx;
  189. }
  190. .nextimg {
  191. width: 10rpx;
  192. height: 19rpx;
  193. }
  194. }
  195. }
  196. </style>