You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
1.9 KiB
Vue

<script>
export default {
onLaunch() {
const token = uni.getStorageSync('token')
if (!token) {
uni.reLaunch({ url: '/pages/login/login' })
}
}
}
</script>
<style>
page {
background-color: #F5F7FA;
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
font-size: 28rpx;
color: #333;
}
.container {
padding: 24rpx;
}
.card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
}
.card-title {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-bottom: 20rpx;
}
.card-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12rpx 0;
font-size: 28rpx;
}
.card-label {
color: #999;
}
.card-value {
color: #333;
font-weight: 500;
}
.btn-primary {
background: #2B7FD2;
color: #FFFFFF;
text-align: center;
padding: 24rpx 0;
border-radius: 12rpx;
font-size: 32rpx;
font-weight: 500;
}
.btn-primary:active {
opacity: 0.85;
}
.btn-danger {
background: #FFFFFF;
color: #F44336;
border: 2rpx solid #F44336;
text-align: center;
padding: 24rpx 0;
border-radius: 12rpx;
font-size: 32rpx;
font-weight: 500;
}
.btn-warning {
background: #FFFFFF;
color: #2B7FD2;
border: 2rpx solid #2B7FD2;
text-align: center;
padding: 24rpx 0;
border-radius: 12rpx;
font-size: 32rpx;
font-weight: 500;
}
.status-tag {
display: inline-block;
padding: 6rpx 16rpx;
border-radius: 8rpx;
font-size: 24rpx;
font-weight: 500;
}
.status-pending {
background: #FFF3E0;
color: #FF9800;
}
.status-booked {
background: #E8F4FD;
color: #2B7FD2;
}
.status-done {
background: #E8F5E9;
color: #4CAF50;
}
.status-cancel {
background: #F5F5F5;
color: #999;
}
.empty-state {
text-align: center;
padding: 120rpx 0;
color: #999;
font-size: 28rpx;
}
.empty-icon {
font-size: 80rpx;
margin-bottom: 20rpx;
}
</style>