添加 localeText

This commit is contained in:
陆柯 2020-06-07 19:07:20 +08:00
parent da20decd80
commit e788182c76

View File

@ -103,6 +103,11 @@ module.exports = {
// #endif
page.$store.commit('i18n/setTabbar') // 必须要在有 tab 的页面里重置才能成功
},
localeText(){
let page = this.$store ? this : getCurrentPages().pop()
return page.i18nText[page.$store.state.i18n.activeLang]
},
formatMoney(value, decimal){
return Number(value).toFixed(decimal||2)