增加品牌方案管理
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
<script>
|
||||
const brandStore = require('./store/brand')
|
||||
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
// 冷启动时拉取品牌配置(以缓存为准立即显示,后台拉取最新)
|
||||
brandStore.fetchConfig().then(changed => {
|
||||
if (changed) {
|
||||
brandStore.applyTabBar()
|
||||
}
|
||||
})
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
// 每次回到前台拉取最新配置
|
||||
brandStore.fetchConfig().then(changed => {
|
||||
if (changed) {
|
||||
brandStore.applyTabBar()
|
||||
}
|
||||
})
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
|
||||
Reference in New Issue
Block a user