index.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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">
  55. <view class="yugo">
  56. <view class="zhu">
  57. 注:每轮限购1组,每组限购1份
  58. <span class="zhu-right">
  59. 最多可预约:
  60. <span class="zhu-num">1份</span>
  61. </span>
  62. </view>
  63. <view class="info-main">
  64. <view class="info-box">
  65. <view class="info-left">预约份数:</view>
  66. <view class="info-right"><u-number-box v-model="value" @change="valChange"></u-number-box></view>
  67. </view>
  68. <view class="info-box">
  69. <view class="info-left">预约金额:</view>
  70. <view class="info-right">100USDT</view>
  71. </view>
  72. <view class="info-box">
  73. <view class="info-left">预约手续费:</view>
  74. <view class="info-right">1.0000LALA</view>
  75. </view>
  76. </view>
  77. <view class="btn" @click="submit()">确定</view>
  78. </view>
  79. </u-popup>
  80. <u-popup v-model="show1" mode="center" width="548rpx" border-radius="14">
  81. <view class="psw-wrapper">
  82. <view class="psw-title">请输入支付密码</view>
  83. <input type="password" v-model="password" class="psw-ipt"/>
  84. <view class="psw-btn">
  85. <text @click="cancel">取消</text>
  86. <text class="psw-qd" @click="pswQd">确定</text>
  87. </view>
  88. </view>
  89. </u-popup>
  90. </view>
  91. </template>
  92. <script>
  93. export default {
  94. data() {
  95. return {
  96. show: false, //支付数量弹窗控制
  97. show1: false, //支付密码弹窗控制
  98. value: 1,//购买数量
  99. password:'',
  100. };
  101. },
  102. //页面加载即刻发生
  103. onload() {
  104. this.loadDate();
  105. },
  106. methods: {
  107. nav(url) {
  108. uni.navigateTo({
  109. url: url
  110. });
  111. },
  112. async loadDate() {},
  113. buy() {
  114. this.show = true;
  115. },
  116. valChange(e) {
  117. console.log(this.value)
  118. },
  119. submit() {
  120. this.show = false;
  121. this.show1 = true;
  122. },
  123. cancel() {
  124. this.show1 = false
  125. },
  126. }
  127. };
  128. </script>
  129. <style lang="scss">
  130. .center {
  131. height: auto;
  132. min-height: 100%;
  133. background-color: #ffffff;
  134. padding-bottom: var(--window-bottom);
  135. .box-title {
  136. position: relative;
  137. z-index: 1;
  138. width: 100%;
  139. height: 436rpx;
  140. image {
  141. width: 100%;
  142. height: 436rpx;
  143. }
  144. }
  145. .box-body {
  146. display: flex;
  147. flex-direction: column;
  148. justify-content: space-around;
  149. width: 100%;
  150. height: 100%;
  151. position: relative;
  152. z-index: 10;
  153. margin-top: -40rpx;
  154. border-top-left-radius: 40rpx;
  155. border-top-right-radius: 40rpx;
  156. background: #f8fbfe;
  157. .navBox {
  158. display: flex;
  159. justify-content: space-around;
  160. .navBox-left {
  161. // margin: 20rpx 5rpx 10rpx 10rpx;
  162. margin: 20rpx -24rpx 0 0;
  163. mar .navBox-item {
  164. image {
  165. width: 100%;
  166. height: 100%;
  167. }
  168. }
  169. }
  170. .navBox-right {
  171. margin: 20rpx 0 0 -24rpx;
  172. // margin: 20rpx 10rpx 5rpx 5rpx;
  173. .navBox-item {
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. image {
  178. }
  179. }
  180. }
  181. }
  182. .shopBox {
  183. padding: 0 30rpx;
  184. margin-top: 45rpx;
  185. width: 690rpx;
  186. // height: 770rpx;
  187. background: #ffffff;
  188. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
  189. border-radius: 10px;
  190. margin: 0 auto;
  191. .shopBox-top {
  192. margin-top: 26rpx;
  193. display: flex;
  194. justify-content: space-between;
  195. align-items: center;
  196. image {
  197. height: 46rpx;
  198. width: 48rpx;
  199. }
  200. #one {
  201. font-size: 34rpx;
  202. font-family: PingFang SC;
  203. font-weight: bold;
  204. color: #0f253a;
  205. }
  206. #two {
  207. margin-left: 11rpx;
  208. font-size: 26rpx;
  209. font-family: PingFang SC;
  210. font-weight: 500;
  211. color: #6d7c88;
  212. }
  213. #three {
  214. font-size: 26rpx;
  215. font-family: PingFang SC;
  216. font-weight: 500;
  217. color: #ff4c4c;
  218. }
  219. }
  220. .shopBox-between {
  221. margin-top: 20rpx;
  222. display: flex;
  223. justify-content: space-between;
  224. align-items: center;
  225. .number {
  226. .number-left {
  227. font-size: 40rpx;
  228. font-family: PingFang SC;
  229. font-weight: bold;
  230. color: #44969d;
  231. }
  232. .number-right {
  233. font-size: 24rpx;
  234. font-family: PingFang SC;
  235. font-weight: bold;
  236. color: #44969d;
  237. }
  238. }
  239. .quotient {
  240. .quotient-children {
  241. font-size: 24rpx;
  242. font-family: PingFang SC;
  243. font-weight: 500;
  244. color: #6d7c88;
  245. }
  246. }
  247. }
  248. .forward {
  249. display: flex;
  250. justify-content: space-between;
  251. align-items: center;
  252. .forward-left {
  253. font-size: 26rpx;
  254. font-family: PingFang SC;
  255. font-weight: 500;
  256. color: #44969d;
  257. }
  258. .forward-right {
  259. font-size: 24rpx;
  260. font-family: PingFang SC;
  261. font-weight: 500;
  262. color: #6d7c88;
  263. }
  264. }
  265. .consume,
  266. .appointmentTime,
  267. .lotteryTime {
  268. margin: 12rpx 0;
  269. font-size: 26rpx;
  270. font-family: PingFang SC;
  271. font-weight: 400;
  272. color: #6d7c88;
  273. }
  274. .consume > text,
  275. .appointmentTime > text,
  276. .lotteryTime > text {
  277. font-size: 10rpx;
  278. font-family: PingFang SC;
  279. font-weight: 500;
  280. color: #000000;
  281. }
  282. .submit {
  283. width: 600rpx;
  284. height: 70rpx;
  285. background: linear-gradient(90deg, #60bab0, #45969b);
  286. border-radius: 35rpx;
  287. font-size: 32rpx;
  288. font-family: PingFang SC;
  289. font-weight: 500;
  290. color: #ffffff;
  291. text-align: center;
  292. line-height: 70rpx;
  293. margin: 40rpx auto;
  294. }
  295. }
  296. }
  297. }
  298. .yugo {
  299. padding-top: 80rpx;
  300. position: relative;
  301. height: 100%;
  302. .zhu {
  303. height: 112rpx;
  304. border-top: 1px #eeeeee solid;
  305. border-bottom: 1px #eeeeee solid;
  306. line-height: 112rpx;
  307. padding: 0 32rpx;
  308. font-size: 28rpx;
  309. font-family: PingFang SC;
  310. font-weight: 500;
  311. color: #6d7c88;
  312. .zhu-right {
  313. display: inline-block;
  314. padding-left: 60rpx;
  315. }
  316. .zhu-num {
  317. color: #000000;
  318. }
  319. }
  320. .info-main {
  321. padding: 0 32rpx;
  322. .info-box {
  323. padding-top: 22rpx;
  324. display: flex;
  325. justify-content: space-between;
  326. align-items: center;
  327. .info-left {
  328. font-size: 28rpx;
  329. font-family: PingFang SC;
  330. font-weight: 500;
  331. color: #6d7c88;
  332. }
  333. .info-right {
  334. font-size: 28rpx;
  335. font-family: PingFang SC;
  336. font-weight: 500;
  337. color: #0f253a;
  338. }
  339. }
  340. }
  341. .btn {
  342. position: absolute;
  343. bottom: 50rpx;
  344. left: 50%;
  345. margin-left: -342rpx;
  346. width: 684rpx;
  347. height: 86rpx;
  348. background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
  349. border-radius: 10rpx;
  350. text-align: center;
  351. line-height: 86rpx;
  352. font-size: 36rpx;
  353. font-family: PingFang SC;
  354. font-weight: 500;
  355. color: #ffffff;
  356. }
  357. }
  358. .psw-wrapper {
  359. width: 548rpx;
  360. height: 344rpx;
  361. background-color: #FFFFFF;
  362. .psw-title {
  363. width: 100%;
  364. font-size: 35rpx;
  365. padding: 43rpx 0 49rpx;
  366. text-align: center;
  367. font-weight: 800;
  368. }
  369. .psw-ipt {
  370. display: block;
  371. background-color: #dce3ed;
  372. height: 90rpx;
  373. width: 464rpx;
  374. padding-left: 30rpx;
  375. margin: 0 auto;
  376. font-size: 80rpx;
  377. }
  378. .psw-btn text{
  379. display: inline-block;
  380. text-align: center;
  381. width: 50%;
  382. padding-top: 29rpx;
  383. font-size: 35rpx;
  384. }
  385. .psw-qd {
  386. color:#45969B;
  387. }
  388. }
  389. </style>