优化
This commit is contained in:
parent
4f14aad6f3
commit
596229d478
@ -13,7 +13,7 @@
|
||||
<view class="top">
|
||||
<view class="name">{{item.name_mask}}</view>
|
||||
<view class="start">
|
||||
<t-rate value="{{item.avg_score}}" count="{{item.avg_score}}" color="#ED9C00"/>
|
||||
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">{{item.content}}</view>
|
||||
@ -29,7 +29,7 @@
|
||||
<view class="top">
|
||||
<view class="name">{{item.name_mask}}</view>
|
||||
<view class="start">
|
||||
<t-rate value="{{item.avg_score}}" count="{{item.avg_score}}" color="#ED9C00"/>
|
||||
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">{{item.content}}</view>
|
||||
@ -45,7 +45,7 @@
|
||||
<view class="top">
|
||||
<view class="name">{{item.name_mask}}</view>
|
||||
<view class="start">
|
||||
<t-rate value="{{item.avg_score}}" count="{{item.avg_score}}" color="#ED9C00"/>
|
||||
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">{{item.content}}</view>
|
||||
|
||||
@ -67,8 +67,8 @@ Page({
|
||||
console.log(response);
|
||||
if(response.data){
|
||||
this.setData({
|
||||
realname:response.data.card_name,
|
||||
idcard:response.data.card_num
|
||||
realname:response.data.card_name_mask,
|
||||
idcard:response.data.card_num_mask
|
||||
});
|
||||
}
|
||||
}).catch(errors => {
|
||||
|
||||
@ -62,8 +62,8 @@ Page({
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
realname:response.data.card_name,
|
||||
idcard:response.data.card_num,
|
||||
realname:response.data.card_name_mask,
|
||||
idcard:response.data.card_num_mask,
|
||||
next_btn_txt: "已认证,不可修改",
|
||||
next_btn_disabled: true,
|
||||
panel_2_disabled: false,
|
||||
|
||||
@ -218,8 +218,25 @@ page{
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
position: relative;
|
||||
}
|
||||
.dialog_cancel_btn::before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-top: 2px solid var(--td-border-color, #e7e7e7);
|
||||
border-right: 2px solid var(--td-border-color, #e7e7e7);
|
||||
transform: scale(0.5);
|
||||
transform-origin: 0 0;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
border-radius: 0;
|
||||
border-top-left-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
@ -228,3 +245,8 @@ page{
|
||||
.t-button__content{
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.t-dialog__button--text:before {
|
||||
border-top: 2px solid #E9E9E9 !important;
|
||||
border-left: 2px solid var(--td-border-color, #E9E9E9);
|
||||
border-top-color: #E9E9E9 !important;
|
||||
}
|
||||
@ -5,7 +5,7 @@
|
||||
<view class="item_top">
|
||||
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 1}}">
|
||||
<text style="margin-left: 10rpx;">在线问诊</text>
|
||||
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/online.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 2}}">
|
||||
<text style="margin-left: 10rpx;">快速问诊</text>
|
||||
|
||||
@ -247,6 +247,7 @@ Component({
|
||||
ext2: wx.$chat_reportType,
|
||||
ext3: wx.$chat_SDKAppID,
|
||||
});
|
||||
|
||||
let targetFlag = 'extension';
|
||||
if (this.data.displayFlag === 'extension') {
|
||||
targetFlag = '';
|
||||
@ -305,6 +306,21 @@ Component({
|
||||
// 发送图片消息
|
||||
handleSendImageMessage(file) {
|
||||
|
||||
let _this = this;
|
||||
let conversationID = this.data.conversation.conversationID
|
||||
let promise = wx.$TUIKit.getConversationProfile(conversationID);
|
||||
promise.then(function(imResponse) {
|
||||
console.log("getConversationProfile 正在执行")
|
||||
// 获取成功
|
||||
console.log(imResponse.data.conversation); // 会话资料
|
||||
_this.setData({
|
||||
conversation: imResponse.data.conversation
|
||||
})
|
||||
}).catch(function(imError) {
|
||||
console.warn('getConversationProfile error:', imError); // 获取会话资料失败的相关信息
|
||||
});
|
||||
|
||||
Promise.all([promise]).then(res => {
|
||||
// 获取最后一条消息
|
||||
let last_message = this.data.conversation.lastMessage;
|
||||
console.log("last_message: ", last_message);
|
||||
@ -346,6 +362,7 @@ Component({
|
||||
},
|
||||
});
|
||||
this.$sendTIMMessage(message);
|
||||
})
|
||||
},
|
||||
|
||||
// 发送视频消息
|
||||
@ -562,7 +579,22 @@ Component({
|
||||
ext2: wx.$chat_reportType,
|
||||
ext3: wx.$chat_SDKAppID,
|
||||
});
|
||||
let _this = this;
|
||||
let conversationID = this.data.conversation.conversationID
|
||||
let promise = wx.$TUIKit.getConversationProfile(conversationID);
|
||||
promise.then(function(imResponse) {
|
||||
console.log("getConversationProfile 正在执行")
|
||||
// 获取成功
|
||||
console.log(imResponse.data.conversation); // 会话资料
|
||||
_this.setData({
|
||||
conversation: imResponse.data.conversation
|
||||
})
|
||||
}).catch(function(imError) {
|
||||
console.warn('getConversationProfile error:', imError); // 获取会话资料失败的相关信息
|
||||
});
|
||||
|
||||
Promise.all([promise]).then(res => {
|
||||
console.log("getConversationProfile 执行完毕")
|
||||
//获取最后一条消息
|
||||
let last_message = this.data.conversation.lastMessage;
|
||||
console.log("last_message: ", last_message);
|
||||
@ -611,6 +643,7 @@ Component({
|
||||
sendMessageBtn: false,
|
||||
});
|
||||
this.$sendTIMMessage(message);
|
||||
})
|
||||
},
|
||||
|
||||
// 监听输入框value值变化
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<image class="TUI-icon" bindtap="switchAudio" wx:if="{{has_audio}}"
|
||||
src="{{isAudio ? '../../../../static/assets/keyboard.svg' : '../../../../static/assets/audio.svg'}}" />
|
||||
<view wx:if="{{!isAudio || isEmoji}}" class="TUI-message-input-main {{ focus && 'TUI-message-input-main-focus'}}" >
|
||||
<textarea class="TUI-message-input-area" adjust-position="{{false}}" cursor-spacing="20"
|
||||
<textarea id="mytextarea" class="TUI-message-input-area" adjust-position="{{false}}" cursor-spacing="20"
|
||||
value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}"
|
||||
placeholder="请输入文字" placeholder-class="input-placeholder" confirm-type="send" show-confirm-bar="{{false}}"
|
||||
bindfocus="inputBindFocus"
|
||||
|
||||
@ -342,7 +342,11 @@ Component({
|
||||
|
||||
let jumpAim = `ID-${this.filterSystemMessageID(this.data.messageList[this.data.messageList.length - 1].ID)}`;
|
||||
console.log("jumpAim:", jumpAim);
|
||||
if(autoToButtom){
|
||||
|
||||
console.log("message.from: ", message.from)
|
||||
console.log("conversation: ", this.data.conversation)
|
||||
console.log("conversation: ", this.data.conversation.lastMessage.from)
|
||||
if(autoToButtom && message.conversationID === this.data.conversation.conversationID){
|
||||
this.setData({
|
||||
jumpAim: jumpAim
|
||||
})
|
||||
|
||||
@ -131,7 +131,7 @@ Component({
|
||||
},
|
||||
navbar_height: 0,
|
||||
dialog_visible: false,
|
||||
|
||||
KeysBoardsStatus: "down"
|
||||
},
|
||||
|
||||
/**
|
||||
@ -275,6 +275,7 @@ Component({
|
||||
myhandleExtensions(e){
|
||||
console.log("myhandleExtensionsmyhandleExtensions: ", e);
|
||||
let displayFlag = e.detail.displayFlag;
|
||||
setTimeout(() => {
|
||||
if(displayFlag){
|
||||
this.setData({
|
||||
input_area_style: "position: absolute; bottom: 30px;"
|
||||
@ -287,27 +288,35 @@ Component({
|
||||
})
|
||||
this.getNavbarHeight();
|
||||
}
|
||||
|
||||
}, 10);
|
||||
},
|
||||
// 监听键盘,获取焦点时将输入框推到键盘上方
|
||||
pullKeysBoards(event) {
|
||||
console.log("pullKeysBoardspullKeysBoards")
|
||||
setNewInputStyle(event.detail.event.detail.height);
|
||||
this.getNavbarHeight();
|
||||
this.setData({
|
||||
'viewData.style': newInputStyle,
|
||||
input_area_style: "position: absolute; bottom: 45rpx;"
|
||||
input_area_style: "position: absolute; bottom: 45rpx;",
|
||||
KeysBoardsStatus: "pull"
|
||||
});
|
||||
},
|
||||
// 监听键盘,失去焦点时收起键盘
|
||||
downKeysBoards(event) {
|
||||
console.log("downKeysBoardsdownKeysBoards")
|
||||
console.log(event)
|
||||
let value = event.detail.event.detail.value;
|
||||
if(value){
|
||||
this.setData({
|
||||
'viewData.style': inputStyle,
|
||||
KeysBoardsStatus: "down"
|
||||
});
|
||||
}else{
|
||||
this.setData({
|
||||
'viewData.style': inputStyle,
|
||||
input_area_style: ""
|
||||
input_area_style: "",
|
||||
KeysBoardsStatus: "down"
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@ -641,7 +641,7 @@ class API extends HTTP {
|
||||
let order_inquiry_id = params.order_inquiry_id;
|
||||
params = {}
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/inquiry/finish/`+order_inquiry_id,
|
||||
url: `${this.baseUrl}/inquiry/finish/`+order_inquiry_id,
|
||||
method: 'PUT',
|
||||
data: {
|
||||
...params
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user