From 01d33e0271209b14ed364ccdb5d6ed0270a906af Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Tue, 23 Sep 2025 13:48:32 +0800
Subject: [PATCH] 1
---
src/lang/zh.json | 3 ++-
src/views/account/account.vue | 2 +-
src/views/home/components/HomeLtr.vue | 43 ++++++++++++++++++++++---------------------
src/lang/cht.json | 3 ++-
src/lang/en.json | 3 ++-
src/views/home/Home.vue | 2 +-
6 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/src/lang/cht.json b/src/lang/cht.json
index c8dcb80..4a0673f 100644
--- a/src/lang/cht.json
+++ b/src/lang/cht.json
@@ -716,5 +716,6 @@
"kf1": "需要任何幫助請聯繫您的專屬交易助理或開戶專員",
"充值提示": "尊敬的會員您好,充值請聯繫客服",
"平仓盈亏":"平倉盈虧",
- "获取验证码":"獲取驗證碼"
+ "获取验证码":"獲取驗證碼",
+ "hjsfz": "15分鐘"
}
diff --git a/src/lang/en.json b/src/lang/en.json
index 18a32a8..faaf046 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -716,5 +716,6 @@
"kf1": "If you need any assistance, please contact your dedicated trading assistant or account opening specialist.",
"充值提示": "Dear member, please contact customer service for recharging",
"平仓盈亏":"Closing position profit and loss",
- "获取验证码":"Obtain verification code"
+ "获取验证码":"Obtain verification code",
+ "hjsfz": "15 min"
}
diff --git a/src/lang/zh.json b/src/lang/zh.json
index 3ce081f..441a891 100644
--- a/src/lang/zh.json
+++ b/src/lang/zh.json
@@ -662,5 +662,6 @@
"ar1":"账户注册",
"lo1":"退出登录",
"平仓盈亏":"平仓盈亏",
- "获取验证码":"获取验证码"
+ "获取验证码":"获取验证码",
+ "hjsfz": "15分钟"
}
\ No newline at end of file
diff --git a/src/views/account/account.vue b/src/views/account/account.vue
index 2323c3e..c544efd 100644
--- a/src/views/account/account.vue
+++ b/src/views/account/account.vue
@@ -273,7 +273,7 @@
clearInterval(teimss);
teimss = setInterval(() => {
this.getMoney();
- }, 10000);
+ }, 3000);
},
// 获取账户金额
async getMoney() {
diff --git a/src/views/home/Home.vue b/src/views/home/Home.vue
index 84bd866..8bbf8b6 100644
--- a/src/views/home/Home.vue
+++ b/src/views/home/Home.vue
@@ -39,7 +39,7 @@
if (this.timer) clearInterval(this.timer);
this.timer = setInterval(() => {
this.getSingDetails(val);
- }, 5000);
+ }, 2000);
},
},
},
diff --git a/src/views/home/components/HomeLtr.vue b/src/views/home/components/HomeLtr.vue
index 4b56ffe..ed126f6 100644
--- a/src/views/home/components/HomeLtr.vue
+++ b/src/views/home/components/HomeLtr.vue
@@ -69,6 +69,7 @@
</template>
<script>
+let _timers = []
import HQChart from "hqchart";
import "hqchart/src/jscommon/umychart.resource/css/tools.css";
import "hqchart/src/jscommon/umychart.resource/font/iconfont.css";
@@ -1069,14 +1070,18 @@
Name: i18n.t("hj89"),
ID: 2,
},
- // {
- // Name: i18n.t("hj90"),
- // ID: 4,
- // },
- // {
- // Name: i18n.t("hj91"),
- // ID: 5,
- // },
+ {
+ Name: i18n.t("hj90"),
+ ID: 4,
+ },
+ {
+ Name: i18n.t("hj91"),
+ ID: 5,
+ },
+ {
+ Name: i18n.t("hjsfz"),
+ ID: 6,
+ },
{
Name: i18n.t("hj92"),
ID: 7,
@@ -1128,7 +1133,6 @@
chartType: "kline",
KLineChart: null, // 图形控件 K线图
Chart: null, // 图形控件 分时图
- timerss: null,
isShow: false,
};
},
@@ -1146,21 +1150,16 @@
this.init();
},
beforeDestroy() {
- if (this.timerss) {
- clearInterval(this.timerss);
- }
this.clearTime();
},
methods: {
// 清除所有定时器
clearTime() {
- // 创建一个额外的定时器以获取当前最大定时器 ID
- let lastIntervalId = setInterval(() => {}, 1000);
- // 遍历并清除所有定时器
- for (let i = 1; i <= lastIntervalId; i++) {
- clearInterval(i);
- clearTimeout(i);
- }
+ _timers.forEach(id => {
+ clearInterval(id);
+ clearTimeout(id);
+ });
+ _timers = [];
},
init() {
this.OnSize();
@@ -1263,9 +1262,11 @@
EastMoney.HQData.Log("[HQChartDemo::NetworkFilter] data", data);
this.timeChange(data, callback);
- this.timerss = setInterval(() => {
+
+ let timerId = setInterval(() => {
this.timeChange(data, callback);
- }, 5000);
+ }, 2000);
+ _timers.push(timerId);
},
timeChange(data, callback) {
EastMoney.HQData.Log("[HQChartDemo::NetworkFilter] data", data);
--
Gitblit v1.9.3