From ef46d13d5fa70d1c94f25de294f5ed177b751234 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 02 三月 2026 16:40:30 +0800
Subject: [PATCH] 提交

---
 mini-program/pages/community/community.vue |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/mini-program/pages/community/community.vue b/mini-program/pages/community/community.vue
index 52207f6..c8c15b6 100644
--- a/mini-program/pages/community/community.vue
+++ b/mini-program/pages/community/community.vue
@@ -17,13 +17,13 @@
 			</view>
 		</view>
 		<view class="list">
-			<view class="list-item" v-for="(item, index) in list" :key="index" @click="jump(item.id)">
+			<view class="list-item" v-for="(item, index) in list" :key="index" @click="jump(item.id, item.contentType, item.content)">
 				<view class="info">
 					<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" :style="{ backgroundColor: item.param }">{{item.lablesName}}</view>
-						<text>{{item.looknum || 0}} 闃呰锝渰{item.createDate.substring(0, 16)}}</text>
+						<view class="tips" :style="{ border: '1rpx solid' + item.param, color: item.param }">{{item.lablesName}}</view>
+						<text>{{item.looknum > 999 ? '999+' : item.looknum  || 0}} 闃呰锝渰{item.createDate.substring(0, 16)}}</text>
 					</view>
 				</view>
 				<view class="image" v-if="item.imgurlfull">
@@ -112,7 +112,7 @@
 			},
 			getCategary() {
 				this.$u.api.getGoodsLabelsByType({
-					type: 0
+					type: 9
 				}).then(res => {
 					if (res.code === 200) {
 						res.data.forEach(item => {
@@ -132,10 +132,16 @@
 					}
 				})
 			},
-			jump(id) {
-				uni.navigateTo({
-					url: '/pages/article-details/article-details?id=' + id
-				})
+			jump(id, contentType, url) {
+				if (contentType == 0) {
+					uni.navigateTo({
+						url: '/pages/article-details/article-details?id=' + id
+					})
+				} else {
+					uni.navigateTo({
+						url: '/pagesA/pages/webview/webview?url=' + url
+					})
+				}
 			},
 			getList() {
 				if (!this.next) return;
@@ -199,6 +205,9 @@
 						width: 216rpx;
 						height: 72rpx;
 						line-height: 72rpx;
+						white-space: nowrap;
+						overflow: hidden; 
+						text-overflow: ellipsis; /* 鏄剧ず鐪佺暐鍙� */
 						text-align: center;
 						background: #F7F7F7;
 						border-radius: 8rpx;
@@ -277,16 +286,20 @@
 						align-items: center;
 						margin-top: 20rpx;
 						.tips {
+							max-width: 110rpx;
 							height: 40rpx;
 							line-height: 40rpx;
+							white-space: nowrap;
+							overflow: hidden;
+							text-overflow: ellipsis;
+							// display: flex;
+							// align-items: center;
+							// justify-content: center;
 							padding: 0 8rpx;
 							box-sizing: border-box;
-							background: rgba(0,183,117,0.1);
 							border-radius: 8rpx;
-							
 							font-weight: 400;
 							font-size: 22rpx;
-							color: #00B775;
 							margin-right: 20rpx;
 						}
 						text {

--
Gitblit v1.9.3