From 6b754cd28c45741a24e7f7193b894e3e386e4af8 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Sat, 20 Sep 2025 18:25:51 +0800
Subject: [PATCH] 1
---
src/components/Transform/history-item/index.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/components/Transform/history-item/index.vue b/src/components/Transform/history-item/index.vue
index fa55dde..18a67ef 100644
--- a/src/components/Transform/history-item/index.vue
+++ b/src/components/Transform/history-item/index.vue
@@ -6,8 +6,8 @@
handleWordType(entrust.order_price_type) }}</span>
<span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'"> / </span>
<span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'">{{ handleWordOffset(entrust.offset)
- }}</span>
- <span>{{ entrust.name }}</span>
+ }}</span>
+ <span>{{ strToArr(entrust.name, '/')[0] }}</span>
</div>
<div class="text" @click.stop="goDetail(entrust.order_no)">
<span v-if="state == 'submitted'" @click.stop="cancelSingle(entrust.order_no)">{{ $t('撤单') }}</span>
@@ -19,7 +19,8 @@
<div class="flex info">
<div class="data-item ">
<div class="title">{{ $t('时间') }}</div>
- <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length) :
+ <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length)
+ :
'--' }}</div>
</div>
<div class="data-item right-text">
@@ -44,7 +45,7 @@
<div class="text">{{ entrust.price }}</div>
</div>
<div class="data-item right-text">
- <div class="title">{{ $t('成交量') }}({{ entrust.symbol }})</div>
+ <div class="title">{{ $t('成交量') }}({{ strToArr(entrust.name, '/')[0] }})</div>
<div class="text">{{ (entrust.volume / entrust.price).toFixed(6) }}</div>
</div>
</div>
@@ -53,6 +54,7 @@
<script>
import { Circle } from 'vant'
+import { strToArr } from '@/utils/utis.js'
export default {
name: 'history-item', // 订单委托项
components: {
@@ -86,6 +88,7 @@
watch: {
},
methods: {
+ strToArr,
handleWordType(type) {
return type === 'limit' ? this.$t('限价') : this.$t('市价');
},
@@ -101,7 +104,7 @@
}
}
</script>
-<style lang="scss" scoped>
+<style lang="scss" scoped>
.history-item {
border-bottom: 1px solid $inp-b;
--
Gitblit v1.9.3