2024-05-28 14:14:34 +08:00
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
onLaunch: function() {
|
2024-06-05 17:26:16 +08:00
|
|
|
const token = {
|
|
|
|
|
loginName: uni.getStorageSync('loginName'),
|
|
|
|
|
secretKey: uni.getStorageSync('secretKey'),
|
|
|
|
|
}
|
|
|
|
|
if (token.secretKey){
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: '/pages/homeIndex/index'
|
|
|
|
|
})
|
|
|
|
|
console.log(token.secretKey,'App Launch')
|
|
|
|
|
} else {
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
})
|
|
|
|
|
console.log(token.secretKey,'App Launch2')
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-28 14:14:34 +08:00
|
|
|
},
|
|
|
|
|
onShow: function() {
|
|
|
|
|
console.log('App Show')
|
|
|
|
|
},
|
|
|
|
|
onHide: function() {
|
|
|
|
|
console.log('App Hide')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
/*每个页面公共css */
|
|
|
|
|
@import '@/uni_modules/uni-scss/index.scss';
|
2024-05-30 13:53:09 +08:00
|
|
|
@import "@/uni_modules/uview-ui/index.scss";
|
2024-05-28 14:14:34 +08:00
|
|
|
/* #ifndef APP-NVUE */
|
|
|
|
|
@import '@/static/customicons.css';
|
|
|
|
|
// 设置整个项目的背景色
|
|
|
|
|
page {
|
2024-05-30 13:53:09 +08:00
|
|
|
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
|
2024-05-28 14:14:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* #endif */
|
|
|
|
|
.example-info {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #333;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|