| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <template>
- <div class="sell-and-buy">
- <div class="apply-mask" @click="emits('sellAndBuyClose')"></div>
- <div class="apply-content">
- <div class="slide-line"></div>
- <div class="apply-text pf600 fs18 fc121212">出售</div>
- <div class="goods-info">
- <div class="info-left">
- <div class="shangjia">
- <img src="@/assets/img/index/user/default-head.png" alt="" />
- <div class="left-name pf500 fs14 fc2C3131">商家昵称</div>
- <div class="vip-flag pf500 fs10 fcDF384C">V2</div>
- </div>
- <div class="chengjiao pf400 fs10 fc999999">成交量 12550 · 98.95% 成交率</div>
- </div>
- <div class="info-right">
- <div class="text pf400 fs10 fc999999">单价</div>
- <div class="price-number pf400 fs10 fc999999">
- ¥
- <span class="pf500 fs16 fc333333">6.58</span>
- /USDT
- </div>
- </div>
- </div>
- <div class="required-quantity pf500 fs14 fc999999">
- <div>需求数量</div>
- <div>150200.00 USDT</div>
- </div>
- <div class="required-quantity pf500 fs14 fc999999">
- <div>单笔限额</div>
- <div>100.00 - 252020.00 USDT</div>
- </div>
- <div class="number-input">
- <input
- type="text"
- class="input pf400 fs14 fc333333"
- placeholder="请输入卖出数量" />
- <div class="all pf400 fs14 fc333333">USDT <span class="fcDF384C">全部</span></div>
- </div>
- <div class="use-number pf400 fs12 fc333333">可卖 215.0508 USDT</div>
- <div class="account pf500 fs14 fc999999">
- <div>收款方式</div>
- <div class="account-right">
- <div class="color"></div>
- 银行卡
- </div>
- </div>
- <div class="account pf500 fs14 fc999999">
- <div>收款账号</div>
- <div class="account-right fcDF384C" @click="goAddBankAccount">
- 请选择
- <img src="@/assets/icon/asset/right-arrow-black.svg" alt="" />
- </div>
- </div>
- <div class="sure-btn pf600 fs14 fcFFFFFF" @click="goAddzfbAccount">确定出售</div>
- </div>
- </div>
- </template>
- <script setup>
- import { useRoute, useRouter } from "vue-router";
- const router = useRouter();
- const emits = defineEmits(["sellAndBuyClose"]);
- const goAddzfbAccount = () => {
- router.push("/addzfbAccount");
- };
- const goAddBankAccount = () => {
- router.push("/addBankAccount");
- };
- </script>
- <style lang="less" scoped>
- .sell-and-buy {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 1000;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- width: 100%;
- min-height: 100vh;
- .apply-mask {
- position: fixed;
- left: 0;
- top: 0;
- z-index: -1;
- width: 100%;
- min-height: 100vh;
- background: rgba(0, 0, 0, 0.5);
- }
- .apply-content {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- width: 375px;
- background: #ffffff;
- border-radius: 24px 24px 0px 0px;
- .slide-line {
- margin-top: 12px;
- width: 32px;
- height: 4px;
- border-radius: 2px;
- opacity: 0.4;
- background: rgba(0, 0, 0, 0.5);
- }
- .apply-text {
- margin-top: 20px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- .goods-info {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin-top: 11px;
- width: 345px;
- .info-left {
- .shangjia {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- height: 24px;
- img {
- width: 24px;
- height: 24px;
- }
- .left-name {
- margin-left: 4px;
- }
- .vip-flag {
- margin-left: 4px;
- width: 18px;
- height: 15px;
- line-height: 15px;
- text-align: center;
- border-radius: 3px;
- background: #df384c1a;
- }
- }
- .chengjiao {
- margin-top: 3px;
- }
- }
- .info-right {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: flex-end;
- .text {
- height: 24px;
- line-height: 24px;
- }
- .price-number {
- margin-top: -6px;
- }
- }
- }
- .required-quantity {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-top: 10px;
- width: 345px;
- height: 18px;
- }
- .number-input {
- position: relative;
- margin-top: 18px;
- width: 345px;
- height: 45px;
- .input {
- padding-left: 11px;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- border-radius: 6px;
- border: none;
- outline: none;
- background: #f5f5f5;
- }
- .all {
- position: absolute;
- top: 13px;
- right: 11px;
- }
- }
- .use-number {
- margin-top: 7px;
- width: 345px;
- height: 18px;
- line-height: 18px;
- }
- .account {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-top: 8px;
- width: 345px;
- height: 18px;
- .account-right {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- margin-top: 5px;
- height: 12px;
- .color {
- margin-right: 3px;
- width: 3px;
- height: 10px;
- border-radius: 2px;
- background: #df384c;
- }
- img {
- margin-left: 5px;
- }
- }
- }
- .sure-btn {
- margin-top: 47px;
- margin-bottom: 40px;
- width: 311px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- border-radius: 100px;
- background: #df384c;
- }
- }
- }
- </style>
|