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

---
 miniprogram/pages/question/question.wxml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/miniprogram/pages/question/question.wxml b/miniprogram/pages/question/question.wxml
index bd5c29a..6b20a82 100644
--- a/miniprogram/pages/question/question.wxml
+++ b/miniprogram/pages/question/question.wxml
@@ -1,8 +1,8 @@
 <view class="flex flex-col h-full bg-white">
   <view class="flex flex-col flex-auto px-5">
     <view class="justify-between flex flex-0 ">
-      <text class="font40 ywicon icon-liebiao cursor-pointer" bindtap="chatRoomListClick"></text>
-      <text class="font40 ywicon icon-jia cursor-pointer"></text>
+      <text class="font40 ywicon icon-liebiao " bindtap="chatRoomListClick"></text>
+      <text class="font40 ywicon icon-jia " bind:tap="newChatRoomClick"></text>
     </view>
     <view class="flex-auto flex flex-col overflow-y-auto">
       <view class="flex {{item.role===RoleEnum.user ? 'user':'assistant'}} {{index===0 ? 'mt-0':'mt-30'}}" wx:for="{{chatHistory}}" wx:key="index">
@@ -48,22 +48,22 @@
           <text class="font25 font-bold">183799|鍏嶈垂鐢ㄦ埛</text>
         </view>
         <view class="flex-items-center justify-between mt-20">
-          <van-button class="" color="#000000" custom-style="font-size:20rpx;height:50rpx" round size="small" icon="plus">鏂板缓鑱婂ぉ瀹�</van-button>
+          <van-button class="" color="#000000" custom-style="font-size:20rpx;height:50rpx" round size="small" icon="plus" bind:tap="newChatRoomClick">鏂板缓鑱婂ぉ瀹�</van-button>
         </view>
       </view>
       <view class="flex-auto px-15 pt-15 flex flex-col">
         <view class="flex-0 flex justify-between font19">
           <text class="text-gray-400 ">鍘嗗彶璁板綍</text>
-          <text class="text-blue-400 ">涓�閿竻绌烘墍鏈�</text>
+          <!-- <text class="text-blue-400">涓�閿竻绌烘墍鏈�</text> -->
         </view>
         <view class="flex-auto font25 overflow-y-auto my-20">
-          <view class="flex-items-center justify-between {{index===0 ? 'mt-0':'mt-24'}}" wx:for="{{displayChatRoom}}" wx:key="group_id" data-item="{{item}}" bindtap="chatRoomClick">
-            <view class="flex-auto flex-items-center" style="color:{{activeChatRoom.group_id===item.group_id ?'#35cfab':''}}">
+          <view class="flex-items-center justify-between {{index===0 ? 'mt-0':'mt-24'}}" wx:for="{{chatRoomList}}" wx:key="id" data-item="{{item}}" bindtap="chatRoomClick">
+            <view class="flex-auto flex-items-center" style="color:{{activeChatRoom.id===item.id ?'#35cfab':''}}">
               <text class="ywicon icon-xiaoxi1 mr-6"></text>
-              <text style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">"{{item.group_title}}</text>
+              <text style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">"{{item.title}}</text>
               <text>"</text>
             </view>
-            <text class="ywicon icon-shanchu ml-30" catchtap="delChatRoomClick"></text>
+            <text class="ywicon icon-shanchu ml-30" data-item="{{item}}" catchtap="delChatRoomClick"></text>
           </view>
         </view>
       </view>

--
Gitblit v1.9.3