From a689b45a6f80460f9891cc5a346036a7e4c4c0b5 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 08 八月 2024 18:00:20 +0800
Subject: [PATCH] 支持除地图意外得其他回答,对接聊天室接口

---
 miniprogram/components/chat-components/summary/deviceLastValue/deviceLastValue.wxml |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/miniprogram/components/chat-components/summary/deviceLastValue/deviceLastValue.wxml b/miniprogram/components/chat-components/summary/deviceLastValue/deviceLastValue.wxml
index b026ebd..c550a72 100644
--- a/miniprogram/components/chat-components/summary/deviceLastValue/deviceLastValue.wxml
+++ b/miniprogram/components/chat-components/summary/deviceLastValue/deviceLastValue.wxml
@@ -1,2 +1,27 @@
-<!--components/chat-components/summary/deviceLastValue/deviceLastValue.wxml-->
-<text>components/chat-components/summary/deviceLastValue/deviceLastValue.wxml</text>
\ No newline at end of file
+<view >
+  <view class="font-bold w-full" style="text-align: center;line-height: 17rpx;">
+    <text>
+      {{data.title}}
+    </text>
+  </view>
+  <view class="mt-22" style="max-height: 500rpx;overflow-y:auto;">
+    <van-collapse value="{{ activeNames }}" bind:change="onChange">
+      <van-collapse-item content-class="padding-0" title="{{item.OTITLE}}" wx:for="{{data.values}}" wx:key="ONAME">
+        <view>
+          <view class="flex-items-center justify-between pb-18" style="border-top:{{subIndex===0 ? '0':'2rpx' }} solid gray" wx:for-item="subItem" wx:for-index="subIndex" wx:for="{{data.rows}}" wx:key="id">
+            <text style="line-height: 30rpx;">
+              {{subItem.title}}
+            </text>
+
+            <text class="w-120" style="line-height: 30rpx;">
+              {{item[subItem.id]}}
+            </text>
+          </view>
+        </view>
+
+      </van-collapse-item>
+
+    </van-collapse>
+  </view>
+
+</view>
\ No newline at end of file

--
Gitblit v1.9.3