优化页面

This commit is contained in:
haomingming
2023-03-17 10:13:35 +08:00
parent dea1555b9b
commit 589c2cf823
81 changed files with 894 additions and 524 deletions
@@ -20,6 +20,10 @@ Component({
type: String,
value: {},
},
inquiry_type: {
type: String,
value: {},
},
hasCallKit: {
type: Boolean,
value: false,
@@ -493,8 +497,8 @@ Component({
text,
},
cloudCustomData: JSON.stringify({
order_inquiry_id: "AA",
inquiry_type: "BB",
order_inquiry_id: this.data.order_inquiry_id,
inquiry_type: this.data.inquiry_type,
message_type: 0,
is_system: 0
}),
@@ -147,8 +147,19 @@ Component({
nextReqMessageID: this.data.nextReqMessageID,
count: 15,
}).then((res) => {
this.showMoreHistoryMessageTime(res.data.messageList);
const { messageList } = res.data; // 消息列表。
let HMM_data = res.data;//HMM
let HMM_messageList_del = [];
console.log("HMM getMessageList: ", HMM_data);
let HMM_messageList = HMM_data.messageList;
HMM_messageList.forEach(item => {
let HMM_type = item.type;
if(HMM_type == "TIMCustomElem") return;
HMM_messageList_del.push(item);
})
HMM_data.messageList = HMM_messageList_del;
this.showMoreHistoryMessageTime(HMM_messageList_del);
const { messageList } = HMM_data; // 消息列表。
this.data.nextReqMessageID = res.data.nextReqMessageID; // 用于续拉,分页续拉时需传入该字段。
this.data.isCompleted = res.data.isCompleted; // 表示是否已经拉完所有消息。
this.data.messageList = [...messageList, ...this.data.messageList];
+4
View File
@@ -35,6 +35,10 @@ Component({
type: String,
value: ''
},
inquiry_type: {
type: String,
value: ''
},
unreadCount: {
type: Number,
value: '',
+2 -2
View File
@@ -4,7 +4,7 @@
<image class="tui-navigatorbar-back" bindtap="goBack" src="../../static/assets/ic_back_white.svg" />
<view class="conversation-title">{{conversationName}}</view>
</view>
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}} ">
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}} ">
<view wx:if="{{showTips}}" class="safetytips-box">
<!-- <view class="safetytips">
<text>【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款等信息,勿轻易拨打陌生电话,谨防上当受骗。</text>
@@ -20,7 +20,7 @@
</view>
<view class="input-area">
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
<MessageInput id="MessageInput" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
<MessageInput id="MessageInput" inquiry_type="{{inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
bind:handleCall="handleCall" ></MessageInput>
</view>
</view>