Subscription.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <template>
  2. <!-- 申购和赎回 -->
  3. <div class="subscription">
  4. <div class="apply-mask" @click="emits('subscriptionClose')"></div>
  5. <div class="apply-content">
  6. <div class="slide-line"></div>
  7. <div class="notifi-classifi">
  8. <div class="pf600 fs18 fc121212" @click="currentTab = 0">申购</div>
  9. <div class="sys-notifi pf600 fs14 fcA8A8A8" @click="currentTab = 1">赎回</div>
  10. </div>
  11. <div class="subscription-area" v-if="currentTab == 0">
  12. <div class="from">
  13. <div class="text pf600 fs14 fc333333">从</div>
  14. <div class="number-input">
  15. <div class="text pf400 fs14 fc999999">合约账户申购</div>
  16. <div class="all pf500 fs14 fc333333">
  17. USDT <span class="fcDF384C">全部</span>
  18. </div>
  19. </div>
  20. <div class="use-number pf400 fs12 fc333333">
  21. 可用余额&nbsp; 215.0508 USDT
  22. <img src="@/assets/icon/bitcoin/qianbao1.svg" alt="" class="qianbao" />
  23. </div>
  24. <div class="use-number pf400 fs12 fc333333">剩余可够&nbsp; 215.0508 HXUSDT</div>
  25. </div>
  26. <div class="to margin-top25">
  27. <div class="text pf600 fs14 fc333333">到</div>
  28. <div class="number-input">
  29. <div class="text pf400 fs14 fc999999">合约账户</div>
  30. <div class="all pf500 fs14 fc333333">HXUSDT</div>
  31. </div>
  32. </div>
  33. <div class="sure-btn pf600 fs14 fcFFFFFF">确认</div>
  34. </div>
  35. <div class="redemption-area" v-if="currentTab == 1">
  36. <div class="from">
  37. <div class="text pf600 fs14 fc333333">从</div>
  38. <div class="number-input">
  39. <div class="text pf400 fs14 fc999999">合约账户赎回</div>
  40. <div class="all pf500 fs14 fc333333">
  41. HXUSDT <span class="fcDF384C">全部</span>
  42. </div>
  43. </div>
  44. <div class="use-number pf400 fs12 fc333333">
  45. 最大可赎回数量&nbsp; 215.0508 HXUSDT
  46. </div>
  47. </div>
  48. <div class="to margin-top25">
  49. <div class="text pf600 fs14 fc333333">到</div>
  50. <div class="number-input">
  51. <div class="text pf400 fs14 fc999999">合约账户</div>
  52. <div class="all pf500 fs14 fc333333">USDT</div>
  53. </div>
  54. </div>
  55. <div class="time pf600 fs14 fc333333">
  56. <div>赎回周期</div>
  57. <div>0天</div>
  58. </div>
  59. <div class="initiate-redemption">
  60. <div class="redemption-left">
  61. <div class="circle"></div>
  62. <div class="line"></div>
  63. <div class="circle"></div>
  64. </div>
  65. <div class="redemption-right">
  66. <div class="faqi1 pf500 fs12 fc333333">
  67. <div class="text1">发起赎回</div>
  68. <div class="time2">2025-11-04, 16:30</div>
  69. </div>
  70. <div class="faqi1 margin-top12 pf500 fs12 fc333333">
  71. <div class="text1">USDT到账日期</div>
  72. <div class="time2">2025-11-04, 16:30</div>
  73. </div>
  74. </div>
  75. </div>
  76. <div
  77. class="sure-btn margin-top22 pf600 fs14 fcFFFFFF"
  78. @click="redemptionNotFlag = true">
  79. 确认
  80. </div>
  81. </div>
  82. </div>
  83. <RedemptionNot
  84. v-show="redemptionNotFlag"
  85. @redemptionNotClose="redemptionNotClose"></RedemptionNot>
  86. </div>
  87. </template>
  88. <script setup>
  89. import RedemptionNot from "../dialog/RedemptionNot.vue";
  90. import { ref } from "vue";
  91. const emits = defineEmits(["subscriptionClose"]);
  92. const currentTab = ref(0);
  93. const redemptionNotFlag = ref(false);
  94. const redemptionNotClose = () => {
  95. redemptionNotFlag.value = false;
  96. };
  97. </script>
  98. <style lang="less" scoped>
  99. .subscription {
  100. position: fixed;
  101. left: 0;
  102. top: 0;
  103. z-index: 1;
  104. display: flex;
  105. flex-direction: column;
  106. justify-content: flex-end;
  107. width: 100%;
  108. min-height: 100vh;
  109. .apply-mask {
  110. position: fixed;
  111. left: 0;
  112. top: 0;
  113. z-index: -1;
  114. width: 100%;
  115. min-height: 100vh;
  116. background: rgba(0, 0, 0, 0.5);
  117. }
  118. .apply-content {
  119. display: flex;
  120. flex-direction: column;
  121. justify-content: flex-start;
  122. align-items: center;
  123. width: 375px;
  124. height: 528px;
  125. background: #ffffff;
  126. border-radius: 24px 24px 0px 0px;
  127. .slide-line {
  128. margin-top: 12px;
  129. width: 32px;
  130. height: 4px;
  131. border-radius: 2px;
  132. opacity: 0.4;
  133. background: rgba(0, 0, 0, 0.5);
  134. }
  135. .notifi-classifi {
  136. display: flex;
  137. flex-direction: row;
  138. justify-content: flex-start;
  139. align-items: flex-end;
  140. margin-top: 14px;
  141. width: 345px;
  142. height: 24px;
  143. .sys-notifi {
  144. margin-left: 34px;
  145. }
  146. }
  147. .sure-btn {
  148. margin: 0 auto;
  149. margin-top: 69px;
  150. width: 311px;
  151. height: 40px;
  152. line-height: 40px;
  153. text-align: center;
  154. border-radius: 100px;
  155. background: #df384c;
  156. }
  157. .subscription-area {
  158. margin-top: 14px;
  159. width: 345px;
  160. .margin-top25 {
  161. margin-top: 25px;
  162. }
  163. .from,
  164. .to {
  165. width: 100%;
  166. .text {
  167. height: 24px;
  168. line-height: 24px;
  169. }
  170. .number-input {
  171. display: flex;
  172. flex-direction: row;
  173. justify-content: space-between;
  174. align-items: center;
  175. padding: 0 11px;
  176. margin-top: 5px;
  177. width: 345px;
  178. height: 45px;
  179. border-radius: 6px;
  180. background: #f5f5f5;
  181. box-sizing: border-box;
  182. }
  183. .use-number {
  184. display: flex;
  185. flex-direction: row;
  186. justify-content: flex-start;
  187. align-items: center;
  188. margin-top: 7px;
  189. width: 345px;
  190. height: 18px;
  191. .qianbao {
  192. margin-left: 8px;
  193. width: 14px;
  194. height: 14px;
  195. }
  196. }
  197. }
  198. }
  199. .redemption-area {
  200. margin-top: 14px;
  201. width: 345px;
  202. .margin-top25 {
  203. margin-top: 25px;
  204. }
  205. .from,
  206. .to {
  207. width: 100%;
  208. .text {
  209. height: 24px;
  210. line-height: 24px;
  211. }
  212. .number-input {
  213. display: flex;
  214. flex-direction: row;
  215. justify-content: space-between;
  216. align-items: center;
  217. padding: 0 11px;
  218. margin-top: 5px;
  219. width: 345px;
  220. height: 45px;
  221. border-radius: 6px;
  222. background: #f5f5f5;
  223. box-sizing: border-box;
  224. }
  225. .use-number {
  226. display: flex;
  227. flex-direction: row;
  228. justify-content: flex-start;
  229. align-items: center;
  230. margin-top: 7px;
  231. width: 345px;
  232. height: 18px;
  233. .qianbao {
  234. margin-left: 8px;
  235. width: 14px;
  236. height: 14px;
  237. }
  238. }
  239. }
  240. .time {
  241. display: flex;
  242. flex-direction: row;
  243. justify-content: space-between;
  244. align-items: center;
  245. margin-top: 9px;
  246. width: 345px;
  247. height: 24px;
  248. }
  249. .initiate-redemption {
  250. display: flex;
  251. flex-direction: row;
  252. justify-content: flex-start;
  253. align-items: center;
  254. margin-top: 16px;
  255. width: 345px;
  256. height: 112px;
  257. border-radius: 8px;
  258. border: 1px solid #ebebeb;
  259. .redemption-left {
  260. display: flex;
  261. flex-direction: column;
  262. justify-content: center;
  263. align-items: center;
  264. margin-left: 17px;
  265. width: 10px;
  266. height: 65px;
  267. .circle {
  268. width: 10px;
  269. height: 10px;
  270. border-radius: 50%;
  271. background: #df384c;
  272. }
  273. .line {
  274. width: 1px;
  275. height: 54px;
  276. background: repeating-linear-gradient(
  277. to bottom,
  278. #df384c,
  279. #df384c 1px,
  280. transparent 2px,
  281. transparent 3px
  282. );
  283. }
  284. }
  285. .redemption-right {
  286. margin-left: 13px;
  287. .margin-top12 {
  288. margin-top: 12px;
  289. }
  290. .faqi1 {
  291. .text1 {
  292. height: 24px;
  293. line-height: 24px;
  294. }
  295. .time2 {
  296. height: 18px;
  297. line-height: 18px;
  298. }
  299. }
  300. }
  301. }
  302. .sure-btn {
  303. margin: 0 auto;
  304. margin-top: 22px;
  305. width: 311px;
  306. height: 40px;
  307. line-height: 40px;
  308. text-align: center;
  309. border-radius: 100px;
  310. background: #df384c;
  311. }
  312. }
  313. }
  314. }
  315. </style>