From 2da6cac0a9bab5ce7ad04ac17f73d456732f907e Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 12 二月 2026 09:41:22 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 mini-program/pages/community/community.vue |   54 +++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 45 insertions(+), 9 deletions(-)

diff --git a/mini-program/pages/community/community.vue b/mini-program/pages/community/community.vue
index 020c8b7..9e1b9da 100644
--- a/mini-program/pages/community/community.vue
+++ b/mini-program/pages/community/community.vue
@@ -9,7 +9,7 @@
 			</view>
 			<view class="search">
 				<u-search placeholder="璇疯緭鍏ュ叧閿瘝" height="36" searchIconColor="#999999" borderColor="#eeeeee"
-					bgColor="rgba(255,255,255,0.9)" :showAction="false" v-model="keyword" />
+					bgColor="rgba(255,255,255,0.9)" :showAction="false" v-model="info" />
 				<view class="search-shai" @click="show = true">
 					<text>绛涢��</text>
 					<image src="/static/icon/ic_shaixuan@2x.png" mode="widthFix"></image>
@@ -17,17 +17,17 @@
 			</view>
 		</view>
 		<view class="list">
-			<view class="list-item" v-for="(item, index) in 10" :key="index">
+			<view class="list-item" v-for="(item, index) in list" :key="index" @click="jump(item.id)">
 				<view class="info">
-					<view class="info-title">鎸栨帢鏈哄湪鍐璧峰姩涓轰粈涔堝洶闅撅紵</view>
-					<view class="info-desc">鎸栨帢鏈哄湪鍐璧峰姩涓轰粈涔堝洶闅撅紵涓嶄粎鍐冲畾浜庢湰韬殑鎶�鏈姸鍐碉紝杩樺彈澶栫晫姘旀俯鐨勫奖鍝�</view>
+					<view class="info-title">{{item.name}}</view>
+					<view class="info-desc" v-if="item.contentInfo">{{item.contentInfo}}</view>
 					<view class="info-data">
-						<view class="tips">缁翠慨</view>
-						<text>100 闃呰锝�2025-10-10 21:00</text>
+						<view class="tips">{{item.lablesName}}</view>
+						<text>{{item.looknum || 0}} 闃呰锝渰{item.createDate}}</text>
 					</view>
 				</view>
-				<view class="image">
-					<image src="/static/logo.png" mode="widthFix"></image>
+				<view class="image" v-if="item.imgurlfull">
+					<image :src="item.imgurlfull" mode="widthFix"></image>
 				</view>
 			</view>
 		</view>
@@ -69,8 +69,44 @@
 		data() {
 			return {
 				show: false,
-				keyword: ''
+				info: '',
+				page: 1,
+				next: true,
+				list: []
 			};
+		},
+		onLoad() {
+			this.getList()
+		},
+		onReachBottom() {
+			this.getList()
+		},
+		methods: {
+			jump(id) {
+				uni.navigateTo({
+					url: '/pages/article-details/article-details?id=' + id
+				})
+			},
+			getList() {
+				if (!this.next) return;
+				this.$u.api.getArticlePage({
+					capacity: 10,
+					page: this.page,
+					model: {
+						info: this.info,
+						brandId: '',
+						labelId: ''
+					}
+				}).then(res => {
+					if (res.code === 200) {
+						this.list.push(...res.data.records)
+						this.page++
+						if (this.list.length === res.data.total) {
+							this.next = false
+						}
+					}
+				})
+			},
 		}
 	}
 </script>

--
Gitblit v1.9.3