12345678910111213141516171819202122232425262728293031323334353637383940 |
- var service = {
- hasUnfinishedConsult: function(doctor, callBack){
- sendPost("doctor/consult/hasUnfinished",
- {doctorCode: doctor}, null, function(res){
- if(res.status==200){
- if(callBack) callBack(res);
- } else {
- mui.toast("程序开了点小差, 请稍后重试!");
- }
- })
- },
- isConsultFinished: function(consult, callBack){
- sendPost("doctor/consult/isConsultFinished",
- {consult: consult}, function(res){
- if(res=="timeout"){//超时
- if(callBack) callBack(res);
- }
- }, function(res){
- if(res.status==200){
- if(callBack) callBack(res);
- } else {
- mui.toast("程序开了点小差, 请稍后重试!");
- }
- },undefined,10000)
- },
-
- //添加快捷回复
- replyAdd: function(content, callBack){
- sendPost("doctor/reply/add",
- {content: content}, null, function(res){
- if(res.status==200){
- callBack? callBack(res) : mui.toast("添加成功!");
- } else {
- mui.toast("添加失败!");
- }
- })
- }
- }
-
|