Files
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

124 lines
1.8 KiB
Vue

<template>
<view>
<!-- 页面内容 -->
</view>
</template>
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/* 全局样式 */
page {
background-color: #f8f8f8;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* 通用样式 */
.container {
padding: 20rpx;
}
.card {
background: #fff;
border-radius: 12rpx;
padding: 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
}
.title {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-bottom: 16rpx;
}
.subtitle {
font-size: 28rpx;
color: #666;
margin-bottom: 12rpx;
}
.text {
font-size: 26rpx;
color: #999;
line-height: 1.6;
}
/* 加载状态 */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 40rpx;
}
.loading-text {
font-size: 28rpx;
color: #999;
margin-left: 20rpx;
}
/* 空状态 */
.empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 100rpx 40rpx;
text-align: center;
}
.empty-icon {
font-size: 120rpx;
color: #ccc;
margin-bottom: 40rpx;
}
.empty-text {
font-size: 30rpx;
color: #999;
}
/* 错误状态 */
.error {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 100rpx 40rpx;
text-align: center;
}
.error-icon {
font-size: 120rpx;
color: #ff4444;
margin-bottom: 40rpx;
}
.error-text {
font-size: 30rpx;
color: #ff4444;
margin-bottom: 40rpx;
}
.error-btn {
background: #3cc51f;
color: #fff;
padding: 20rpx 40rpx;
border-radius: 8rpx;
font-size: 28rpx;
}
</style>