Fast.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div class="buy-left">
  3. <div class="buy-btn pf500 fs14 fcFFFFFF">购买</div>
  4. <div class="sell-btn pf500 fs14 fc999999">出售</div>
  5. </div>
  6. <div class="user-staking margin-top43">
  7. <div class="user-staking-title pf500 fs14 fc2C3131">我要支付</div>
  8. <div class="user-staking-number">
  9. <input
  10. type="text"
  11. class="user-staking-number-input pf400 fs26 fc333333"
  12. placeholder="0" />
  13. <div class="user-staking-number-coin pf500 fs18 fc1F2937">
  14. <img src="@/assets/icon/coin/bnb.svg" class="coin" alt="" />BTC
  15. <img src="@/assets/icon/index/bottom-arrow.svg" class="bottom-arrow" alt="" />
  16. </div>
  17. </div>
  18. <div class="user-staking-line"></div>
  19. <div class="tips pf400 fs12 fc999999">10 - 5000.000</div>
  20. </div>
  21. <div class="user-staking margin-top15">
  22. <div class="user-staking-title pf500 fs14 fc2C3131">我将收到</div>
  23. <div class="user-staking-number">
  24. <input
  25. type="text"
  26. class="user-staking-number-input pf400 fs26 fc333333"
  27. placeholder="0" />
  28. <div class="user-staking-number-coin pf500 fs18 fc1F2937">
  29. <img src="@/assets/icon/coin/bnb.svg" class="coin" alt="" />BTC
  30. <img src="@/assets/icon/index/bottom-arrow.svg" class="bottom-arrow" alt="" />
  31. </div>
  32. </div>
  33. <div class="user-staking-line"></div>
  34. <div class="tips pf400 fs12 fc999999">1 CNY ≈ 0.1684258 BTC</div>
  35. </div>
  36. <div class="buy-sell-btn pf600 fs14 fcFFFFFF">购买</div>
  37. </template>
  38. <script setup></script>
  39. <style lang="less" scoped>
  40. .buy-left {
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: flex-start;
  44. margin-top: 13px;
  45. width: 345px;
  46. height: 35px;
  47. .buy-btn {
  48. width: 85px;
  49. height: 35px;
  50. line-height: 35px;
  51. text-align: center;
  52. border-radius: 6px;
  53. background: #45b26b;
  54. }
  55. .sell-btn {
  56. margin-left: 14px;
  57. width: 85px;
  58. height: 35px;
  59. line-height: 35px;
  60. text-align: center;
  61. border-radius: 6px;
  62. background: #f5f5f5;
  63. }
  64. }
  65. .margin-top15 {
  66. margin-top: 15px;
  67. }
  68. .margin-top43 {
  69. margin-top: 43px;
  70. }
  71. .user-staking {
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: flex-start;
  75. align-items: center;
  76. width: 345px;
  77. .user-staking-title {
  78. display: flex;
  79. flex-direction: row;
  80. justify-content: flex-start;
  81. align-items: center;
  82. width: 345px;
  83. height: 24px;
  84. img {
  85. margin-left: 6px;
  86. width: 13px;
  87. height: 13px;
  88. }
  89. }
  90. .user-staking-number {
  91. display: flex;
  92. flex-direction: row;
  93. justify-content: space-between;
  94. width: 311px;
  95. height: 40px;
  96. .user-staking-number-input {
  97. width: 191px;
  98. height: 100%;
  99. box-sizing: border-box;
  100. border-radius: 6px;
  101. border: none;
  102. outline: none;
  103. }
  104. .user-staking-number-coin {
  105. display: flex;
  106. flex-direction: row;
  107. justify-content: flex-start;
  108. align-items: center;
  109. width: 105px;
  110. height: 40px;
  111. border-radius: 30px;
  112. border: 1px solid #ebebeb;
  113. box-sizing: border-box;
  114. .coin {
  115. margin-left: 8px;
  116. margin-right: 6px;
  117. width: 24px;
  118. height: 24px;
  119. }
  120. .bottom-arrow {
  121. margin-left: 6px;
  122. width: 12px;
  123. height: 12px;
  124. }
  125. }
  126. }
  127. .user-staking-line {
  128. margin-top: 22px;
  129. width: 311px;
  130. height: 1px;
  131. background: #e2e8f0;
  132. }
  133. .tips {
  134. margin-top: 3px;
  135. width: 311px;
  136. height: 24px;
  137. line-height: 24px;
  138. }
  139. }
  140. .buy-sell-btn {
  141. margin-top: 50px;
  142. width: 311px;
  143. height: 40px;
  144. line-height: 40px;
  145. text-align: center;
  146. border-radius: 100px;
  147. background: #df384c;
  148. }
  149. </style>