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.
|
|
|
<script>
|
|
|
|
import api from "@/utils/functions";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
onLaunch: function() {
|
|
|
|
console.log('App Launch')
|
|
|
|
},
|
|
|
|
onShow: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
onHide: function() {
|
|
|
|
console.log('App Hide')
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
if(!uni.getStorageSync('sysInfo')){
|
|
|
|
uni.showLoading({title:'加载中'});
|
|
|
|
api.uniSysInfo().then(data => {
|
|
|
|
uni.hideLoading();
|
|
|
|
}).catch(err => {
|
|
|
|
uni.hideLoading();
|
|
|
|
uni.$u.toast(err);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
/*每个页面公共css */
|
|
|
|
@import "uview-plus/index.scss";
|
|
|
|
</style>
|