diff --git a/pages/index.vue b/pages/index.vue index e0a8e3a..38deb86 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,36 +1,233 @@ + + +.item-title { + font-size: 28rpx; + line-height: 52rpx; + font-weight: bolder; + color: #333; +} + +.item-subtitle { + font-size: 26rpx; + color: #666; + line-height: 52rpx; +} + +.item-tags { + display: flex; + gap: 16rpx; + flex-wrap: wrap; /* 新增:标签过多时换行,避免溢出 */ + margin: 14rpx 0; +} + +.tag { + font-size: 22rpx; + padding: 4rpx 12rpx; + border-radius: 4rpx; + display: inline-block; /* 修复H5端padding不生效问题 */ +} + +.tag-city { + background-color: #e8f4ff; + color: #409eff; +} + +.tag-level { + background-color: #fdf4e4; + color: #f5961d; +} + +.tag-status { + background-color: #f0f9eb; + color: #67c23a; +} + +.loading-more { + display: flex; + align-items: center; + justify-conte4nt: center; + padding: 30rpx; + color: #999; + font-size: 26rpx; + gap: 10rpx; +} + +.no-more { + /* 核心:flex布局实现居中 */ + display: flex; + align-items: center; + justify-content: center; + /* 占满滚动容器剩余高度,保证垂直居中 */ + min-height: 200rpx; /* 最小高度,避免内容太少时不居中 */ + /* 文字样式保留 */ + color: #999; + font-size: 26rpx; + /* 可选:增加上下内边距,视觉更舒适 */ + padding: 30rpx 0; +} + \ No newline at end of file