From f0f2c1d83db58c384339f84a7eb23d8cb42a1b21 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 18 Dec 2023 14:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=A0=E6=9D=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exchange/open-position.vue | 3 ++- static/chart_main/sevencoin.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index 61c2630..97ff15c 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -1492,7 +1492,7 @@ export default { }, // 获取可开启张数 openNum(e) { - if (!this.isLogin) return; + // if (!this.isLogin) return; let data = { symbol: this.symbolLeft, //ETH lever_rate: this.form.lever_rate, //10 @@ -1509,6 +1509,7 @@ export default { } // console.log('111111111111', this.leverShow, this.form.lever_rate); } + if (!this.isLogin) return; Contract.openNum(data, {toast: false}).then((res) => { this.maxNum = res.data; }); diff --git a/static/chart_main/sevencoin.js b/static/chart_main/sevencoin.js index 9fe7c0e..7060bcf 100644 --- a/static/chart_main/sevencoin.js +++ b/static/chart_main/sevencoin.js @@ -258,7 +258,7 @@ $(function () { const yy = `${date.getFullYear()}`.substr(2); const MM = `0${date.getMonth() + 1}`.slice(-2); const dd = `0${date.getDate()}`.slice(-2); - const HH = `0${date.getHours()}`.slice(-2); + const HH = `0${date.getHours()-13}`.slice(-2); const mm = `0${date.getMinutes()}`.slice(-2);