index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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. <<<<<<< HEAD
  55. <u-popup v-model="show" mode="bottom" border-radius="40" height="868rpx" :closeable="true">
  56. <view class="yugo">
  57. <view class="zhu">
  58. 注:每轮限购1组,每组限购1份
  59. <span class="zhu-right">
  60. 最多可预约:
  61. <span class="zhu-num">1份</span>
  62. </span>
  63. </view>
  64. <view class="info-main">
  65. <view class="info-box">
  66. <view class="info-left">预约份数:</view>
  67. <view class="info-right"><u-number-box v-model="value" @change="valChange"></u-number-box></view>
  68. </view>
  69. <view class="info-box">
  70. <view class="info-left">预约金额:</view>
  71. <view class="info-right">100USDT</view>
  72. </view>
  73. <view class="info-box">
  74. <view class="info-left">预约手续费:</view>
  75. <view class="info-right">1.0000LALA</view>
  76. </view>
  77. </view>
  78. <view class="btn" @click="submit()">确定</view>
  79. </view>
  80. </u-popup>
  81. <u-popup v-model="show1" mode="center" width="548rpx" border-radius="14">
  82. <view class="psw-wrapper">
  83. <view class="psw-title">请输入支付密码</view>
  84. <input type="password" v-model="password" class="psw-ipt"/>
  85. <view class="psw-btn">
  86. <text @click="cancel">取消</text>
  87. <text class="psw-qd" @click="pswQd">确定</text>
  88. </view>
  89. </view>
  90. </u-popup>
  91. =======
  92. <u-popup v-model="show" mode="bottom" border-radius="40" height="868rpx" :closeable="true" close-icon="关闭"><view>出淤泥而不染,濯清涟而不妖</view></u-popup>
  93. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. data() {
  99. return {
  100. <<<<<<< HEAD
  101. show: false, //支付数量弹窗控制
  102. show1: false, //支付密码弹窗控制
  103. value: 1,//购买数量
  104. password:'',
  105. =======
  106. show: false, //支付数量
  107. show1: false //支付密码
  108. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  109. };
  110. },
  111. //页面加载即刻发生
  112. onload() {
  113. this.loadDate();
  114. },
  115. methods: {
  116. nav(url) {
  117. uni.navigateTo({
  118. url: url
  119. });
  120. <<<<<<< HEAD
  121. },
  122. async loadDate() {},
  123. buy() {
  124. this.show = true;
  125. },
  126. valChange(e) {
  127. console.log(this.value)
  128. },
  129. submit() {
  130. this.show = false;
  131. this.show1 = true;
  132. },
  133. cancel() {
  134. this.show1 = false
  135. },
  136. =======
  137. },
  138. async loadDate() {},
  139. buy() {
  140. this.show = true;
  141. }
  142. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  143. }
  144. };
  145. </script>
  146. <style lang="scss">
  147. .center {
  148. height: auto;
  149. min-height: 100%;
  150. background-color: #ffffff;
  151. <<<<<<< HEAD
  152. padding-bottom: var(--window-bottom);
  153. .box-title {
  154. position: relative;
  155. z-index: 1;
  156. width: 100%;
  157. height: 436rpx;
  158. image {
  159. width: 100%;
  160. height: 436rpx;
  161. }
  162. }
  163. .box-body {
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: space-around;
  167. width: 100%;
  168. height: 100%;
  169. position: relative;
  170. z-index: 10;
  171. margin-top: -40rpx;
  172. border-top-left-radius: 40rpx;
  173. border-top-right-radius: 40rpx;
  174. background: #f8fbfe;
  175. .navBox {
  176. display: flex;
  177. justify-content: space-around;
  178. .navBox-left {
  179. // margin: 20rpx 5rpx 10rpx 10rpx;
  180. margin: 20rpx -24rpx 0 0;
  181. mar .navBox-item {
  182. image {
  183. width: 100%;
  184. height: 100%;
  185. }
  186. =======
  187. }
  188. .box-title {
  189. position: relative;
  190. z-index: 1;
  191. width: 100%;
  192. height: 436rpx;
  193. image {
  194. width: 100%;
  195. height: 436rpx;
  196. }
  197. }
  198. .box-body {
  199. display: flex;
  200. flex-direction: column;
  201. justify-content: space-around;
  202. width: 100%;
  203. height: 100%;
  204. position: relative;
  205. z-index: 10;
  206. margin-top: -40rpx;
  207. border-top-left-radius: 40rpx;
  208. border-top-right-radius: 40rpx;
  209. background: #f8fbfe;
  210. .navBox {
  211. display: flex;
  212. justify-content: space-around;
  213. .navBox-left {
  214. // margin: 20rpx 5rpx 10rpx 10rpx;
  215. margin: 20rpx -24rpx 0 0;
  216. mar .navBox-item {
  217. image {
  218. width: 100%;
  219. height: 100%;
  220. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  221. }
  222. }
  223. }
  224. <<<<<<< HEAD
  225. .navBox-right {
  226. margin: 20rpx 0 0 -24rpx;
  227. // margin: 20rpx 10rpx 5rpx 5rpx;
  228. .navBox-item {
  229. display: flex;
  230. flex-direction: column;
  231. align-items: center;
  232. image {
  233. }
  234. }
  235. }
  236. }
  237. .shopBox {
  238. padding: 0 30rpx;
  239. margin-top: 45rpx;
  240. width: 690rpx;
  241. // height: 770rpx;
  242. background: #ffffff;
  243. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  244. border-radius: 10px;
  245. margin: 0 auto;
  246. .shopBox-top {
  247. margin-top: 26rpx;
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: center;
  251. image {
  252. height: 46rpx;
  253. width: 48rpx;
  254. =======
  255. .navBox-right {
  256. margin: 20rpx 0 0 -24rpx;
  257. // margin: 20rpx 10rpx 5rpx 5rpx;
  258. .navBox-item {
  259. display: flex;
  260. flex-direction: column;
  261. align-items: center;
  262. image {
  263. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  264. }
  265. }
  266. }
  267. }
  268. <<<<<<< HEAD
  269. #one {
  270. font-size: 34rpx;
  271. font-family: PingFang SC;
  272. font-weight: bold;
  273. color: #0f253a;
  274. }
  275. #two {
  276. margin-left: 11rpx;
  277. font-size: 26rpx;
  278. font-family: PingFang SC;
  279. font-weight: 500;
  280. color: #6d7c88;
  281. }
  282. #three {
  283. font-size: 26rpx;
  284. font-family: PingFang SC;
  285. font-weight: 500;
  286. color: #ff4c4c;
  287. }
  288. }
  289. .shopBox-between {
  290. margin-top: 20rpx;
  291. display: flex;
  292. justify-content: space-between;
  293. align-items: center;
  294. .number {
  295. .number-left {
  296. font-size: 40rpx;
  297. font-family: PingFang SC;
  298. font-weight: bold;
  299. color: #44969d;
  300. }
  301. .number-right {
  302. font-size: 24rpx;
  303. font-family: PingFang SC;
  304. font-weight: bold;
  305. color: #44969d;
  306. }
  307. }
  308. .quotient {
  309. .quotient-children {
  310. font-size: 24rpx;
  311. font-family: PingFang SC;
  312. font-weight: 500;
  313. color: #6d7c88;
  314. }
  315. }
  316. }
  317. .forward {
  318. display: flex;
  319. justify-content: space-between;
  320. align-items: center;
  321. .forward-left {
  322. font-size: 26rpx;
  323. font-family: PingFang SC;
  324. font-weight: 500;
  325. color: #44969d;
  326. }
  327. .forward-right {
  328. =======
  329. .shopBox {
  330. padding: 0 30rpx;
  331. margin-top: 45rpx;
  332. width: 690rpx;
  333. // height: 770rpx;
  334. background: #ffffff;
  335. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  336. border-radius: 10px;
  337. margin: 0 auto;
  338. .shopBox-top {
  339. margin-top: 26rpx;
  340. display: flex;
  341. justify-content: space-between;
  342. align-items: center;
  343. image {
  344. height: 46rpx;
  345. width: 48rpx;
  346. }
  347. #one {
  348. font-size: 34rpx;
  349. font-family: PingFang SC;
  350. font-weight: bold;
  351. color: #0f253a;
  352. }
  353. #two {
  354. margin-left: 11rpx;
  355. font-size: 26rpx;
  356. font-family: PingFang SC;
  357. font-weight: 500;
  358. color: #6d7c88;
  359. }
  360. #three {
  361. font-size: 26rpx;
  362. font-family: PingFang SC;
  363. font-weight: 500;
  364. color: #ff4c4c;
  365. }
  366. }
  367. .shopBox-between {
  368. margin-top: 20rpx;
  369. display: flex;
  370. justify-content: space-between;
  371. align-items: center;
  372. .number {
  373. .number-left {
  374. font-size: 40rpx;
  375. font-family: PingFang SC;
  376. font-weight: bold;
  377. color: #44969d;
  378. }
  379. .number-right {
  380. font-size: 24rpx;
  381. font-family: PingFang SC;
  382. font-weight: bold;
  383. color: #44969d;
  384. }
  385. }
  386. .quotient {
  387. .quotient-children {
  388. >>>>>>> 55401fd4b35f86aff3b25e611b15e4543f0fa312
  389. font-size: 24rpx;
  390. font-family: PingFang SC;
  391. font-weight: 500;
  392. color: #6d7c88;
  393. }
  394. }
  395. .consume,
  396. .appointmentTime,
  397. .lotteryTime {
  398. margin: 12rpx 0;
  399. font-size: 26rpx;
  400. font-family: PingFang SC;
  401. font-weight: 400;
  402. color: #6d7c88;
  403. }
  404. .consume > text,
  405. .appointmentTime > text,
  406. .lotteryTime > text {
  407. font-size: 10rpx;
  408. font-family: PingFang SC;
  409. font-weight: 500;
  410. color: #000000;
  411. }
  412. .submit {
  413. width: 600rpx;
  414. height: 70rpx;
  415. background: linear-gradient(90deg, #60bab0, #45969b);
  416. border-radius: 35rpx;
  417. font-size: 32rpx;
  418. font-family: PingFang SC;
  419. font-weight: 500;
  420. color: #ffffff;
  421. text-align: center;
  422. line-height: 70rpx;
  423. margin: 40rpx auto;
  424. }
  425. }
  426. }
  427. }
  428. .yugo {
  429. padding-top: 80rpx;
  430. position: relative;
  431. height: 100%;
  432. .zhu {
  433. height: 112rpx;
  434. border-top: 1px #eeeeee solid;
  435. border-bottom: 1px #eeeeee solid;
  436. line-height: 112rpx;
  437. padding: 0 32rpx;
  438. font-size: 28rpx;
  439. font-family: PingFang SC;
  440. font-weight: 500;
  441. color: #6d7c88;
  442. .zhu-right {
  443. display: inline-block;
  444. padding-left: 60rpx;
  445. }
  446. .zhu-num {
  447. color: #000000;
  448. }
  449. }
  450. .info-main {
  451. padding: 0 32rpx;
  452. .info-box {
  453. padding-top: 22rpx;
  454. display: flex;
  455. justify-content: space-between;
  456. align-items: center;
  457. .info-left {
  458. font-size: 28rpx;
  459. font-family: PingFang SC;
  460. font-weight: 500;
  461. color: #6d7c88;
  462. }
  463. .info-right {
  464. font-size: 28rpx;
  465. font-family: PingFang SC;
  466. font-weight: 500;
  467. color: #0f253a;
  468. }
  469. }
  470. }
  471. .btn {
  472. position: absolute;
  473. bottom: 50rpx;
  474. left: 50%;
  475. margin-left: -342rpx;
  476. width: 684rpx;
  477. height: 86rpx;
  478. background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
  479. border-radius: 10rpx;
  480. text-align: center;
  481. line-height: 86rpx;
  482. font-size: 36rpx;
  483. font-family: PingFang SC;
  484. font-weight: 500;
  485. color: #ffffff;
  486. }
  487. }
  488. .psw-wrapper {
  489. width: 548rpx;
  490. height: 344rpx;
  491. background-color: #FFFFFF;
  492. .psw-title {
  493. width: 100%;
  494. font-size: 35rpx;
  495. padding: 43rpx 0 49rpx;
  496. text-align: center;
  497. font-weight: 800;
  498. }
  499. .psw-ipt {
  500. display: block;
  501. background-color: #dce3ed;
  502. height: 90rpx;
  503. width: 464rpx;
  504. padding-left: 30rpx;
  505. margin: 0 auto;
  506. font-size: 80rpx;
  507. }
  508. .psw-btn text{
  509. display: inline-block;
  510. text-align: center;
  511. width: 50%;
  512. padding-top: 29rpx;
  513. font-size: 35rpx;
  514. }
  515. .psw-qd {
  516. color:#45969B;
  517. }
  518. .forward {
  519. display: flex;
  520. justify-content: space-between;
  521. align-items: center;
  522. .forward-left {
  523. font-size: 26rpx;
  524. font-family: PingFang SC;
  525. font-weight: 500;
  526. color: #44969d;
  527. }
  528. .forward-right {
  529. font-size: 24rpx;
  530. font-family: PingFang SC;
  531. font-weight: 500;
  532. color: #6d7c88;
  533. }
  534. }
  535. .consume,
  536. .appointmentTime,
  537. .lotteryTime {
  538. margin: 12rpx 0;
  539. font-size: 26rpx;
  540. font-family: PingFang SC;
  541. font-weight: 400;
  542. color: #6d7c88;
  543. }
  544. .consume > text,
  545. .appointmentTime > text,
  546. .lotteryTime > text {
  547. font-size: 10rpx;
  548. font-family: PingFang SC;
  549. font-weight: 500;
  550. color: #000000;
  551. }
  552. .submit {
  553. width: 600rpx;
  554. height: 70rpx;
  555. background: linear-gradient(90deg, #60bab0, #45969b);
  556. border-radius: 35rpx;
  557. font-size: 32rpx;
  558. font-family: PingFang SC;
  559. font-weight: 500;
  560. color: #ffffff;
  561. text-align: center;
  562. line-height: 70rpx;
  563. margin: 40rpx auto;
  564. }
  565. }
  566. }
  567. </style>