index.vue 5.9 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('./node')">
  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: auto;
  96. min-height: 100%;
  97. background-color: #FFFFFF;
  98. padding-bottom: var(--window-bottom);
  99. .box-title {
  100. position: relative;
  101. z-index: 1;
  102. width: 100%;
  103. height: 436rpx;
  104. image {
  105. width: 100%;
  106. height: 436rpx;
  107. }
  108. }
  109. .box-body {
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-around;
  113. width: 100%;
  114. height: 100%;
  115. position: relative;
  116. z-index: 10;
  117. margin-top: -40rpx;
  118. border-top-left-radius: 40rpx;
  119. border-top-right-radius: 40rpx;
  120. background: #F8FBFE;
  121. .navBox {
  122. display: flex;
  123. justify-content: space-around;
  124. .navBox-left {
  125. // margin: 20rpx 5rpx 10rpx 10rpx;
  126. margin: 20rpx -24rpx 0 0;
  127. mar .navBox-item {
  128. image {
  129. width: 100%;
  130. height: 100%;
  131. }
  132. }
  133. }
  134. .navBox-right {
  135. margin: 20rpx 0 0 -24rpx;
  136. // margin: 20rpx 10rpx 5rpx 5rpx;
  137. .navBox-item {
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. image {}
  142. }
  143. }
  144. }
  145. .shopBox {
  146. padding: 0 30rpx;
  147. margin-top: 45rpx;
  148. width: 690rpx;
  149. // height: 770rpx;
  150. background: #FFFFFF;
  151. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  152. border-radius: 10px;
  153. margin: 0 auto;
  154. .shopBox-top {
  155. margin-top: 26rpx;
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. image {
  160. height: 46rpx;
  161. width: 48rpx;
  162. }
  163. #one {
  164. font-size: 34rpx;
  165. font-family: PingFang SC;
  166. font-weight: bold;
  167. color: #0F253A;
  168. }
  169. #two {
  170. margin-left: 11rpx;
  171. font-size: 26rpx;
  172. font-family: PingFang SC;
  173. font-weight: 500;
  174. color: #6D7C88;
  175. }
  176. #three {
  177. font-size: 26rpx;
  178. font-family: PingFang SC;
  179. font-weight: 500;
  180. color: #FF4C4C;
  181. }
  182. }
  183. .shopBox-between {
  184. margin-top: 20rpx;
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. .number {
  189. .number-left {
  190. font-size: 40rpx;
  191. font-family: PingFang SC;
  192. font-weight: bold;
  193. color: #44969D;
  194. }
  195. .number-right {
  196. font-size: 24rpx;
  197. font-family: PingFang SC;
  198. font-weight: bold;
  199. color: #44969D;
  200. }
  201. }
  202. .quotient {
  203. .quotient-children {
  204. font-size: 24rpx;
  205. font-family: PingFang SC;
  206. font-weight: 500;
  207. color: #6D7C88;
  208. }
  209. }
  210. }
  211. .forward {
  212. display: flex;
  213. justify-content: space-between;
  214. align-items: center;
  215. .forward-left {
  216. font-size: 26rpx;
  217. font-family: PingFang SC;
  218. font-weight: 500;
  219. color: #44969D;
  220. }
  221. .forward-right {
  222. font-size: 24rpx;
  223. font-family: PingFang SC;
  224. font-weight: 500;
  225. color: #6D7C88;
  226. }
  227. }
  228. .consume,.appointmentTime,.lotteryTime{
  229. margin: 12rpx 0;
  230. font-size: 26rpx;
  231. font-family: PingFang SC;
  232. font-weight: 400;
  233. color: #6D7C88;
  234. }
  235. .consume >text,.appointmentTime >text,.lotteryTime> text{
  236. font-size: 10rpx;
  237. font-family: PingFang SC;
  238. font-weight: 500;
  239. color: #000000;
  240. }
  241. .submit{
  242. width: 600rpx;
  243. height: 70rpx;
  244. background: linear-gradient(90deg, #60BAB0, #45969B);
  245. border-radius: 35rpx;
  246. font-size: 32rpx;
  247. font-family: PingFang SC;
  248. font-weight: 500;
  249. color: #FFFFFF;
  250. text-align: center;
  251. line-height: 70rpx;
  252. margin: 40rpx auto;
  253. }
  254. }
  255. }
  256. }
  257. </style>