index.vue 5.7 KB

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