添加 localeText
This commit is contained in:
parent
da20decd80
commit
e788182c76
5
index.js
5
index.js
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user