优化细节
This commit is contained in:
@@ -127,7 +127,8 @@ line-height: 42rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100vw;
|
||||
width: calc(100vw - 40rpx);
|
||||
text-align: center;
|
||||
}
|
||||
.gdxz_custom_message_title{
|
||||
flex: 1;
|
||||
|
||||
@@ -833,7 +833,7 @@ Component({
|
||||
displayServiceEvaluation: true,
|
||||
});
|
||||
},
|
||||
|
||||
//常用语
|
||||
showChangYongYu(){
|
||||
app.go("/Pages/yishi/quickreply/index?from=chat")
|
||||
},
|
||||
|
||||
@@ -186,10 +186,11 @@ Component({
|
||||
}
|
||||
},
|
||||
checkShowAvatar(message){
|
||||
|
||||
console.log("checkShowAvatar ");
|
||||
let type = message.type;
|
||||
console.log("message type: ", type);
|
||||
let show_avatar = true;
|
||||
if(type == "TIMCustomElem"){
|
||||
if(type === "TIMCustomElem"){
|
||||
const customMessage = JSON.parse(message.payload.data);
|
||||
if(customMessage.message_type != GDXZ_CUSTOM_MSEEAGE.PRESCRIBE){
|
||||
show_avatar = false;
|
||||
@@ -273,6 +274,8 @@ Component({
|
||||
showNewMessageCount: this.data.showNewMessageCount,
|
||||
showDownJump: true,
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
@@ -310,10 +313,13 @@ Component({
|
||||
groupOptionsNumber: this.data.messageList.slice(-1)[0].payload.operationType,
|
||||
});
|
||||
}
|
||||
|
||||
//主动跳到 消息跳转到最新
|
||||
// this.handleJumpNewMessage()
|
||||
},
|
||||
// 自己的消息上屏
|
||||
updateMessageList(message) {
|
||||
|
||||
console.log("自己的消息上屏 updateMessageList: ", message);
|
||||
//自己的消息有头像
|
||||
message.show_avatar = this.checkShowAvatar(message);
|
||||
if (message.conversationID !== this.data.conversation.conversationID) return;
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<view wx:if="{{showDownJump}}" bindtap="handleJumpNewMessage">
|
||||
<view class="new-message-item" >
|
||||
<view class="new-message-box">
|
||||
<image class="icon-left" src="../../../static/assets/down.svg"/>
|
||||
<image class="icon-left" src="../../../../static/assets/down.svg"/>
|
||||
<text>{{showNewMessageCount.length}}条新消息</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
.t-message{
|
||||
position: relative;
|
||||
z-index: -9;
|
||||
width: calc(100vw - 20rpx);
|
||||
padding: 0 10rpx;
|
||||
width: calc(100vw - 40rpx);
|
||||
padding: 10rpx 20rpx 20rpx 20rpx;
|
||||
}
|
||||
.t-recieve-message {
|
||||
display: flex;
|
||||
|
||||
@@ -103,6 +103,17 @@ Component({
|
||||
ready() {
|
||||
//修改为组件传值
|
||||
// this.getInquiryMessageBasic()
|
||||
console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
||||
let pages = getCurrentPages();
|
||||
console.log("pages:", pages)
|
||||
console.log("pages.length:", pages.length)
|
||||
console.log("pages:", pages[0])
|
||||
if(pages.length == 1){
|
||||
console.log("navbarData.showCapsule");
|
||||
this.setData({
|
||||
"navbarData.showCapsule": 3
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user