From 48dbbde133110f7a7aebc1b6370e601eea130e06 Mon Sep 17 00:00:00 2001 From: ltlzx <942659938@qq.com> Date: Mon, 28 Mar 2022 18:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommonHeader.vue | 17 +++--- src/components/KLine.vue | 56 ++++++++++---------- src/i18n/en.json | 14 ++--- src/views/contract/account.vue | 39 ++++++++------ src/views/contract/exchange-store.vue | 75 ++++++++++++++++----------- src/views/contract/hold-position.vue | 2 +- src/views/contract/index.vue | 6 +-- src/views/contract/page-bottom.vue | 6 +++ src/views/option/kline.vue | 2 +- src/views/wallet/exchange-assets.vue | 10 ++-- 10 files changed, 126 insertions(+), 101 deletions(-) diff --git a/src/components/CommonHeader.vue b/src/components/CommonHeader.vue index 2e98ddf..2c0f1fa 100644 --- a/src/components/CommonHeader.vue +++ b/src/components/CommonHeader.vue @@ -271,14 +271,11 @@ export default { langList: [ - { - value: "cn", // zh-CN - label: "简体中文" - }, - { - value: "tw", // zh-TW - label: "繁体中文" - }, + // { + // value: "cn", // zh-CN + // label: "简体中文" + // }, + { value: "en", label: "English" @@ -331,6 +328,10 @@ export default { value: 'tr', label: 'Turkey' }, + { + value: "tw", // zh-TW + label: "繁体中文" + }, ], wallet: { diff --git a/src/components/KLine.vue b/src/components/KLine.vue index 043a2d5..db12045 100644 --- a/src/components/KLine.vue +++ b/src/components/KLine.vue @@ -24,7 +24,7 @@ export default { data() { return { model: null, // 数据模型 - interval: "5" // [字符串格式]和TV的resolution同步 + interval: "1D" // [字符串格式]和TV的resolution同步 }; }, @@ -119,44 +119,44 @@ export default { // chartType: 3 // }, // 1,2,3几种类型 { - title: "1" + this.$t("exchange.min"), - resolution: "1", - chartType: 1 + title: "1" + this.$t("exchange.min"), + resolution: "1", + chartType: 1 }, { - title: "5" + this.$t("exchange.min"), - resolution: "5", - chartType: 1 + title: "5" + this.$t("exchange.min"), + resolution: "5", + chartType: 1 }, { - title: "15" + this.$t("exchange.min"), - resolution: "15", - chartType: 1 + title: "15" + this.$t("exchange.min"), + resolution: "15", + chartType: 1 }, { - title: "30" + this.$t("exchange.min"), - resolution: "30", - chartType: 1 + title: "30" + this.$t("exchange.min"), + resolution: "30", + chartType: 1 }, { - title: "1" + this.$t("exchange.hour"), - resolution: "60", - chartType: 1 + title: "1" + this.$t("exchange.hour"), + resolution: "60", + chartType: 1 }, { - title: "1" + this.$t("exchange.day"), - resolution: "1D", - chartType: 1 + title: "1" + this.$t("exchange.day"), + resolution: "D", + chartType: 1 }, { - title: "1" + this.$t("exchange.week"), - resolution: "1W", - chartType: 1 + title: "1" + this.$t("exchange.week"), + resolution: "W", + chartType: 1 }, { - title: "1" + this.$t("exchange.month"), - resolution: "1M", - chartType: 1 + title: "1" + this.$t("exchange.month"), + resolution: "M", + chartType: 1 } ]; @@ -170,9 +170,9 @@ export default { .addClass("my-date") .css({ background: (index, value) => { - if (this.interval == item.resolution) { - return this.theme=='light'?'#ccc':'#091722'; - } + if (this.interval == item.resolution) { + return this.theme=='light'?'#ccc':'#091722'; + } }, color: () => { if (this.interval == item.resolution) { diff --git a/src/i18n/en.json b/src/i18n/en.json index c54cbbf..3a0be52 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -137,7 +137,7 @@ "myWallet": "Wallet", "commissionOrder": "Orders", "securitySetting": "Security", - "wallet": "Wallet", + "wallet": "Wallets", "allAssets": "Assets", "contractaccount": "Derivatives Account", "transferFunds": "Transfer", @@ -800,7 +800,7 @@ "smsVer": "SMS Verification", "enterCode": "Please enter the verification code", "emailVer": "Email Verification", - "enterEmailVer": "Please enter the email verification code", + "enterEmailVer": "Enter the verification code", "ver": "Verify", "enterNameCode": "Please enter {name} verification code", "openSuccess": "Opened successfully", @@ -835,9 +835,9 @@ "enterPhone": "Please enter your phone number", "newPassword": "New Password", "passwordIs": "The transaction password is {num} digits", - "enterNewPassword": "Please enter a new password", - "confirmPassword": "Confirm Password", - "pleaseConfirmPassword": "Please Confirm Password", + "enterNewPassword": "Enter a new password", + "confirmPassword": "Confirm your Password", + "pleaseConfirmPassword": "Confirm password", "operationSuccess": "Operation Successful", "combination": "The password requires a combination of letters and numbers", "changeSuccess": "Modified successfully" @@ -942,7 +942,7 @@ "h6": "Change", "h7": "High", "h8": "Low", - "h9": "Turnover", + "h9": "Vol", "i0": "Positions", "i1": "Open Orders", "i2": "Order History", @@ -974,7 +974,7 @@ "k8": "Please log in first to apply", "k9":"Please enter the subscription code", "l1":"Proportion of increase", - "l2":"Cost", + "l2":"Margin", "l4":"Current valuation" }, "otc": { diff --git a/src/views/contract/account.vue b/src/views/contract/account.vue index db75aeb..52b5b62 100644 --- a/src/views/contract/account.vue +++ b/src/views/contract/account.vue @@ -18,7 +18,7 @@
{{$t('contract.a3')}}(USDT)
-
{{accountInfo.usable_balance}}
+
{{(accountInfo.usable_balance).toFixed(2)}}
-
+
-
-
+
+
{{ $t("contract.e1") }}:
@@ -145,11 +145,11 @@
-
+
-
+