3.22医生
This commit is contained in:
@@ -255,7 +255,7 @@ page{
|
||||
}
|
||||
.introicon{
|
||||
top:2rpx;
|
||||
left:50rpx;
|
||||
right:-2rpx;
|
||||
width:32rpx;
|
||||
height:32rpx;
|
||||
display: flex;
|
||||
|
||||
@@ -117,7 +117,10 @@ Page({
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().stopInterval()
|
||||
}
|
||||
clearInterval(this.data.unreadnnum_inter)
|
||||
if(this.data.unreadnnum_inter){
|
||||
clearInterval(this.data.unreadnnum_inter);
|
||||
}
|
||||
|
||||
this.setData({
|
||||
hasOnShow: false,
|
||||
data_list_1: [],
|
||||
@@ -177,7 +180,9 @@ Page({
|
||||
})
|
||||
let url = e.currentTarget.dataset.url;
|
||||
let name = e.currentTarget.dataset.name;
|
||||
wx.setStorageSync(name, 0);
|
||||
if(name){
|
||||
wx.setStorageSync(name, 0);
|
||||
}
|
||||
app.go(url);
|
||||
},
|
||||
$onMessageReceived(value) {
|
||||
@@ -188,7 +193,7 @@ Page({
|
||||
formatStatus(){
|
||||
let order_inquiry_id_list = [];
|
||||
order_inquiry_id_list.push("");//初始化一个,防止失败
|
||||
console.log(this.data.conversationList.length)
|
||||
console.log(this.data.conversationList)
|
||||
let arr=this.data.conversationList.filter(item => item.conversationID != 'C2Cadministrator');
|
||||
|
||||
arr.forEach(item => {
|
||||
@@ -223,7 +228,8 @@ Page({
|
||||
}else{
|
||||
order_inquiry_ids+=item
|
||||
}
|
||||
})
|
||||
});
|
||||
//console.log(order_inquiry_ids)
|
||||
api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_ids}).then(response => {
|
||||
let new_conversationList = [];
|
||||
if(response.data.length > 0){
|
||||
@@ -261,12 +267,12 @@ Page({
|
||||
new_conversationList.push(item);
|
||||
})
|
||||
};
|
||||
console.log(new_conversationList);
|
||||
//console.log(new_conversationList);
|
||||
this.setData({
|
||||
conversationList: new_conversationList
|
||||
})
|
||||
}).then(() => {
|
||||
console.log("开始格式化formatConversationList")
|
||||
//console.log("开始格式化formatConversationList")
|
||||
this.formatConversationList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
@@ -290,7 +296,7 @@ Page({
|
||||
let userID = wx.getStorageSync('user_id_'+usertype);
|
||||
let totalUnreadCount = 0;
|
||||
let message_inquiry_type = this.data.message_inquiry_type;
|
||||
console.log(this.data.conversationList);
|
||||
//console.log(this.data.conversationList);
|
||||
this.data.conversationList.forEach(item => {
|
||||
let conversationID = item.conversationID;
|
||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||
@@ -411,7 +417,6 @@ Page({
|
||||
this.setData({
|
||||
show: false
|
||||
})
|
||||
console.log(111);
|
||||
// console.log("开始订阅消息");
|
||||
// wx.requestSubscribeMessage({
|
||||
// tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||
@@ -450,6 +455,8 @@ Page({
|
||||
// console.log("开始接诊");
|
||||
// console.log(response);
|
||||
}).then(() => {
|
||||
console.log(e)
|
||||
console.log("gochat")
|
||||
this.goChat(e);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
|
||||
@@ -232,6 +232,6 @@
|
||||
content="为保障服务质量,请您查看患者病历后再去接诊"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="go" data-from_account="{{show_dialog_from_account}}" data-url="/user/pages/yishi/case/index?order_inquiry_id={{show_dialog_order_inquiry_id}}" >去查看</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="postDoctorInquiry" data-from_account="{{show_dialog_from_account}}" data-inquiry_type="{{show_dialog_inquiry_type}}" data-order_inquiry_id="{{show_dialog_order_inquiry_id}}" data-url="/TUIChatKit/pages/index" >去接诊</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="postDoctorInquiry" data-from_account="{{show_dialog_from_account}}" data-inquiry_type="{{show_dialog_inquiry_type}}" data-order_inquiry_id="{{show_dialog_order_inquiry_id}}" data-url="/TUIChatService/pages/index" >去接诊</view>
|
||||
</t-dialog>
|
||||
</view>
|
||||
Reference in New Issue
Block a user