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.
38 lines
947 B
38 lines
947 B
|
3 years ago
|
<script>
|
||
|
|
export default {
|
||
|
|
onLaunch: function() {
|
||
|
|
let _this = this
|
||
|
|
let systemCache = _this.$commonMethod.getSystemCacheDate('myCache')
|
||
|
|
console.log("systemCache",systemCache)
|
||
|
|
if(!systemCache){
|
||
|
|
_this.$commonMethod.JumpUrl('/pages/login/login')
|
||
|
|
}else{
|
||
|
|
let currentTime = new Date().getTime() - systemCache.tokenTime
|
||
|
|
if (currentTime >= 10800000){
|
||
|
|
_this.$commonMethod.verifyPowerIsTrue('myCache')
|
||
|
|
}
|
||
|
|
// _this.$commonMethod.verifyPowerIsTrue(systemCache,'/pages/login/login')
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onShow: function() {
|
||
|
|
console.log('App Show')
|
||
|
|
},
|
||
|
|
onHide: function() {
|
||
|
|
console.log('App Hide')
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
/*每个页面公共css */
|
||
|
|
/* #ifdef H5 */
|
||
|
|
// uni-page-head { display: none; }
|
||
|
|
/* #endif */
|
||
|
|
@import '@/common/uni.css';
|
||
|
|
@import "uview-ui/index.scss";
|
||
|
|
@import "@/uni_modules/s-ui/styles/index.scss";
|
||
|
|
/*每个页面公共css */
|
||
|
|
@import "/common/iconfont.css";
|
||
|
|
</style>
|