From 57389606fac4fdc16e1fe79607e19843688d4345 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Wed, 8 May 2024 17:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=97=AE=E8=AF=8A=E5=8A=A0=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pages/yishi/wenzhen_v2/wenzhen.js | 46 +++++++++++++++++++------------ 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/Pages/yishi/wenzhen_v2/wenzhen.js b/Pages/yishi/wenzhen_v2/wenzhen.js index 74031c2..33fc29c 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.js +++ b/Pages/yishi/wenzhen_v2/wenzhen.js @@ -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){