C2C.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <template>
  2. <img src="@/assets/icon/asset/c2c.svg" class="c2c" alt="" />
  3. <div class="buy-sell">
  4. <div class="buy-left">
  5. <div class="buy-btn pf500 fs14 fcFFFFFF">购买</div>
  6. <div class="sell-btn pf500 fs14 fc999999">出售</div>
  7. </div>
  8. <div class="buy-right">
  9. <div class="text pf400 fs14 fc333333">CNY</div>
  10. <img src="@/assets/icon/asset/bottom-arrow-black.svg" alt="" />
  11. </div>
  12. </div>
  13. <div class="filter-area">
  14. <div class="filter-left">
  15. <div class="left-coin">
  16. <img src="@/assets/icon/coin/bnb.svg" class="coin" alt="" />
  17. <div class="text pf400 fs14 fc333333">BTC</div>
  18. <img src="@/assets/icon/asset/bottom-arrow-black.svg" class="bottom-arrow" />
  19. </div>
  20. <div class="left-money" @click="amountFlag = true">
  21. <div class="text pf400 fs14 fc333333">金额</div>
  22. <img src="@/assets/icon/asset/bottom-arrow-black.svg" class="bottom-arrow" />
  23. </div>
  24. <div class="left-pay-way" @click="paymentWayFlag = true">
  25. <div class="text pf400 fs14 fc333333">支付方式</div>
  26. <img src="@/assets/icon/asset/bottom-arrow-black.svg" class="bottom-arrow" />
  27. </div>
  28. </div>
  29. <div class="filter-right" @click="filterFlag = true">
  30. <img src="@/assets/icon/asset/filter.svg" alt="" />
  31. </div>
  32. </div>
  33. <div class="goods-area">
  34. <div class="goods-item" v-for="(item, index) in 2" :key="index">
  35. <div class="item-merchant">
  36. <div class="merchant-left" @click="goMerchantDetails">
  37. <img src="@/assets/img/index/user/default-head.png" alt="" />
  38. <div class="left-name pf500 fs14 fc2C3131">商家昵称</div>
  39. <div class="vip-flag pf500 fs10 fcDF384C">V2</div>
  40. </div>
  41. <div class="merchant-right pf400 fs10 fc999999">
  42. 入驻时间: 2025-11-07 12:25:10
  43. </div>
  44. </div>
  45. <div class="item-chengjiao-number pf400 fs10 fc999999">
  46. 成交量 12550 · 98.95% 成交率
  47. </div>
  48. <div class="item-price">
  49. <div class="price-area">
  50. <div class="text pf400 fs10 fc999999">单价</div>
  51. <div class="price-number pf400 fs10 fc999999">
  52. <span class="pf500 fs16 fc333333">6.58</span>
  53. /USDT
  54. </div>
  55. <div class="number pf400 fs10 fc999999">
  56. 数量 <span class="pf400 fs12 fc666666">1000.05 USDT</span>
  57. </div>
  58. <div class="number pf400 fs10 fc999999">
  59. 限额 <span class="pf400 fs12 fc666666">20000 - 1000.05 CNY</span>
  60. </div>
  61. </div>
  62. <div class="price-func">
  63. <div class="func-time pf400 fs10 fc999999">
  64. <img src="@/assets/icon/asset/clock-gray.svg" alt="" />0m 45s
  65. </div>
  66. <div class="func-pay-way pf400 fs10 fc999999">
  67. <div class="color"></div>
  68. 银行卡
  69. </div>
  70. <div class="func-main">
  71. <div class="func-chat pf500 fs12 fcDF384C">聊天</div>
  72. <div class="func-buy pf500 fs12 fcFFFFFF" @click="sellAndBuyFlag = true">
  73. 购买
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <PaymentWay v-show="paymentWayFlag" @paymentWayClose="paymentWayClose"></PaymentWay>
  80. <Amount v-show="amountFlag" @amountClose="amountClose"></Amount>
  81. <Filter v-show="filterFlag" @filterClose="filterClose"></Filter>
  82. <SellAndBuy v-show="sellAndBuyFlag" @sellAndBuyClose="sellAndBuyClose"></SellAndBuy>
  83. <!-- 暂无收款方式,还没点击的地方 -->
  84. <NotPaymentWay
  85. v-show="notPaymnetWayFlag"
  86. @notPaymentWayClose="notPaymentWayClose"></NotPaymentWay>
  87. <!-- 添加收款方式,还没点击的地方 -->
  88. <PaymentAccount
  89. v-show="paymentAccountFlag"
  90. @paymentAccountClose="paymentAccountClose"></PaymentAccount>
  91. <!-- 取消订单,还没点击的地方 -->
  92. <CancelOrder
  93. v-show="cancelOrderFlag"
  94. @cancelOrderClose="cancelOrderClose"></CancelOrder>
  95. <!-- 是否完成付款,还没点击的地方 -->
  96. <CompletePayment
  97. v-show="completePaymentFlag"
  98. @completePaymentClose="completePaymentClose"></CompletePayment>
  99. </div>
  100. </template>
  101. <script setup>
  102. import { ref } from "vue";
  103. import { useRoute, useRouter } from "vue-router";
  104. import PaymentWay from "../../dialog/NotPaymentWay.vue";
  105. import Amount from "../../dialog/Amount.vue";
  106. import Filter from "../../dialog/Filter.vue";
  107. import SellAndBuy from "../../dialog/SellAndBuy.vue";
  108. import NotPaymentWay from "../../dialog/NotPaymentWay.vue";
  109. import PaymentAccount from "../../dialog/PaymentAccount.vue";
  110. import CancelOrder from "../../dialog/CancelOrder.vue";
  111. import CompletePayment from "../../dialog/CompletePayment.vue";
  112. const router = useRouter();
  113. const goMerchantDetails = () => {
  114. router.push("/OTCMerchantDetails");
  115. };
  116. const completePaymentFlag = ref(false);
  117. const completePaymentClose = () => {
  118. completePaymentFlag.value = false;
  119. };
  120. const cancelOrderFlag = ref(false);
  121. const cancelOrderClose = () => {
  122. cancelOrderFlag.value = false;
  123. };
  124. const paymentAccountFlag = ref(false);
  125. const paymentAccountClose = () => {
  126. paymentAccountFlag.value = false;
  127. };
  128. const notPaymnetWayFlag = ref(false);
  129. const notPaymentWayClose = () => {
  130. notPaymnetWayFlag.value = false;
  131. };
  132. const sellAndBuyFlag = ref(false);
  133. const sellAndBuyClose = () => {
  134. sellAndBuyFlag.value = false;
  135. };
  136. const filterFlag = ref(false);
  137. const filterClose = () => {
  138. filterFlag.value = false;
  139. };
  140. const amountFlag = ref(false);
  141. const amountClose = () => {
  142. amountFlag.value = false;
  143. };
  144. const paymentWayFlag = ref(false);
  145. const paymentWayClose = () => {
  146. paymentWayFlag.value = false;
  147. };
  148. </script>
  149. <style lang="less" scoped>
  150. .c2c {
  151. margin-top: 13px;
  152. width: 345px;
  153. height: 100px;
  154. }
  155. .buy-sell {
  156. display: flex;
  157. flex-direction: row;
  158. justify-content: space-between;
  159. margin-top: 13px;
  160. width: 345px;
  161. height: 35px;
  162. .buy-left {
  163. display: flex;
  164. flex-direction: row;
  165. justify-content: flex-start;
  166. height: 100%;
  167. .buy-btn {
  168. width: 85px;
  169. height: 35px;
  170. line-height: 35px;
  171. text-align: center;
  172. border-radius: 6px;
  173. background: #45b26b;
  174. }
  175. .sell-btn {
  176. margin-left: 14px;
  177. width: 85px;
  178. height: 35px;
  179. line-height: 35px;
  180. text-align: center;
  181. border-radius: 6px;
  182. background: #f5f5f5;
  183. }
  184. }
  185. .buy-right {
  186. display: flex;
  187. flex-direction: row;
  188. justify-content: flex-start;
  189. align-items: center;
  190. width: 75px;
  191. height: 35px;
  192. line-height: 35px;
  193. text-align: center;
  194. border-radius: 6px;
  195. background: #f5f5f5;
  196. .text {
  197. margin-left: 15px;
  198. }
  199. img {
  200. margin-left: 12px;
  201. }
  202. }
  203. }
  204. .filter-area {
  205. display: flex;
  206. flex-direction: row;
  207. justify-content: space-between;
  208. padding-left: 6px;
  209. margin-top: 13px;
  210. width: 345px;
  211. height: 18px;
  212. box-sizing: border-box;
  213. .filter-left {
  214. display: flex;
  215. flex-direction: row;
  216. justify-content: flex-start;
  217. align-items: center;
  218. height: 18px;
  219. .left-coin {
  220. display: flex;
  221. flex-direction: row;
  222. justify-content: flex-start;
  223. align-items: center;
  224. height: 18px;
  225. .coin {
  226. width: 18px;
  227. height: 18px;
  228. }
  229. .text {
  230. margin-left: 3px;
  231. }
  232. .bottom-arrow {
  233. margin-left: 5px;
  234. }
  235. }
  236. .left-money {
  237. display: flex;
  238. flex-direction: row;
  239. justify-content: flex-start;
  240. align-items: center;
  241. margin-left: 34px;
  242. height: 18px;
  243. .text {
  244. margin-left: 3px;
  245. }
  246. .bottom-arrow {
  247. margin-left: 5px;
  248. }
  249. }
  250. .left-pay-way {
  251. display: flex;
  252. flex-direction: row;
  253. justify-content: flex-start;
  254. align-items: center;
  255. margin-left: 34px;
  256. height: 18px;
  257. .text {
  258. margin-left: 3px;
  259. }
  260. .bottom-arrow {
  261. margin-left: 5px;
  262. }
  263. }
  264. }
  265. .filter-right {
  266. display: flex;
  267. flex-direction: row;
  268. justify-content: center;
  269. align-items: center;
  270. height: 18px;
  271. }
  272. }
  273. .goods-area {
  274. width: 345px;
  275. .goods-item {
  276. padding: 0 10px;
  277. margin-top: 10px;
  278. width: 345px;
  279. height: 150px;
  280. border-radius: 8px;
  281. border: 1px solid #ebebeb;
  282. box-sizing: border-box;
  283. .item-merchant {
  284. display: flex;
  285. flex-direction: row;
  286. justify-content: space-between;
  287. align-items: center;
  288. margin-top: 15px;
  289. width: 100%;
  290. height: 24px;
  291. .merchant-left {
  292. display: flex;
  293. flex-direction: row;
  294. justify-content: flex-start;
  295. align-items: center;
  296. height: 24px;
  297. img {
  298. width: 24px;
  299. height: 24px;
  300. }
  301. .left-name {
  302. margin-left: 4px;
  303. }
  304. .vip-flag {
  305. margin-left: 4px;
  306. width: 18px;
  307. height: 15px;
  308. line-height: 15px;
  309. text-align: center;
  310. border-radius: 3px;
  311. background: #df384c1a;
  312. }
  313. }
  314. }
  315. .item-chengjiao-number {
  316. margin-top: 6px;
  317. }
  318. .item-price {
  319. display: flex;
  320. flex-direction: row;
  321. justify-content: space-between;
  322. margin-top: 10px;
  323. .price-area {
  324. .price-number {
  325. margin-top: 3px;
  326. }
  327. .number {
  328. margin-top: 5px;
  329. height: 13px;
  330. line-height: 13px;
  331. span {
  332. margin-left: 1px;
  333. }
  334. }
  335. }
  336. .price-func {
  337. display: flex;
  338. flex-direction: column;
  339. justify-content: flex-start;
  340. align-items: flex-end;
  341. .func-time {
  342. display: flex;
  343. flex-direction: row;
  344. justify-content: flex-start;
  345. align-items: center;
  346. height: 12px;
  347. img {
  348. margin-right: 3px;
  349. width: 9px;
  350. height: 9px;
  351. }
  352. }
  353. .func-pay-way {
  354. display: flex;
  355. flex-direction: row;
  356. justify-content: flex-start;
  357. align-items: center;
  358. margin-top: 5px;
  359. height: 12px;
  360. .color {
  361. margin-right: 3px;
  362. width: 3px;
  363. height: 10px;
  364. border-radius: 2px;
  365. background: #df384c;
  366. }
  367. }
  368. .func-main {
  369. display: flex;
  370. flex-direction: row;
  371. justify-content: flex-start;
  372. margin-top: 15px;
  373. height: 24px;
  374. .func-chat {
  375. width: 58px;
  376. height: 24px;
  377. line-height: 24px;
  378. text-align: center;
  379. border-radius: 5px;
  380. background: #df384c1a;
  381. }
  382. .func-buy {
  383. margin-left: 8px;
  384. width: 58px;
  385. height: 24px;
  386. line-height: 24px;
  387. text-align: center;
  388. border-radius: 5px;
  389. background: #45b26b;
  390. }
  391. }
  392. }
  393. }
  394. }
  395. }
  396. </style>