Commit 41c662e9 by liuquan

no message

parent ab36d678
......@@ -657,7 +657,6 @@ Page({
/**
* 服务提前结束 0同意 1拒绝
*/
endInquiry: function (e) {
var alldata = wx.getStorageSync('data')
let that = this;
......@@ -690,26 +689,28 @@ Page({
unitid: that.data.doctorunitid
}
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({
payFlag: true,
payFlag1: false,
payFlag1: true,
end_time: '待接诊',
sendBtns: true,
end_time: res.data.end_time_stamp,
status: false,
status: true,
serviceName: res.data.name
})
return;
} else if (res.code == 1 && res.data.status == "0") {
case 1:
that.setData({
payFlag1: true,
end_time: '待接诊',
payFlag: true,
payFlag1: false,
sendBtns: true,
status: true,
end_time: res.data.end_time_stamp,
status: false,
serviceName: res.data.name
})
return;
} else if (res.code == 1 && res.data.status == "2") {
case 2:
that.setData({
payFlag: false,
payFlag1: false,
......@@ -718,15 +719,22 @@ Page({
status: true,
serviceName: res.data.name
})
if( res.data.counsel=="20"){
that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid);
} else {
}
return
default:
that.setData({
payFlag: false,
end_time: '',
serviceName: '未知',
})
if( res.data.counsel=="20"){
that.getFreeChat(that.data.t_unionid, wx.getStorageSync('data').unionid);
}
break;
}
}
}).catch(error => {
console.error("返回用户支付列表", error)
})
......@@ -1131,7 +1139,6 @@ Page({
message.payload.data = message.payload.data.type;
}
Arr.push(message);
that.setData({
unsentMessageList: that.data.unsentMessageList.concat(Arr),
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