1
李凌
5 days ago 349c48e168b9f2580334422228acde7d1b21bede
src/components/Transform/deliveryContract/hold.vue
@@ -10,7 +10,7 @@
              {{ item.direction == 'buy' ? $t('开多') : $t('开空') }}
            </div>
            <div class="ml-22 font-31 font-600">
              <span class="textColor">{{ item.name }} {{ $t('交割') }}</span>
              <span class="textColor">{{ item.name }} {{ $t('AI量化') }}</span>
              <!-- <span class="text-grey font-28 font-400 ml-17 mr-17">
                {{ $t('全仓') }} {{ item.lever_rate }}x
              </span> -->
@@ -42,12 +42,16 @@
          <div class="text-grey text-center">{{ $t('数量') }}</div>
          <div class="mt-20 text-center textColor">{{ item.volume }}</div>
        </div>
        <div class="flex-1 flex flex-col items-end font-28">
        <div class="flex-1 flex flex-col items-end font-28" v-if="item.state === 'created'">
          <div class="text-grey">{{ $t('盈亏') }}</div>
          <div class="mt-20" :class="item.profit / 1 > 0 ? 'text-green' : 'text-red'">
            {{ item.profit / 1 > 0 ? '+' + item.profit : item.profit }}
          </div>
        </div>
        <div class="flex-1 flex flex-col items-end font-28" v-else>
          <div class="text-grey">{{ $t('盈亏') }}</div>
          <div class="mt-20 textColor">--</div>
        </div>
      </div>
      <div class="flex pb-32 font-28">
        <div class="flex-1">