index.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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" @click="buy()">
  66. 预购
  67. </view>
  68. </view>
  69. </view>
  70. <u-popup v-model="show" mode="bottom" border-radius="40" height="868rpx" closeable = true close-icon="关闭">
  71. <view>出淤泥而不染,濯清涟而不妖</view>
  72. </u-popup>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. show: false,//支付数量
  80. show1: false,//支付密码
  81. }
  82. },
  83. //页面加载即刻发生
  84. onload() {
  85. this.loadDate();
  86. },
  87. methods: {
  88. nav(url) {
  89. uni.navigateTo({
  90. url: url
  91. })
  92. },
  93. async loadDate() {
  94. },
  95. buy() {
  96. this.show = true
  97. }
  98. }
  99. }
  100. </script>
  101. <style lang="scss">
  102. .center {
  103. height: auto;
  104. min-height: 100%;
  105. background-color: #FFFFFF;
  106. padding-bottom: var(--window-bottom);
  107. .box-title {
  108. position: relative;
  109. z-index: 1;
  110. width: 100%;
  111. height: 436rpx;
  112. image {
  113. width: 100%;
  114. height: 436rpx;
  115. }
  116. }
  117. .box-body {
  118. display: flex;
  119. flex-direction: column;
  120. justify-content: space-around;
  121. width: 100%;
  122. height: 100%;
  123. position: relative;
  124. z-index: 10;
  125. margin-top: -40rpx;
  126. border-top-left-radius: 40rpx;
  127. border-top-right-radius: 40rpx;
  128. background: #F8FBFE;
  129. .navBox {
  130. display: flex;
  131. justify-content: space-around;
  132. .navBox-left {
  133. // margin: 20rpx 5rpx 10rpx 10rpx;
  134. margin: 20rpx -24rpx 0 0;
  135. mar .navBox-item {
  136. image {
  137. width: 100%;
  138. height: 100%;
  139. }
  140. }
  141. }
  142. .navBox-right {
  143. margin: 20rpx 0 0 -24rpx;
  144. // margin: 20rpx 10rpx 5rpx 5rpx;
  145. .navBox-item {
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. image {}
  150. }
  151. }
  152. }
  153. .shopBox {
  154. padding: 0 30rpx;
  155. margin-top: 45rpx;
  156. width: 690rpx;
  157. // height: 770rpx;
  158. background: #FFFFFF;
  159. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  160. border-radius: 10px;
  161. margin: 0 auto;
  162. .shopBox-top {
  163. margin-top: 26rpx;
  164. display: flex;
  165. justify-content: space-between;
  166. align-items: center;
  167. image {
  168. height: 46rpx;
  169. width: 48rpx;
  170. }
  171. #one {
  172. font-size: 34rpx;
  173. font-family: PingFang SC;
  174. font-weight: bold;
  175. color: #0F253A;
  176. }
  177. #two {
  178. margin-left: 11rpx;
  179. font-size: 26rpx;
  180. font-family: PingFang SC;
  181. font-weight: 500;
  182. color: #6D7C88;
  183. }
  184. #three {
  185. font-size: 26rpx;
  186. font-family: PingFang SC;
  187. font-weight: 500;
  188. color: #FF4C4C;
  189. }
  190. }
  191. .shopBox-between {
  192. margin-top: 20rpx;
  193. display: flex;
  194. justify-content: space-between;
  195. align-items: center;
  196. .number {
  197. .number-left {
  198. font-size: 40rpx;
  199. font-family: PingFang SC;
  200. font-weight: bold;
  201. color: #44969D;
  202. }
  203. .number-right {
  204. font-size: 24rpx;
  205. font-family: PingFang SC;
  206. font-weight: bold;
  207. color: #44969D;
  208. }
  209. }
  210. .quotient {
  211. .quotient-children {
  212. font-size: 24rpx;
  213. font-family: PingFang SC;
  214. font-weight: 500;
  215. color: #6D7C88;
  216. }
  217. }
  218. }
  219. .forward {
  220. display: flex;
  221. justify-content: space-between;
  222. align-items: center;
  223. .forward-left {
  224. font-size: 26rpx;
  225. font-family: PingFang SC;
  226. font-weight: 500;
  227. color: #44969D;
  228. }
  229. .forward-right {
  230. font-size: 24rpx;
  231. font-family: PingFang SC;
  232. font-weight: 500;
  233. color: #6D7C88;
  234. }
  235. }
  236. .consume,.appointmentTime,.lotteryTime{
  237. margin: 12rpx 0;
  238. font-size: 26rpx;
  239. font-family: PingFang SC;
  240. font-weight: 400;
  241. color: #6D7C88;
  242. }
  243. .consume >text,.appointmentTime >text,.lotteryTime> text{
  244. font-size: 10rpx;
  245. font-family: PingFang SC;
  246. font-weight: 500;
  247. color: #000000;
  248. }
  249. .submit{
  250. width: 600rpx;
  251. height: 70rpx;
  252. background: linear-gradient(90deg, #60BAB0, #45969B);
  253. border-radius: 35rpx;
  254. font-size: 32rpx;
  255. font-family: PingFang SC;
  256. font-weight: 500;
  257. color: #FFFFFF;
  258. text-align: center;
  259. line-height: 70rpx;
  260. margin: 40rpx auto;
  261. }
  262. }
  263. }
  264. }
  265. </style>