From a75e5a3c022c32fa8424178bcdf390d89f7101ca Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 6 Nov 2020 22:30:17 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=B8=80=E9=83=A8=E5=88=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 4 ++ src/components/LiveingWatcher.vue | 13 +++- src/i18n/en.ts | 6 +- src/i18n/init.ts | 14 +++- src/i18n/zh.ts | 6 +- src/import-png.d.ts | 5 ++ src/views/mine/Cashout.vue | 4 +- src/views/mine/ReleaseWebcast.vue | 2 +- src/views/regime/Liveing.vue | 108 +++++++++++++++++++++++++++++- 9 files changed, 148 insertions(+), 14 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 8abcb9f..bed7cca 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1024,3 +1024,7 @@ export async function interests() { return res.data; } +export async function getset() { + const res = await get('getset'); + return res.data; +} diff --git a/src/components/LiveingWatcher.vue b/src/components/LiveingWatcher.vue index 76e82d9..2952764 100644 --- a/src/components/LiveingWatcher.vue +++ b/src/components/LiveingWatcher.vue @@ -13,7 +13,7 @@
- +
@@ -147,5 +147,14 @@ \ No newline at end of file diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 2e1d784..384ed2f 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -189,7 +189,6 @@ export default { xuanzezhanghu: "Select account", tixianjine: "Withdrawal amount", quanbujine: "Total amount", - tixianzhu: "Note: 0.1% service fee will be charged for each withdrawal, with a minimum of ¥ 0.1", yueshu: "Your balance is only", zuiditixian: "Minimum withdrawal amount ¥ 100", mingxichaxun: "Details inquiry", @@ -297,5 +296,8 @@ export default { kaihuhangweikong:"Swiftcode cannot be empty", shensu:"Appeal", querenquxiao: "Are you sure to cancel the live broadcast?", - tianjiatixian: "Add a withdrawal account" + tianjiatixian: "Add a withdrawal account", + shichangtishi:"", + renshutishi: '', + tixianzhu: "", } \ No newline at end of file diff --git a/src/i18n/init.ts b/src/i18n/init.ts index 790a4c8..95d7fa2 100644 --- a/src/i18n/init.ts +++ b/src/i18n/init.ts @@ -1,9 +1,19 @@ import zh from "./zh" import en from "./en" +import { getset } from '@/api'; +getset().then((res: any)=>{ + zh.shichangtishi = `最短${res.timeLowerLimit}min, 最长${res.timeCeiling}min` + en.shichangtishi = `The shortest is ${res.timeLowerLimit}min and the longest is ${res.timeCeiling}min` + zh.renshutishi = `最少${res.lowerLimit}人, 最多${res.numberCeiling}人` + en.shichangtishi = `Minimum ${res.lowerLimit} person, maximum ${res.numberCeiling} people` + zh.tixianzhu = `注:每笔提现收取${res.sxf}服务费,最低${ res.symbol + res.minmoney }` + en.tixianzhu = `Note: ${res.sxf} service fee will be charged for each withdrawal, with a minimum of ${ res.symbol + res.minmoney }` +}) + export default { locale: "zh", //默认语言 messages: { - zh, - en + zh: zh, + en: en } } \ No newline at end of file diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index c303757..7b8c2f4 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -192,7 +192,6 @@ export default { xuanzezhanghu:"选择账户", tixianjine:"提现金额", quanbujine:"全部金额", - tixianzhu:"注:每笔提现收取0.1%服务费,最低¥0.1", yueshu:"您的余额只有", zuiditixian:"最低提现金额¥100", mingxichaxun:"明细查询", @@ -297,5 +296,8 @@ export default { kaihuhangweikong:"开户行不能为空", shensu:"申诉", querenquxiao: "您确认取消直播吗?", - tianjiatixian: "添加提现账户" + tianjiatixian: "添加提现账户", + shichangtishi:"", + renshutishi: '', + tixianzhu:"", } \ No newline at end of file diff --git a/src/import-png.d.ts b/src/import-png.d.ts index 48bb383..9feb1f7 100644 --- a/src/import-png.d.ts +++ b/src/import-png.d.ts @@ -13,4 +13,9 @@ declare module "ant-design-vue/es/locale/zh_CN" { export default value; } +declare module 'tim-js-sdk'{ + const value: any; + export default value; +} + declare var FB: any; \ No newline at end of file diff --git a/src/views/mine/Cashout.vue b/src/views/mine/Cashout.vue index 34290a0..9b991c4 100644 --- a/src/views/mine/Cashout.vue +++ b/src/views/mine/Cashout.vue @@ -126,7 +126,7 @@