game.vue 4.2 KB

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