优化
This commit is contained in:
@@ -78,6 +78,7 @@ Component({
|
||||
}
|
||||
},
|
||||
parseCustom(message) {
|
||||
|
||||
const { BUSINESS_ID_TEXT } = constant;
|
||||
const { GDXZ_CUSTOM_MSEEAGE } = constant;
|
||||
// 群消息解析
|
||||
@@ -149,7 +150,6 @@ Component({
|
||||
}
|
||||
// 6:处方开具成功
|
||||
if (customMessage.message_type === GDXZ_CUSTOM_MSEEAGE.PRESCRIBE) {
|
||||
console.log("处方");
|
||||
let data = customMessage.data;
|
||||
const renderDom = [{
|
||||
type: 'prescribe',
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<view class="gdxz_custom_message_desc">{{renderDom[0].desc}}</view>
|
||||
</view> -->
|
||||
<!-- 自定义评价样式 -->
|
||||
<view wx:if="{{renderDom[0].type==='order_evaluation'}}" class="gdxz_custom_order_evaluation_message" bindtap="showPop">
|
||||
<view wx:if="{{renderDom[0].type==='order_evaluation' && false}}" class="gdxz_custom_order_evaluation_message" bindtap="showPop">
|
||||
<view class="evaluation_title">请您对本次问诊服务进行评价</view>
|
||||
<view class="evaluation_ratebox">
|
||||
<van-rate disabled value="{{0}}" size="40rpx" gutter="46rpx" color="#ffd21e" void-icon="star" void-color="#e7e7e7" readonlygutter="20"/>
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
letter-spacing: 0;
|
||||
line-height: 40rpx;
|
||||
font-size: 28rpx;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
.message-body-span-image {
|
||||
display: inline-block;
|
||||
|
||||
@@ -305,12 +305,8 @@ Component({
|
||||
// 发送图片消息
|
||||
handleSendImageMessage(file) {
|
||||
|
||||
//获取最后一条消息
|
||||
let message_length = this.data.messageList.length;
|
||||
let last_message = {};
|
||||
if(message_length > 0){
|
||||
last_message = this.data.messageList[message_length - 1];
|
||||
}
|
||||
// 获取最后一条消息
|
||||
let last_message = this.data.conversation.lastMessage;
|
||||
console.log("last_message: ", last_message);
|
||||
let cloudCustomData = "";
|
||||
let cloudCustomDataJson = "";
|
||||
@@ -566,13 +562,9 @@ Component({
|
||||
ext2: wx.$chat_reportType,
|
||||
ext3: wx.$chat_SDKAppID,
|
||||
});
|
||||
|
||||
|
||||
//获取最后一条消息
|
||||
let message_length = this.data.messageList.length;
|
||||
let last_message = {};
|
||||
if(message_length > 0){
|
||||
last_message = this.data.messageList[message_length - 1];
|
||||
}
|
||||
let last_message = this.data.conversation.lastMessage;
|
||||
console.log("last_message: ", last_message);
|
||||
let cloudCustomData = "";
|
||||
let cloudCustomDataJson = "";
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
<t-dialog
|
||||
visible="{{ dialog_visible }}"
|
||||
title="温馨提示"
|
||||
content="请您先多点执业认证"
|
||||
content="在线开处方需先进行多点执业认证"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
|
||||
取消
|
||||
|
||||
@@ -495,6 +495,7 @@ Component({
|
||||
},
|
||||
// 消息跳转到最新
|
||||
handleJumpNewMessage() {
|
||||
console.log("handleJumpNewMessage")
|
||||
this.setData({
|
||||
jumpAim: `ID-${this.filterSystemMessageID(this.data.messageList[this.data.messageList.length - 1].ID)}`,
|
||||
showDownJump: false,
|
||||
@@ -503,6 +504,7 @@ Component({
|
||||
},
|
||||
// 消息跳转到最近未读
|
||||
handleJumpUnreadMessage() {
|
||||
console.log("handleJumpUnreadMessage")
|
||||
if (this.data.unreadCount > 15) {
|
||||
this.getMessageList(this.data.conversation);
|
||||
this.setData({
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<t-dialog
|
||||
visible="{{ dialog_visible }}"
|
||||
title="温馨提示"
|
||||
content="确定要结束问诊么?"
|
||||
content="您确定要结束本次问诊吗?"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
|
||||
取消
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex: 2;
|
||||
flex: 3;
|
||||
}
|
||||
.right{
|
||||
flex: 1;
|
||||
@@ -159,13 +159,11 @@
|
||||
.name{
|
||||
font-size: 34rpx;
|
||||
color: #3CC7C0;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.age{
|
||||
font-size: 34rpx;
|
||||
color: #666666;
|
||||
flex: 1;
|
||||
}
|
||||
.status{
|
||||
background: #FFF2E8;
|
||||
|
||||
Reference in New Issue
Block a user