添加聊天页面的来源,处理带接诊的问题

This commit is contained in:
zoujiandong
2023-09-01 13:46:37 +08:00
parent c5cf4c67eb
commit 68d817d135
13 changed files with 833 additions and 35 deletions
+9 -11
View File
@@ -26,9 +26,9 @@ Page({
this.getList();
},
onTabsChange(e) {
console.log(e);
// console.log(e);
let list_name = "chufang_list_" + e.detail.value;
console.log(list_name)
//console.log(list_name)
this.setData({
prescription_status: e.detail.value,
current_page: 0,
@@ -64,10 +64,10 @@ Page({
params.pharmacist_audit_status = this.data.prescription_status;//处方审核状态(0:审核中 2:审核驳回)
params.page = this.data.current_page + 1;
api.getDoctorPrescription(params).then(response => {
console.log(response);
//console.log(response);
if(response.data.total > 0){
let list_name = "chufang_list_" + this.data.prescription_status;
console.log(list_name);
//console.log(list_name);
let apprise_list = this.data[list_name];
this.setData({
[list_name]: apprise_list.concat(response.data.data),
@@ -81,25 +81,23 @@ Page({
},
go(e){
let url = e.currentTarget.dataset.url;
console.log(url);
//console.log(url);
app.go(url);
},
handlegetLastInquiry(patient_id,doctor_id,order_inquiry_id){
api. getLastInquiry({
api.getLastInquiry({
patient_id:patient_id,
doctor_id:doctor_id
}).then(data=>{
let result=data.data;
let url='';
if(result.data){
url = "/Pages/yishi/chat/index?order_inquiry_id="+result.data;
if(result){
url = "/Pages/yishi/chat/index?order_inquiry_id="+result+"&from=prescription";
}else{
url = "/Pages/yishi/chat/index?order_inquiry_id="+order_inquiry_id;
url = "/Pages/yishi/chat/index?order_inquiry_id="+order_inquiry_id+"&from=prescription";
}
app.go(url);
console.log(result);
})
},
gochat(e){