From f4f2eb7c80ab85bf0e52c1b911d5a4a82cda330d Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 02 二月 2026 10:30:15 +0800
Subject: [PATCH] 提交忽略文件

---
 mini-program/pages/details/details.vue |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/mini-program/pages/details/details.vue b/mini-program/pages/details/details.vue
index ab0977e..b5ce598 100644
--- a/mini-program/pages/details/details.vue
+++ b/mini-program/pages/details/details.vue
@@ -1,6 +1,6 @@
 <template>
-	<view class="box">
-		<view class="item" v-if="item">
+	<view class="box" v-if="item">
+		<view class="item">
 			<view class="item-tx">
 				<image :src="item.fullImgurl" mode="widthFix"></image>
 			</view>
@@ -47,7 +47,7 @@
 				<view class="card-title-xian"></view>
 				<text>鎿呴暱棰嗗煙</text>
 			</view>
-			<view class="card-list">
+			<view class="card-list" v-if="item.fieldList && item.fieldList.length > 0">
 				<view class="card-list-item" v-for="(child, index) in item.fieldList" :key="index">
 					<view class="card-list-item-title">{{child.name}}锛�</view>
 					<view class="card-list-item-text">{{child.remark}}</view>
@@ -69,8 +69,9 @@
 						</view>
 						<view class="left-info">{{child.detail}}</view>
 					</view>
-					<view class="right">
-						<image src="/static/logo.png" mode="widthFix"></image>
+					<view class="right" v-if="child.fileList && child.fileList.length > 0" @click="yulan">
+						<image :src="child.fileList[0].url" mode="widthFix"></image>
+						<view class="right-num">鍏眥{child.fileList.length}}寮�</view>
 					</view>
 				</view>
 			</view>
@@ -91,12 +92,14 @@
 			this.getDetails()
 		},
 		methods: {
+			zhankai() {
+				this.item.zhankai = !this.item.zhankai
+			},
 			getDetails() {
 				this.$u.api.memberDetail({
 					id: this.id
 				}).then(res => {
 					if (res.code === 200) {
-						console.log(res)
 						res.data.isShow = false
 						if (res.data.content && res.data.content.length > 30) {
 							res.data.isShow = true
@@ -315,6 +318,22 @@
 						overflow: hidden;
 						border-radius: 8rpx;
 						margin-left: 20rpx;
+						position: relative;
+						.right-num {
+							position: absolute;
+							bottom: 0;
+							right: 0;
+							z-index: 9;
+							padding: 0 10rpx;
+							box-sizing: border-box;
+							height: 32rpx;
+							line-height: 32rpx;
+							background: rgba(0,0,0,0.5);
+							font-weight: 400;
+							font-size: 20rpx;
+							color: #FFFFFF;
+							border-radius: 20rpx 0rpx 8rpx 0rpx;
+						}
 						image {
 							width: 100%;
 						}

--
Gitblit v1.9.3