Commit 5e46960a by liuquan

合并分支 'bug.server.v3.2.4.20210425.liuquan' 到 'XDJK-master'

bug.server.v3.2.4.20210425.liuquan

查看合并请求 !12
parents 6f3498d2 41c662e9
...@@ -657,7 +657,6 @@ Page({ ...@@ -657,7 +657,6 @@ Page({
/** /**
* 服务提前结束 0同意 1拒绝 * 服务提前结束 0同意 1拒绝
*/ */
endInquiry: function (e) { endInquiry: function (e) {
var alldata = wx.getStorageSync('data') var alldata = wx.getStorageSync('data')
let that = this; let that = this;
...@@ -690,26 +689,28 @@ Page({ ...@@ -690,26 +689,28 @@ Page({
unitid: that.data.doctorunitid unitid: that.data.doctorunitid
} }
Service.seeBuyStaus(data).then((res) => { Service.seeBuyStaus(data).then((res) => {
if (res.code == 1 && res.data.status == '1') { if (res.code == 1) {
switch (Number(res.data.status)) {
case 0:
that.setData({ that.setData({
payFlag: true, payFlag1: true,
payFlag1: false, end_time: '待接诊',
sendBtns: true, sendBtns: true,
end_time: res.data.end_time_stamp, status: true,
status: false,
serviceName: res.data.name serviceName: res.data.name
}) })
return; return;
} else if (res.code == 1 && res.data.status == "0") { case 1:
that.setData({ that.setData({
payFlag1: true, payFlag: true,
end_time: '待接诊', payFlag1: false,
sendBtns: true, sendBtns: true,
status: true, end_time: res.data.end_time_stamp,
status: false,
serviceName: res.data.name serviceName: res.data.name
}) })
return; return;
} else if (res.code == 1 && res.data.status == "2") { case 2:
that.setData({ that.setData({
payFlag: false, payFlag: false,
payFlag1: false, payFlag1: false,
...@@ -718,15 +719,22 @@ Page({ ...@@ -718,15 +719,22 @@ Page({
status: true, status: true,
serviceName: res.data.name serviceName: res.data.name
}) })
if( res.data.counsel=="20"){
that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid); that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid);
} else { }
return
default:
that.setData({ that.setData({
payFlag: false, payFlag: false,
end_time: '', end_time: '',
serviceName: '未知', serviceName: '未知',
}) })
if( res.data.counsel=="20"){
that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid); that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid);
} }
break;
}
}
}).catch(error => { }).catch(error => {
console.error("返回用户支付列表", error) console.error("返回用户支付列表", error)
}) })
...@@ -1131,7 +1139,6 @@ Page({ ...@@ -1131,7 +1139,6 @@ Page({
message.payload.data = message.payload.data.type; message.payload.data = message.payload.data.type;
} }
Arr.push(message); Arr.push(message);
that.setData({ that.setData({
unsentMessageList: that.data.unsentMessageList.concat(Arr), unsentMessageList: that.data.unsentMessageList.concat(Arr),
msgContent: '' msgContent: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment