From 7f3f9475bb63f5ea94d0c2e5316d85da99892f61 Mon Sep 17 00:00:00 2001
From: lld <15027638633@163.com>
Date: Thu, 12 Feb 2026 00:02:22 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=88=9D=E6=AD=A5=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index.vue | 251 ++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 224 insertions(+), 27 deletions(-)
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 @@
-
-
-
- Hello Agri
+
+
+
+
+ {{ item.title }}
+ {{ item.subtitle }}
+
+ {{ item.city }}
+ {{ item.level }}
+ {{ item.status }}
+
+
+
+ 加载中...
+
+ 没有更多数据了
+
+
+
+
+.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