| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <template>
- <!-- 历史委托 -->
- <div class="history-entrust">
- <div class="details-item" v-for="(item, index) in 2" :key="index">
- <div class="item-name">
- <div class="name-left">
- <img src="../../../assets/icon/coin/bnb.svg" alt="" class="left-coin" />
- <div class="name-area">
- <div class="pf500 fs16 fc121212">BTC/USDT 永续</div>
- <div class="name-flag">
- <div class="flag-buy pf500 fs10 fcFFFFFF">买入</div>
- <div class="flag-cang pf500 fs10 fcFFFFFF">逐仓 20X</div>
- <div class="flag-price pf500 fs10 fcFFFFFF">市价</div>
- </div>
- </div>
- </div>
- <div class="name-right pf500 fs12 fcFFFFFF">已失效</div>
- </div>
- <div class="item-line"></div>
- <div class="item-price">
- <div class="price-top">
- <div class="item-yingkui">
- <div class="pf500 fs12 fcA8A8A8">未实现盈亏(USDT)</div>
- <div class="pf500 fs12 fc45B26B">+0.2015 USDT</div>
- </div>
- <div class="item-yingkui">
- <div class="pf500 fs12 fcA8A8A8">下单时间</div>
- <div class="pf500 fs12 fc333333">2025-11-04, 16:30</div>
- </div>
- </div>
- <div class="price-bottom">
- <div class="price-item">
- <div class="pf500 fs12 fcA8A8A8">委托总量</div>
- <div class="pf500 fs12 fc333333">50.215 USDT</div>
- </div>
- <div class="price-item">
- <div class="pf500 fs12 fcA8A8A8">成交价格</div>
- <div class="pf500 fs12 fc333333">0.215 USDT</div>
- </div>
- <div class="price-item">
- <div class="pf500 fs12 fcA8A8A8">已成交量</div>
- <div class="pf500 fs12 fc333333">5.215 USDT</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script setup></script>
- <style lang="less" scoped>
- .history-entrust {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- width: 100%;
- .details-item {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-top: 10px;
- width: 345px;
- height: 155px;
- border: 1px solid #ebebeb;
- border-radius: 8px;
- .item-name {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-top: 10px;
- width: 320px;
- height: 40px;
- .name-left {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- height: 40px;
- .left-coin {
- width: 40px;
- height: 40px;
- }
- .name-area {
- display: flex;
- flex-direction: column;
- justify-content: space-evenly;
- margin-left: 8px;
- height: 40px;
- .name-flag {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- height: 15px;
- .flag-buy {
- width: 33px;
- height: 15px;
- line-height: 15px;
- text-align: center;
- background: #45b26b;
- border-radius: 3px;
- }
- .flag-cang {
- margin-left: 2px;
- width: 49px;
- height: 15px;
- line-height: 15px;
- text-align: center;
- background: #a8a8a8;
- border-radius: 3px;
- }
- .flag-price {
- margin-left: 2px;
- width: 33px;
- height: 15px;
- line-height: 15px;
- text-align: center;
- background: #a8a8a8;
- border-radius: 3px;
- }
- }
- }
- }
- .name-right {
- width: 56px;
- height: 24px;
- line-height: 24px;
- text-align: center;
- border-radius: 5px;
- background: #a8a8a8;
- }
- }
- .item-line {
- margin-top: 8px;
- width: 320px;
- height: 1.5px;
- background: #e9e9e9;
- }
- .item-price {
- margin-top: 6px;
- width: 320px;
- height: 85px;
- .price-top {
- .item-yingkui {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- width: 320px;
- height: 20px;
- }
- }
- .price-bottom {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin-top: 5px;
- width: 100%;
- height: 38px;
- .price-item {
- display: flex;
- flex-direction: column;
- justify-content: space-evenly;
- align-items: center;
- height: 38px;
- &:nth-child(1),
- &:nth-child(3) {
- width: 80px;
- }
- &:nth-child(2) {
- width: 160px;
- }
- }
- }
- }
- }
- }
- </style>
|