diff --git a/src/i18n/init.ts b/src/i18n/init.ts index 7ebf2c9..a6980c0 100644 --- a/src/i18n/init.ts +++ b/src/i18n/init.ts @@ -2,20 +2,21 @@ import zh from "./zh" import en from "./en" import { getset } from '@/api'; import { geti18n } from '@/utils/i18n'; +import store from '@/store'; 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.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 }` 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; + const i18n = geti18n(); + const loc = i18n.locale.value; + i18n.locale.value = ''; + i18n.locale.value = loc; console.log('i18n') - + store.commit("setseting", res) }) export default { diff --git a/src/store/index.ts b/src/store/index.ts index 12494fa..8ca4f4d 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -52,9 +52,23 @@ export default createStore({ zoneid: 1, symbol: "$" }, - islogin: false + islogin: false, + seting:{ + lowerLimit: "", + minmoney: 0, + minwithdraw: "", + numberCeiling: "", + sxf: "", + symbol: "", + timeCeiling: "", + timeLowerLimit: "", + } }, mutations: { + setseting(state, info){ + console.log(info, 112) + state.seting = info + }, setUserInfo(state, userinfo){ userinfo.money = userinfo.money.toString() state.userinfo = userinfo diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index 51d457b..bbf090e 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -221,6 +221,7 @@