index.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="center">
  3. <view class="box-title">
  4. <image src="../../static/img/index7.png" mode=""></image>
  5. </view>
  6. <view class="box-body">
  7. <view class="navBox">
  8. <view class="navBox-left">
  9. <view class="navBox-item" @click="nav()">
  10. <image src="../../static/img/index2.png" style="width: 385rpx; height: 398rpx;" mode=""></image>
  11. </view>
  12. </view>
  13. <view class="navBox-right">
  14. <view class="navBox-item" @click="nav()">
  15. <image src="../../static/img/index3.png" style="width: 385rpx; height: 216rpx; " mode="">
  16. </image>
  17. </view>
  18. <view class="navBox-item" @click="nav('/pages/index/appointment')">
  19. <image src="../../static/img/index6.png"
  20. style="width: 339rpx; height: 170rpx; margin-top: -12rpx;" mode=""></image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="shopBox">
  25. <view class="shopBox-top">
  26. <view class="left">
  27. <image src="../../static/img/index4.png" mode=""></image>
  28. </view>
  29. <view class="between" style="margin-left: -140rpx;">
  30. <text id="one">FilsCoin矿机拼购</text>
  31. <text id="two">36轮</text>
  32. </view>
  33. <text id="three">预约中</text>
  34. </view>
  35. <view class="shopBox-between">
  36. <view class="number">
  37. <text class="number-left">100</text>
  38. <text class="number-right">USDT/份</text>
  39. </view>
  40. <view class="quotient">
  41. <text class="quotient-children">每轮限购1组,每组限购一份</text>
  42. </view>
  43. </view>
  44. <image src="../../static/img/index5.png" style="width: 635rpx; height: 170rpx; margin: 40rpx 0;"
  45. mode=""></image>
  46. <view class="shopBox-bottom">
  47. <view class="forward">
  48. <view class="forward-left">
  49. 我得预约:&nbsp 0
  50. </view>
  51. <view class="forward-right">
  52. 每组分数:&nbsp 11份
  53. </view>
  54. </view>
  55. <view class="consume">
  56. GAS消耗:<text>0.50%LALA</text>
  57. </view>
  58. <view class="appointmentTime">
  59. 预约时间:<text>2021-07-21 08:00:00-2021-07-21 09:30:00</text>
  60. </view>
  61. <view class="lotteryTime">
  62. 开奖时间:<text>2021-07-21 08:00:00</text>
  63. </view>
  64. </view>
  65. <view class="submit">
  66. 好强儿
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. data() {
  75. return {
  76. }
  77. },
  78. //页面加载即刻发生
  79. onload() {
  80. this.loadDate();
  81. },
  82. methods: {
  83. nav(url) {
  84. uni.navigateTo({
  85. url: url
  86. })
  87. },
  88. async loadDate() {
  89. }
  90. }
  91. }
  92. </script>
  93. <style lang="scss">
  94. .center {
  95. height: 100%;
  96. background-color: #FFFFFF;
  97. .box-title {
  98. position: relative;
  99. z-index: 1;
  100. width: 100%;
  101. height: 436rpx;
  102. image {
  103. width: 100%;
  104. height: 436rpx;
  105. }
  106. }
  107. .box-body {
  108. display: flex;
  109. flex-direction: column;
  110. justify-content: space-around;
  111. width: 100%;
  112. height: 100%;
  113. position: relative;
  114. z-index: 10;
  115. margin-top: -40rpx;
  116. border-top-left-radius: 40rpx;
  117. border-top-right-radius: 40rpx;
  118. background: #F8FBFE;
  119. .navBox {
  120. display: flex;
  121. justify-content: space-around;
  122. .navBox-left {
  123. // margin: 20rpx 5rpx 10rpx 10rpx;
  124. margin: 20rpx -24rpx 0 0;
  125. mar .navBox-item {
  126. image {
  127. width: 100%;
  128. height: 100%;
  129. }
  130. }
  131. }
  132. .navBox-right {
  133. margin: 20rpx 0 0 -24rpx;
  134. // margin: 20rpx 10rpx 5rpx 5rpx;
  135. .navBox-item {
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. image {}
  140. }
  141. }
  142. }
  143. .shopBox {
  144. padding: 0 30rpx;
  145. margin-top: 45rpx;
  146. width: 690rpx;
  147. // height: 770rpx;
  148. background: #FFFFFF;
  149. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  150. border-radius: 10px;
  151. margin: 0 auto;
  152. .shopBox-top {
  153. margin-top: 26rpx;
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. image {
  158. height: 46rpx;
  159. width: 48rpx;
  160. }
  161. #one {
  162. font-size: 34rpx;
  163. font-family: PingFang SC;
  164. font-weight: bold;
  165. color: #0F253A;
  166. }
  167. #two {
  168. margin-left: 11rpx;
  169. font-size: 26rpx;
  170. font-family: PingFang SC;
  171. font-weight: 500;
  172. color: #6D7C88;
  173. }
  174. #three {
  175. font-size: 26rpx;
  176. font-family: PingFang SC;
  177. font-weight: 500;
  178. color: #FF4C4C;
  179. }
  180. }
  181. .shopBox-between {
  182. margin-top: 20rpx;
  183. display: flex;
  184. justify-content: space-between;
  185. align-items: center;
  186. .number {
  187. .number-left {
  188. font-size: 40rpx;
  189. font-family: PingFang SC;
  190. font-weight: bold;
  191. color: #44969D;
  192. }
  193. .number-right {
  194. font-size: 24rpx;
  195. font-family: PingFang SC;
  196. font-weight: bold;
  197. color: #44969D;
  198. }
  199. }
  200. .quotient {
  201. .quotient-children {
  202. font-size: 24rpx;
  203. font-family: PingFang SC;
  204. font-weight: 500;
  205. color: #6D7C88;
  206. }
  207. }
  208. }
  209. .forward {
  210. display: flex;
  211. justify-content: space-between;
  212. align-items: center;
  213. .forward-left {
  214. font-size: 26rpx;
  215. font-family: PingFang SC;
  216. font-weight: 500;
  217. color: #44969D;
  218. }
  219. .forward-right {
  220. font-size: 24rpx;
  221. font-family: PingFang SC;
  222. font-weight: 500;
  223. color: #6D7C88;
  224. }
  225. }
  226. .consume,.appointmentTime,.lotteryTime{
  227. margin: 12rpx 0;
  228. font-size: 26rpx;
  229. font-family: PingFang SC;
  230. font-weight: 400;
  231. color: #6D7C88;
  232. }
  233. .consume >text,.appointmentTime >text,.lotteryTime> text{
  234. font-size: 10rpx;
  235. font-family: PingFang SC;
  236. font-weight: 500;
  237. color: #000000;
  238. }
  239. .submit{
  240. width: 600rpx;
  241. height: 70rpx;
  242. background: linear-gradient(90deg, #60BAB0, #45969B);
  243. border-radius: 35rpx;
  244. font-size: 32rpx;
  245. font-family: PingFang SC;
  246. font-weight: 500;
  247. color: #FFFFFF;
  248. text-align: center;
  249. line-height: 70rpx;
  250. margin: 40rpx auto;
  251. }
  252. }
  253. }
  254. }
  255. </style>