mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-07 17:32:25 +08:00
28 lines
519 B
Vue
28 lines
519 B
Vue
|
|
<script>
|
||
|
|
export default {
|
||
|
|
onLaunch: function() {
|
||
|
|
console.log('App Launch')
|
||
|
|
Vue.prototype.$checkAuth = () => {
|
||
|
|
if (!uni.getStorageSync('vuex_token')) {
|
||
|
|
uni.$emit("needLogin")
|
||
|
|
return false
|
||
|
|
}
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onShow: function() {
|
||
|
|
console.log('App Show')
|
||
|
|
},
|
||
|
|
onHide: function() {
|
||
|
|
console.log('App Hide')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
/*每个页面公共css */
|
||
|
|
/* './common/uni-ui.scss'*/
|
||
|
|
@import "uview-ui/index.scss";
|
||
|
|
|
||
|
|
</style>
|