xbx #118

Merged
theluyuan merged 10 commits from xbx into master 2020-11-06 23:45:06 +08:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 133048364f - Show all commits

View File

@ -1,13 +1,21 @@
import zh from "./zh" import zh from "./zh"
import en from "./en" import en from "./en"
import { getset } from '@/api'; import { getset } from '@/api';
import { geti18n } from '@/utils/i18n';
getset().then((res: any)=>{ getset().then((res: any)=>{
zh.shichangtishi = `最短${res.timeLowerLimit}min, 最长${res.timeCeiling}min` zh.shichangtishi = `最短${res.timeLowerLimit}min, 最长${res.timeCeiling}min`
en.shichangtishi = `The shortest is ${res.timeLowerLimit}min and the longest is ${res.timeCeiling}min` en.shichangtishi = `The shortest is ${res.timeLowerLimit}min and the longest is ${res.timeCeiling}min`
zh.renshutishi = `最少${res.lowerLimit}人, 最多${res.numberCeiling}` zh.renshutishi = `最少${res.lowerLimit}人, 最多${res.numberCeiling}`
en.renshutishi = `At least ${res.lowerLimit}, at most ${res.numberCeiling}`
en.shichangtishi = `Minimum ${res.lowerLimit} person, maximum ${res.numberCeiling} people` en.shichangtishi = `Minimum ${res.lowerLimit} person, maximum ${res.numberCeiling} people`
zh.tixianzhu = `注:每笔提现收取${res.sxf}服务费,最低${ res.symbol + res.minmoney }` 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 }` en.tixianzhu = `Note: ${res.sxf} service fee will be charged for each withdrawal, with a minimum of ${ res.symbol + res.minmoney }`
const i18n = geti18n();
const loc = i18n.locale.value;
i18n.locale.value = '';
i18n.locale.value = loc;
console.log('i18n')
}) })
export default { export default {

View File

@ -156,7 +156,7 @@
:placeholder="lan.$t('shuruzhiborenshu')" :placeholder="lan.$t('shuruzhiborenshu')"
type="number" type="number"
/> />
<div style="color: red;font-size: 0.12rem;line-height: 1.3;">*最少1人, 最多4人</div> <div style="color: red;font-size: 0.12rem;line-height: 1.3;">*{{ lan.$t('renshutishi') }}</div>
</a-form-item> </a-form-item>
<a-form-item :label="lan.$t('zhibojianjie')" class="brief"> <a-form-item :label="lan.$t('zhibojianjie')" class="brief">