From b850badcf800eff5819e0789d1b81e5e27fcd037 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 29 十一月 2024 17:21:34 +0800
Subject: [PATCH] ll

---
 h5/pages/operation/detail.vue |   37 ++++++++++++++++++++++++++++---------
 1 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/h5/pages/operation/detail.vue b/h5/pages/operation/detail.vue
index ab1ce29..0420d6b 100644
--- a/h5/pages/operation/detail.vue
+++ b/h5/pages/operation/detail.vue
@@ -2,31 +2,47 @@
 	<view>
 		<view class="content">
 			<view class="name_wrap">
-				<view class="name">xx璁惧</view>
-				<view class="status red">姝e父</view>
+				<view class="name">{{info.deviceName}}</view>
+				<view class="status" v-if="info.status == 0">姝e父</view>
+				<view class="status red" v-if="info.status == 1">鎹熷潖</view>
+				<view class="status red" v-if="info.status == 2">鎶ュ簾</view>
 			</view>
-			<view class="line">杩愮淮浜猴細xxx</view>
-			<view class="line">杩愮淮鏃堕棿锛�121212</view>
+			<view class="line">杩愮淮浜猴細{{info.realName}}</view>
+			<view class="line">杩愮淮鏃堕棿锛歿{info.createDate}}</view>
 		</view>
 		<!--  -->
 		<view class="remark">
 			<view class="title">杩愮淮澶囨敞</view>
 			<view class="file_list">
-				<view class="file">
-					
+				<view class="file" v-for="item in info.multifileList">
+					<image v-if="item.type == 0" :src="item.fileurlFull" mode="widthFix"></image>
+					<video v-if="item.type == 1" :src="item.fileurlFull" :controls="false"></video>
 				</view>
 			</view>
-			<view class="desc">remark</view>
+			<view class="desc">{{info.content}}</view>
 		</view>
 	</view>
 </template>
 
-<script>
+<script>
+	import { ywDeviceDetail } from '@/api'
 	export default {
 		data() {
 			return {
-
+				id: '',
+				info: {}
 			};
+		},
+		onLoad(option) {
+			this.id = option.id
+			this.getDetail()
+		},
+		methods: {
+			getDetail() {
+				ywDeviceDetail(this.id).then(res => {
+					this.info = res.data
+				})
+			}
 		}
 	}
 </script>
@@ -81,6 +97,9 @@
 					margin-right: 0;
 				}
 			}
+			image,video{
+				width: 156rpx;
+			}
 		}
 		.desc{
 			margin-top: 8rpx;

--
Gitblit v1.9.3