You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
777 B

1 year ago
<script>
export default {
1 year ago
globalData: {
navbarHeight: 44,
},
1 year ago
onLaunch: async function() {
1 year ago
console.log('App Launch')
1 year ago
this.globalData.navbarHeight = uni.getSystemInfoSync().safeArea.top
1 year ago
1 year ago
const token = this.vuex_token ? this.vuex_token : uni.getStorageSync('lifeData')?.vuex_token;
if (token) {
try {
const { user } = await this.$u.api.getUserInfo()
this.$u.vuex('vuex_user', user)
} catch (err) {
console.error(err)
}
1 year ago
}
1 year ago
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
1 year ago
page {
background-color: #f2f3f7;
}
1 year ago
</style>