| | |
| | | </div> |
| | | <div class="flex justify-between pb-44"> |
| | | <div class="text-grey">{{ $t('委托时间') }}</div> |
| | | <div class="textColor">{{ detail.create_time }}</div> |
| | | <div class="textColor">{{ convertCSTtoGMT(detail.create_time) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { _orderDetail } from "@/API/trade.api"; |
| | | import { |
| | | _orderDetail |
| | | } from "@/API/trade.api"; |
| | | import assetsHead from "@/components/assets-head"; |
| | | import PerpetualEntrustList from "@/components/perpetual-entrust-list"; |
| | | import PerpetualHistoryPosition from "@/components/perpetual-history-position"; |
| | |
| | | detail: {} |
| | | } |
| | | }, |
| | | components: { assetsHead }, |
| | | components: { |
| | | assetsHead |
| | | }, |
| | | methods: { |
| | | convertCSTtoGMT(dateString) { |
| | | const inputDate = new Date(dateString); // 输入的时间 |
| | | const options = { |
| | | timeZone: 'Europe/London', |
| | | year: 'numeric', |
| | | month: '2-digit', |
| | | day: '2-digit', |
| | | hour: '2-digit', |
| | | minute: '2-digit', |
| | | second: '2-digit', |
| | | hour12: false |
| | | }; |
| | | const londonTime = new Intl.DateTimeFormat('en-GB', options).format(inputDate); |
| | | return londonTime; |
| | | }, |
| | | handleWord(direction, offset, price_type) { |
| | | let a = '' |
| | | let b = '' |
| | |
| | | } |
| | | }, |
| | | beforeRouteEnter(to, from, next) { |
| | | const { query: { order_no } } = to |
| | | const { |
| | | query: { |
| | | order_no |
| | | } |
| | | } = to |
| | | next(vm => { |
| | | vm.fetchDetail(order_no) |
| | | }) |