<script> export default { data() { return { } }, methods: { }, onLaunch: function() { }, onShow: function() { if(uni.getStorageSync('userInfo')){ uni.reLaunch({ url:'/pages/home' }) }else{ uni.reLaunch({ url:'/pages/login' }) } }, onHide: function() { } } </script> <style lang="scss"> /*每个页面公共css */ @import "@/uni_modules/uview-ui/index.scss"; * { box-sizing: border-box; } uni-page-body, html, body { height: 100%; width: 750rpx; background: #F6F6F6; } .u-button--primary { background-color: #5776E6; } .uni-input-placeholder { text-align: right; } .ml5 { margin-left: 10rpx; } .contain { height: 100%; padding-bottom: 120rpx; padding-top: 24rpx; overflow-y: auto; .main { padding: 0 32rpx; background-color: #fff; } .tijiao { position: fixed; width: 100%; bottom: 0; left: 0; background-color: #fff; padding: 16rpx 32rpx; box-sizing: border-box; box-shadow: 0 -6px 12px 0 rgba(153, 153, 153, 0.10); } .u-cell__value { color: #333 !important; } } .tabPage{ width: 100%; padding-bottom: 172rpx; box-sizing: border-box; } .adf{ display: flex; } .adfac{ display: flex; align-items: center; } .adfacjc{ display: flex; align-items: center; justify-content: center; } .adfacjb{ display: flex; align-items: center; justify-content: space-between; } .adffcjb{ display: flex; flex-direction: column; justify-content: space-between; } .adffcacjc{ display: flex; flex-direction: column; align-items: center; justify-content: center; } .adffcacjb{ display: flex; flex-direction: column; align-items: center; justify-content: space-between; } .zt_btn{ width: 100%; height: 90rpx; background: #D9F159; border-radius: 24rpx; font-family: PingFangSC, PingFang SC; font-weight: bold; font-size: 32rpx; color: #111111; line-height: 90rpx; text-align: center; letter-spacing: 2rpx; } .qx_btn{ width: 100%; height: 90rpx; background: #FAFAFA; border-radius: 24rpx; font-family: PingFangSC, PingFang SC; font-weight: 400; font-size: 32rpx; color: #393939; line-height: 90rpx; text-align: center; letter-spacing: 2rpx; } </style>