Commit 866c9e98 by zujiaozhang

'医生端图文咨询添加结束咨询功能'

parent 4c51f0e3
...@@ -342,6 +342,7 @@ body { ...@@ -342,6 +342,7 @@ body {
color:#1D8AEF color:#1D8AEF
} }
.footer_tip{ .footer_tip{
display: none;
width:100%; width:100%;
height:0.76rem; height:0.76rem;
background:#E5E8F0; background:#E5E8F0;
......
...@@ -18,7 +18,6 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -18,7 +18,6 @@ define(['zepto', 'medtap'], function($, medtap) {
init: function() { init: function() {
main.getOrderDetail(); main.getOrderDetail();
main.bindEve(); main.bindEve();
var getTalk = setInterval(function() { var getTalk = setInterval(function() {
main.getTalkRecord(); main.getTalkRecord();
if(document.documentElement.scrollHeight > document.documentElement.clientHeight){ if(document.documentElement.scrollHeight > document.documentElement.clientHeight){
...@@ -73,7 +72,10 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -73,7 +72,10 @@ define(['zepto', 'medtap'], function($, medtap) {
$('.refer_btn').unbind().bind('click', function() { $('.refer_btn').unbind().bind('click', function() {
main.rejectOrder(); main.rejectOrder();
}); });
$('.close_consult').unbind().bind('click', function() {
$('.footer_tip').hide()
main.finishOrder()
});
}, },
getOrderDetail: function() { getOrderDetail: function() {
...@@ -90,6 +92,11 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -90,6 +92,11 @@ define(['zepto', 'medtap'], function($, medtap) {
$('.user_age').html(detail.imageConsultOrder.age + '岁' + ' ' + detail.imageConsultOrder.diseaseDiagnosisDesc) $('.user_age').html(detail.imageConsultOrder.age + '岁' + ' ' + detail.imageConsultOrder.diseaseDiagnosisDesc)
main.talkRelation(detail.clientId); main.talkRelation(detail.clientId);
var imgConsultDetail = detail.imageConsultOrder; //图文咨询详情 var imgConsultDetail = detail.imageConsultOrder; //图文咨询详情
if(imgConsultDetail.serviceStatus=='3'){
$('.footer_tip').show()
}else{
$('.footer_tip').hide()
}
main.userId = imgConsultDetail.clientId; main.userId = imgConsultDetail.clientId;
$('.patient_name').html(imgConsultDetail.patientName + ' (' + (imgConsultDetail.sex == 'M' ? '男 ' : '女 ') + $('.patient_name').html(imgConsultDetail.patientName + ' (' + (imgConsultDetail.sex == 'M' ? '男 ' : '女 ') +
imgConsultDetail.age + '岁' + ' ' + (imgConsultDetail.hasOwnProperty('areaItem') ? imgConsultDetail.areaItem imgConsultDetail.age + '岁' + ' ' + (imgConsultDetail.hasOwnProperty('areaItem') ? imgConsultDetail.areaItem
...@@ -247,6 +254,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -247,6 +254,7 @@ define(['zepto', 'medtap'], function($, medtap) {
orderSn: main.orderSn, orderSn: main.orderSn,
}, },
success: function(res) { success: function(res) {
console.log(res)
medtap.jzz(0); medtap.jzz(0);
var record = res.content.list; var record = res.content.list;
var html = ''; var html = '';
...@@ -383,6 +391,22 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -383,6 +391,22 @@ define(['zepto', 'medtap'], function($, medtap) {
} }
} }
}) })
},
// 完成订单
finishOrder:function(){
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/order/completeOrder',
type: 'post',
async: false,
headers: medtap.getHeaders(),
contentType: 'application/json',
data:
JSON.stringify({
orderSn: main.orderSn
}),
success: function(res) {
}
})
} }
} }
main.init(); main.init();
......
...@@ -89,10 +89,10 @@ ...@@ -89,10 +89,10 @@
</div> </div>
</div> </div>
<!-- <div class="footer_tip clearfix"> <div class="footer_tip clearfix">
<span class="footer_tip_desc">图文咨询服务中</span> <span class="footer_tip_desc">图文咨询服务中</span>
<span class="close_consult">结束咨询</span> <span class="close_consult">结束咨询</span>
</div> --> </div>
<div class="footer clearfix"> <div class="footer clearfix">
<div class="footer_input"> <div class="footer_input">
<input type="text" name="" id="sendMsg" value="" placeholder="输入新消息"/> <input type="text" name="" id="sendMsg" value="" placeholder="输入新消息"/>
......
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