暖心人
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.
 
 
 

39 lines
732 B

<script>
import api from "@/utils/functions";
import cloud from "@/uni_modules/m-view/lib/cloud-lib";
export default {
onLaunch: function() {
console.log('App Launch')
// #ifdef H5
cloud.build();
// #endif
},
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>