From f8e9af35a267b7b9a2bf605187a11536889a6e38 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 20 May 2024 11:00:10 +0800
Subject: [PATCH] 修改:绑定银行卡 多语言
---
src/page/user/Warehouse/data.list.vue | 37 +++++++++++++++++++++++--------------
1 files changed, 23 insertions(+), 14 deletions(-)
diff --git a/src/page/user/Warehouse/data.list.vue b/src/page/user/Warehouse/data.list.vue
index 4a21710..38952e3 100644
--- a/src/page/user/Warehouse/data.list.vue
+++ b/src/page/user/Warehouse/data.list.vue
@@ -43,8 +43,8 @@
<div class="sport-content-title2">
{{ $t("盈虧") }} ({{ activeObj.symbolCode }})
</div>
- <div class="sport-content-text" style="color: #d04b64">
- {{ item.profitAndLose | _toString }}
+ <div class="sport-content-text" >
+ {{ item.profitAndLose | _toLocaleString }}
</div>
</div>
</van-col>
@@ -72,7 +72,7 @@
{{ $t("hj40") }}({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.now_price | _toString }}
+ {{ item.now_price | _toLocaleString }}
</div>
</div>
</van-col>
@@ -82,7 +82,7 @@
{{ $t("持倉價") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.buyOrderPrice | _toString }}
+ {{ item.buyOrderPrice | _toLocaleString }}
</div>
</div>
</van-col>
@@ -92,7 +92,7 @@
{{ $t("訂單金額") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.orderTotalPrice | _toString }}
+ {{ item.orderTotalPrice | _toLocaleString }}
</div>
</div>
</van-col>
@@ -104,17 +104,17 @@
{{ $t("hj44") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.orderFee | _toString }}
+ {{ item.orderFee | _toLocaleString }}
</div>
</div>
</van-col>
- <van-col span="8">
+ <!-- <van-col span="8">
<div style="text-align: center">
<div class="sport-content-title2">
{{ $t("止損價") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.profitTargetPrice | _toString }}
+ {{ item.stopTargetPrice | _toLocaleString }}
</div>
</div>
</van-col>
@@ -124,10 +124,10 @@
{{ $t("止盈價") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.stopTargetPrice | _toString }}
+ {{ item.profitTargetPrice | _toLocaleString }}
</div>
</div>
- </van-col>
+ </van-col> -->
</van-row>
<van-row>
<van-col span="12">
@@ -207,6 +207,7 @@
show: false,
actives: 0,
dataList: [],
+ timer: null,
tabsList: [
{
title: this.$t("持倉"),
@@ -220,7 +221,14 @@
],
};
},
-
+ created(){
+ this.timer = setInterval(() => {
+ this.getList();
+ }, 1000);
+ },
+ beforeDestroy() {
+ clearInterval(this.timer); // 在组件销毁前清除定时器
+ },
methods: {
pushRouter(item) {
const obj = {
@@ -245,7 +253,7 @@
});
},
onLoad() {
- this.pageNum++;
+ // this.pageNum++;
this.loading = true;
},
async confirm() {
@@ -273,13 +281,14 @@
const res = await getchicang({
state: this.actives,
stockType: laber || this.activeObj.laber,
- pageNum: this.pageNum,
- pageSize: this.pageSize,
+ pageNum: 1,
+ pageSize: 100,
});
this.loading = false;
if (res.status === 0) {
this.dataList = res.data.list;
+ this.$forceUpdate(); // 强制Vue重新渲染
// if (res.data.total <= this.dataList.length) {
this.finished = true;
// }
--
Gitblit v1.9.3