去问诊加锁
This commit is contained in:
parent
f947b62c50
commit
57389606fa
@ -20,6 +20,7 @@ Page({
|
||||
data_list_6: [],//问诊结束
|
||||
data_list_6_loading: false,
|
||||
conversationList: [],
|
||||
isLock:false,
|
||||
message_inquiry_type: 99999,
|
||||
now_message_inquiry_type: 6,
|
||||
system_notice_unreadnnum: "",
|
||||
@ -100,7 +101,8 @@ Page({
|
||||
}
|
||||
//避免onshow加载多次
|
||||
this.setData({
|
||||
hasOnShow: true
|
||||
hasOnShow: true,
|
||||
isLock:true
|
||||
})
|
||||
|
||||
|
||||
@ -470,25 +472,33 @@ Page({
|
||||
}
|
||||
|
||||
app.go(url);
|
||||
this.setData({
|
||||
isLock: true
|
||||
})
|
||||
},
|
||||
postDoctorInquiry(e){
|
||||
this.setData({
|
||||
show: false
|
||||
})
|
||||
// console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
|
||||
let params = {};
|
||||
params.order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
// console.log("params: ",params)
|
||||
api.postDoctorInquiry(params).then(response => {
|
||||
// console.log("开始接诊");
|
||||
// console.log(response);
|
||||
}).then(() => {
|
||||
console.log(e)
|
||||
console.log("gochat")
|
||||
this.goChat(e);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
let {isLock}=this.data;
|
||||
if(!isLock){
|
||||
this.setData({
|
||||
show: false,
|
||||
isLock:true
|
||||
})
|
||||
// console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
|
||||
let params = {};
|
||||
params.order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
// console.log("params: ",params)
|
||||
api.postDoctorInquiry(params).then(response => {
|
||||
// console.log("开始接诊");
|
||||
// console.log(response);
|
||||
}).then(() => {
|
||||
console.log(e)
|
||||
console.log("gochat")
|
||||
this.goChat(e);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//获取上方角标
|
||||
getDoctorMessageNotice(e){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user