添加 localeText
This commit is contained in:
parent
da20decd80
commit
e788182c76
5
index.js
5
index.js
@ -104,6 +104,11 @@ module.exports = {
|
|||||||
page.$store.commit('i18n/setTabbar') // 必须要在有 tab 的页面里重置才能成功
|
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){
|
formatMoney(value, decimal){
|
||||||
return Number(value).toFixed(decimal||2)
|
return Number(value).toFixed(decimal||2)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user