xytSk-App/App.vue

110 lines
2.0 KiB
Vue
Raw Normal View History

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'),
2024-11-07 16:41:17 +08:00
secretKey: uni.getStorageSync('Gs-Token'),
2024-06-05 17:26:16 +08:00
}
if (token.secretKey){
uni.reLaunch({
url: '/pages/homeIndex/index'
})
} else {
uni.reLaunch({
2024-11-06 15:55:25 +08:00
url: '/pages/login/login'
// url:'/pages/mypage/mypage'
2024-06-05 17:26:16 +08:00
})
}
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;
}
2024-09-14 09:22:12 +08:00
.userinfo{
border-radius: 5px;
display: flex;
flex-direction: row;
margin-top: 5vh;
margin-left: 2vw;
margin-bottom: 2vh;
align-items: center;
width: 95%;
height: 6vh;
background-color: #007afd;
}
.icon{
width: 6vw;
height: 6vh;
align-items: center;
line-height: 6vh;
}
.Header{
display: flex;
flex-direction: row;
flex: 0.95;
justify-content: center;
color: white;
font-size: 20px;
}
.align-center{
display: flex;
align-items: center;
}
.align-justufy-center{
display: flex;
align-items: center;
justify-content: center;;
}
.justify-center{
display: flex;
justify-content: center;
}
.justify-between{
display: flex;
justify-content: space-between;
}
2024-11-08 15:11:23 +08:00
page {
height: 100%;
background-color: #f3f5f8;
}
.time-ranger{
background-color: #ffffff;
2024-11-08 15:40:32 +08:00
padding: 0px 10px;
2024-11-08 15:11:23 +08:00
padding-bottom: 10px;
.start-time, .end-time{
display: flex;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #dfdfdf;
}
.search-btn{
margin: 3px 0 0 5px;
// color: #3399ef;
}
}
2024-05-28 14:14:34 +08:00
</style>