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/summaryWrapper.wxml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/miniprogram/components/chat-components/summary/summaryWrapper.wxml b/miniprogram/components/chat-components/summary/summaryWrapper.wxml
index a7823c8..9f2b3d8 100644
--- a/miniprogram/components/chat-components/summary/summaryWrapper.wxml
+++ b/miniprogram/components/chat-components/summary/summaryWrapper.wxml
@@ -1,7 +1,10 @@
 <!--components/chat-components/summary/summaryWrapper.wxml-->
 <view>
-  <view wx:for="{{testData}}" :key="id" class="{{index===0 ? 'mt-0':'mt-30'}}">
+  <view wx:for="{{summaryList}}" wx:key="id" class="{{index===0 ? 'mt-0':'mt-30'}}">
     <summary wx:if="{{item.type===SummaryAnswerType.Summary}}" originData="{{originData}}" summaryIndex="{{index}}" data="{{item}}"></summary>
     <recordset wx:elif="{{item.type===SummaryAnswerType.RecordSet}}" originData="{{originData}}" summaryIndex="{{index}}" data="{{item}}" canvasId ="{{'recordset-'+index}}" canvasDomId ="{{'recordset-'+index+'-dom'}}"></recordset>
+    <recordsetTable wx:elif="{{item.type===SummaryAnswerType.RecordSetTable}}" data="{{item}}"></recordsetTable>
+    <deviceLastValue wx:elif="{{item.type===SummaryAnswerType.DeviceLastValue}}" data="{{item}}"></deviceLastValue>
+    <webUrl wx:elif="{{item.type===SummaryAnswerType.Url}}" data="{{item}}"></webUrl>
   </view>
 </view>
\ No newline at end of file

--
Gitblit v1.9.3