Преглед на файлове

消息页面客服显示

chenjj преди 3 месеца
родител
ревизия
5bf1a2c83d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      pages/chat.vue

+ 3 - 1
pages/chat.vue

@@ -43,7 +43,9 @@
                                     <img src="/static/serverImg/mine/user.png" alt="" class="chat-img" v-else />
                                     <view class="chat-box">
                                         <view class="chat-top">
-                                            <text class="chat-name">{{ item.conversationType === '1' ? '系统消息' :
+                                            <text class="chat-name">{{['1','3'].includes(item.conversationType) ? 
+                                           item.conversationType ==='1'?'系统消息' :'客服'
+                                            :
                                                 type ? item.volunteerName : item.userName }}</text>
                                             <text class="chat-time">{{ handlerData(item.newestMsgTime ||
                                                 item.createTime) }}</text>