From 3f1ab7f7f65fe665f6977f94899c763cc1ef1faf Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Tue, 02 Jun 2026 15:56:14 +0800
Subject: [PATCH] 1

---
 src/views/cryptos/PerpetualContract/orderDetail.vue |   39 +++++++++++++++++++++++++++------------
 1 files changed, 27 insertions(+), 12 deletions(-)

diff --git a/src/views/cryptos/PerpetualContract/orderDetail.vue b/src/views/cryptos/PerpetualContract/orderDetail.vue
index fd582c2..0d8fc45 100644
--- a/src/views/cryptos/PerpetualContract/orderDetail.vue
+++ b/src/views/cryptos/PerpetualContract/orderDetail.vue
@@ -21,16 +21,16 @@
         </div>
         <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('开仓金额') }}</div>
-          <div class="textColor">{{ detail.amount_open }}</div>
+          <div class="textColor">{{ detail.deposit_open }}</div>
         </div>
         <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('可平金额') }}</div>
-          <div class="textColor">{{ detail.amount }}</div>
-        </div>
-        <div class="flex justify-between cell-item">
-          <div class="text-grey">{{ $t('保证金') }}</div>
           <div class="textColor">{{ detail.deposit }}</div>
         </div>
+        <!-- <div class="flex justify-between cell-item">
+          <div class="text-grey">{{ $t('保证金') }}</div>
+          <div class="textColor">{{ detail.deposit }}</div>
+        </div> -->
         <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('手续费') }}</div>
           <div class="textColor">{{ detail.fee }}</div>
@@ -39,22 +39,24 @@
           <div class="text-grey">{{ $t('建仓成本') }}</div>
           <div class="textColor">{{ detail.trade_avg_price }}</div>
         </div>
-        <div class="flex justify-between cell-item">
+        <!-- <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('平仓价格') }}</div>
           <div class="textColor">{{ detail.close_avg_price }}</div>
-        </div>
+        </div> -->
         <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('订单号') }}</div>
           <div class="textColor">{{ detail.order_no }}</div>
         </div>
         <div class="flex justify-between cell-item">
           <div class="text-grey">{{ $t('开仓时间') }}</div>
-          <div class="textColor">{{ detail.create_time }}</div>
+          <div class="textColor">
+            {{ detail.create_time }}
+             
+          </div>
         </div>
         <div class="flex justify-between cell-item ">
           <div class="text-grey">{{ $t('平仓时间') }}</div>
-          <div class="textColor">{{ detail.close_time ? dayjs(detail.close_time * 1000).format('YYYY-MM-DD HH:mm:ss') :
-            '--' }}</div>
+          <div class="textColor">{{ formatNYTime(detail.close_time) }}</div>
         </div>
       </div>
     </div>
@@ -65,7 +67,6 @@
 import { _orderHoldDetail } from "@/service/trade.api";
 import assetsHead from "@/components/Transform/assets-head/index.vue";
 import { Popup } from "vant";
-import dayjs from 'dayjs'
 export default {
   name: "orderDetail",
   data() {
@@ -88,7 +89,21 @@
   },
 
   methods: {
-    dayjs,
+    formatNYTime(timestamp) {
+      if (!timestamp) return '--'
+      const parts = new Intl.DateTimeFormat('en-US', {
+        timeZone: 'America/New_York',
+        year: 'numeric',
+        month: '2-digit',
+        day: '2-digit',
+        hour: '2-digit',
+        minute: '2-digit',
+        second: '2-digit',
+        hour12: false
+      }).formatToParts(new Date(timestamp * 1000))
+      const get = (type) => parts.find(p => p.type === type)?.value
+      return `${get('year')}-${get('month')}-${get('day')} ${get('hour')}:${get('minute')}:${get('second')}`
+    },
     handleText(state) {
       let str = '';
       if (state == 'created') {

--
Gitblit v1.9.3