1
李凌
2025-10-12 1136b8d80116008cc1f8da51f0f53dc746d52f86
src/components/Transform/perpetual-position-list/index.vue
@@ -29,7 +29,7 @@
          </div>
        </div>
      </div>
      <div class="flex justify-between font-28">
      <!-- <div class="flex justify-between font-28">
        <div class="flex-1">
          <div class="text-grey">{{ routeType == 'cryptos' ? $t('未实现盈亏(USDT)') : $t('未实现盈亏(USD)') }}</div>
          <div class="mt-20" :class="item.profit > 0 ? 'text-green' : 'text-red'">
@@ -46,23 +46,28 @@
          <button class="font-30 detail-btn border-light-blue greyBg colorMain w-125 h-60" @click="goDetail(item)">{{
            $t('详情') }}</button>
        </div>
      </div>
      </div> -->
      <div class="flex pt-44 pb-32 font-28">
        <div class="flex-1">
          <div class="text-grey">{{ $t('持仓数量') }}</div>
          <div class="mt-20 textColor">{{ reserve(item.volume / (item.lever_rate ? item.lever_rate : 1),4) }}*{{
          <div class="mt-20 textColor">{{ reserve(item.volume / (item.lever_rate ? item.lever_rate : 1), 4) }}*{{
            item.lever_rate ? item.lever_rate : 1 }}x</div>
        </div>
        <div class="flex-1 text-center  font-28">
          <div class="text-grey">{{ $t('交易金额') }} ( {{ routeType == 'cryptos' ? 'USDT' : 'USD' }})</div>
          <div class="mt-20 textColor">{{ item.deposit }}</div>
        </div>
        <div class="flex-1 flex flex-col items-end  font-28">
        <!-- <div class="flex-1 flex flex-col items-end  font-28">
          <div class="text-grey">{{ $t('开仓价格') }}</div>
          <div class="mt-20 textColor">{{ item.trade_avg_price }}</div>
        </div> -->
        <div class="flex-1 flex flex-col items-end justify-end">
          <button class="greyBg textColor border-none pl-34 pr-34 pt-10 pb-10 rounded-ban"
            @click="onSell(item.order_no)">
            {{ $t('平仓') }}</button>
        </div>
      </div>
      <div class="flex pb-32  font-28">
      <!-- <div class="flex pb-32  font-28">
        <div class="flex-1">
          <div class="text-grey">{{ $t('标记价格') }}</div>
          <div class="mt-20 textColor">{{ item.mark_price }}</div>
@@ -76,7 +81,7 @@
            @click="onSell(item.order_no)">
            {{ $t('平仓') }}</button>
        </div>
      </div>
      </div> -->
      <!-- <div class="flex  pb-32  font-28">
        <div class="flex-1 flex flex-col items-center justify-end">
          <button class="font-30 detail-btn border-light-blue greyBg colorMain w-125 h-60" @click="goDetail(item)">{{