SellAndBuy.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <div class="sell-and-buy">
  3. <div class="apply-mask" @click="emits('sellAndBuyClose')"></div>
  4. <div class="apply-content">
  5. <div class="slide-line"></div>
  6. <div class="apply-text pf600 fs18 fc121212">出售</div>
  7. <div class="goods-info">
  8. <div class="info-left">
  9. <div class="shangjia">
  10. <img src="@/assets/img/index/user/default-head.png" alt="" />
  11. <div class="left-name pf500 fs14 fc2C3131">商家昵称</div>
  12. <div class="vip-flag pf500 fs10 fcDF384C">V2</div>
  13. </div>
  14. <div class="chengjiao pf400 fs10 fc999999">成交量 12550 · 98.95% 成交率</div>
  15. </div>
  16. <div class="info-right">
  17. <div class="text pf400 fs10 fc999999">单价</div>
  18. <div class="price-number pf400 fs10 fc999999">
  19. <span class="pf500 fs16 fc333333">6.58</span>
  20. /USDT
  21. </div>
  22. </div>
  23. </div>
  24. <div class="required-quantity pf500 fs14 fc999999">
  25. <div>需求数量</div>
  26. <div>150200.00 USDT</div>
  27. </div>
  28. <div class="required-quantity pf500 fs14 fc999999">
  29. <div>单笔限额</div>
  30. <div>100.00 - 252020.00 USDT</div>
  31. </div>
  32. <div class="number-input">
  33. <input
  34. type="text"
  35. class="input pf400 fs14 fc333333"
  36. placeholder="请输入卖出数量" />
  37. <div class="all pf400 fs14 fc333333">USDT <span class="fcDF384C">全部</span></div>
  38. </div>
  39. <div class="use-number pf400 fs12 fc333333">可卖&nbsp; 215.0508 USDT</div>
  40. <div class="account pf500 fs14 fc999999">
  41. <div>收款方式</div>
  42. <div class="account-right">
  43. <div class="color"></div>
  44. 银行卡
  45. </div>
  46. </div>
  47. <div class="account pf500 fs14 fc999999">
  48. <div>收款账号</div>
  49. <div class="account-right fcDF384C" @click="goAddBankAccount">
  50. 请选择
  51. <img src="@/assets/icon/asset/right-arrow-black.svg" alt="" />
  52. </div>
  53. </div>
  54. <div class="sure-btn pf600 fs14 fcFFFFFF" @click="goAddzfbAccount">确定出售</div>
  55. </div>
  56. </div>
  57. </template>
  58. <script setup>
  59. import { useRoute, useRouter } from "vue-router";
  60. const router = useRouter();
  61. const emits = defineEmits(["sellAndBuyClose"]);
  62. const goAddzfbAccount = () => {
  63. router.push("/addzfbAccount");
  64. };
  65. const goAddBankAccount = () => {
  66. router.push("/addBankAccount");
  67. };
  68. </script>
  69. <style lang="less" scoped>
  70. .sell-and-buy {
  71. position: fixed;
  72. left: 0;
  73. top: 0;
  74. z-index: 1000;
  75. display: flex;
  76. flex-direction: column;
  77. justify-content: flex-end;
  78. width: 100%;
  79. min-height: 100vh;
  80. .apply-mask {
  81. position: fixed;
  82. left: 0;
  83. top: 0;
  84. z-index: -1;
  85. width: 100%;
  86. min-height: 100vh;
  87. background: rgba(0, 0, 0, 0.5);
  88. }
  89. .apply-content {
  90. display: flex;
  91. flex-direction: column;
  92. justify-content: flex-start;
  93. align-items: center;
  94. width: 375px;
  95. background: #ffffff;
  96. border-radius: 24px 24px 0px 0px;
  97. .slide-line {
  98. margin-top: 12px;
  99. width: 32px;
  100. height: 4px;
  101. border-radius: 2px;
  102. opacity: 0.4;
  103. background: rgba(0, 0, 0, 0.5);
  104. }
  105. .apply-text {
  106. margin-top: 20px;
  107. height: 24px;
  108. line-height: 24px;
  109. letter-spacing: 0.2px;
  110. }
  111. .goods-info {
  112. display: flex;
  113. flex-direction: row;
  114. justify-content: space-between;
  115. margin-top: 11px;
  116. width: 345px;
  117. .info-left {
  118. .shangjia {
  119. display: flex;
  120. flex-direction: row;
  121. justify-content: flex-start;
  122. align-items: center;
  123. height: 24px;
  124. img {
  125. width: 24px;
  126. height: 24px;
  127. }
  128. .left-name {
  129. margin-left: 4px;
  130. }
  131. .vip-flag {
  132. margin-left: 4px;
  133. width: 18px;
  134. height: 15px;
  135. line-height: 15px;
  136. text-align: center;
  137. border-radius: 3px;
  138. background: #df384c1a;
  139. }
  140. }
  141. .chengjiao {
  142. margin-top: 3px;
  143. }
  144. }
  145. .info-right {
  146. display: flex;
  147. flex-direction: column;
  148. justify-content: flex-start;
  149. align-items: flex-end;
  150. .text {
  151. height: 24px;
  152. line-height: 24px;
  153. }
  154. .price-number {
  155. margin-top: -6px;
  156. }
  157. }
  158. }
  159. .required-quantity {
  160. display: flex;
  161. flex-direction: row;
  162. justify-content: space-between;
  163. align-items: center;
  164. margin-top: 10px;
  165. width: 345px;
  166. height: 18px;
  167. }
  168. .number-input {
  169. position: relative;
  170. margin-top: 18px;
  171. width: 345px;
  172. height: 45px;
  173. .input {
  174. padding-left: 11px;
  175. width: 100%;
  176. height: 100%;
  177. box-sizing: border-box;
  178. border-radius: 6px;
  179. border: none;
  180. outline: none;
  181. background: #f5f5f5;
  182. }
  183. .all {
  184. position: absolute;
  185. top: 13px;
  186. right: 11px;
  187. }
  188. }
  189. .use-number {
  190. margin-top: 7px;
  191. width: 345px;
  192. height: 18px;
  193. line-height: 18px;
  194. }
  195. .account {
  196. display: flex;
  197. flex-direction: row;
  198. justify-content: space-between;
  199. align-items: center;
  200. margin-top: 8px;
  201. width: 345px;
  202. height: 18px;
  203. .account-right {
  204. display: flex;
  205. flex-direction: row;
  206. justify-content: flex-start;
  207. align-items: center;
  208. margin-top: 5px;
  209. height: 12px;
  210. .color {
  211. margin-right: 3px;
  212. width: 3px;
  213. height: 10px;
  214. border-radius: 2px;
  215. background: #df384c;
  216. }
  217. img {
  218. margin-left: 5px;
  219. }
  220. }
  221. }
  222. .sure-btn {
  223. margin-top: 47px;
  224. margin-bottom: 40px;
  225. width: 311px;
  226. height: 40px;
  227. line-height: 40px;
  228. text-align: center;
  229. border-radius: 100px;
  230. background: #df384c;
  231. }
  232. }
  233. }
  234. </style>