...
|
...
|
@@ -128,14 +128,14 @@ |
|
|
<div class="tab_content_box info_item question_yes">
|
|
|
<div class="tab_info inquiry_content title">
|
|
|
<text>提问</text>
|
|
|
<text class="iconfont icon-huatong voice_btn"></text>
|
|
|
<text class="iconfont icon-huatong voice_btn voice_btn1"></text>
|
|
|
<text class="iconfont icon-tianxie"></text>
|
|
|
</div>
|
|
|
<div class="textarea_content">
|
|
|
<textarea class="area" type="text" placeholder="请输入" maxlength="1000"></textarea>
|
|
|
<textarea class="area textarea1" type="text" placeholder="请输入" maxlength="1000"></textarea>
|
|
|
<p class="text_num num_box"><span class="text-count">0</span>/1000</p>
|
|
|
</div>
|
|
|
<div class="voice_module agree_box" video-id="1">
|
|
|
<div id="voice_module1" class="voice_module agree_box" video-id="1">
|
|
|
<div class="voice_list" voiceitemid="1">
|
|
|
<div class="voice_box voice_third">
|
|
|
<div class="voice_item">
|
...
|
...
|
@@ -160,6 +160,59 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<notempty name="info.reply">
|
|
|
<!--专家提问显示内容-->
|
|
|
<div class="tab_content_box">
|
|
|
<div class="tab_info">
|
|
|
<text>专家提问</text>
|
|
|
</div>
|
|
|
<div class="user_info_box">
|
|
|
<eq name="info.reply.type" value="1">
|
|
|
<div class="voice_box" >
|
|
|
<foreach name="info.reply.dir" item="item">
|
|
|
<div class="voice_item">
|
|
|
<text class="iconfont icon-luyin voice_icon voice_play" data-url="{$item}"></text>
|
|
|
<text class="iconfont icon-luying_ongoing voice_icon voice_puse"></text>
|
|
|
<text class="voice_font">点击图标开始播放</text>
|
|
|
</div>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<else/>
|
|
|
<div class="tab_textarea">
|
|
|
<textarea readonly>{$info.reply.content}</textarea>
|
|
|
</div>
|
|
|
</eq>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--回复专家的内容-->
|
|
|
<div class="tab_content_box">
|
|
|
<div class="tab_info">
|
|
|
<text>回答</text>
|
|
|
</div>
|
|
|
<div class="user_info_box">
|
|
|
<notempty name="info.problem_again">
|
|
|
<eq name="info.problem_again.type" value="1">
|
|
|
<div class="voice_box" >
|
|
|
<foreach name="info.problem_again.dir" item="item">
|
|
|
<div class="voice_item">
|
|
|
<text class="iconfont icon-luyin voice_icon voice_play" data-url="{$item}"></text>
|
|
|
<text class="iconfont icon-luying_ongoing voice_icon voice_puse"></text>
|
|
|
<text class="voice_font">点击图标开始播放</text>
|
|
|
</div>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<else/>
|
|
|
<div class="tab_textarea">
|
|
|
<textarea readonly>{$info.problem_again.content}</textarea>
|
|
|
</div>
|
|
|
</eq>
|
|
|
<else/>
|
|
|
尚未回答
|
|
|
</notempty>
|
|
|
</div>
|
|
|
</div>
|
|
|
</notempty>
|
|
|
|
|
|
<!--转诊意见内容部分-->
|
|
|
<div class="tab_content_box info_item question_no">
|
|
|
<div class="tab_info inquiry_content title">
|
...
|
...
|
@@ -195,29 +248,7 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<notempty name="info.reply">
|
|
|
<!--专家提问显示内容-->
|
|
|
<div class="tab_content_box">
|
|
|
<div class="tab_info">
|
|
|
<text>专家提问</text>
|
|
|
</div>
|
|
|
<div class="user_info_box">
|
|
|
{$info.reply}
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--回复专家的内容-->
|
|
|
<div class="tab_content_box">
|
|
|
<div class="tab_info">
|
|
|
<text>回答</text>
|
|
|
</div>
|
|
|
<div class="user_info_box">
|
|
|
{$info.problem_again|default='尚未回答'}
|
|
|
</div>
|
|
|
</div>
|
|
|
</notempty>
|
|
|
|
|
|
|
|
|
|
|
|
<!--同意转诊须填表单-->
|
|
|
<div class="tab_content_box question_no">
|
|
|
<div class="tab_content">
|
...
|
...
|
@@ -226,19 +257,19 @@ |
|
|
<div class="info_box">
|
|
|
<div class="info_item">
|
|
|
<div class="title">接诊医院</div>
|
|
|
<div class="info_input"><input type="text" placeholder="请填写接诊医院"></div>
|
|
|
<div class="info_input"><input type="text" id="receive_hospital" placeholder="请填写接诊医院"></div>
|
|
|
</div>
|
|
|
<div class="info_item">
|
|
|
<div class="title">转诊专家</div>
|
|
|
<div class="info_input"><input type="text" placeholder="请填写接诊医院"></div>
|
|
|
<div class="info_input"><input type="text" id="receive_expert" placeholder="请填写转诊专家"></div>
|
|
|
</div>
|
|
|
<div class="info_item">
|
|
|
<div class="title">接诊地点</div>
|
|
|
<div class="info_input"><input type="text" placeholder="请填写接诊医院"></div>
|
|
|
<div class="info_input"><input type="text" id="receive_address" placeholder="请填写接诊地点"></div>
|
|
|
</div>
|
|
|
<div class="info_item" id="showDatePicker">
|
|
|
<div class="title">就诊时间</div>
|
|
|
<div class="info_input"><input class="time_value" type="text" placeholder="请填写接诊医院">
|
|
|
<div class="info_input"><input class="time_value" id="receive_time" type="text" placeholder="请选择就诊时间">
|
|
|
<text class="iconfont icon-xiala"></text>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -246,26 +277,33 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--确认回复按钮-->
|
|
|
<div class="agree_btn submit question_yes1">确认回复</div>
|
|
|
<!---->
|
|
|
<div class="bottom_box question_no">
|
|
|
<div class="agree_btn">同意</div>
|
|
|
<div class="bottom_btn">驳回</div>
|
|
|
</div>
|
|
|
|
|
|
<eq name="info.status" value="0">
|
|
|
<!--确认回复按钮-->
|
|
|
<div class="agree_btn submit question_yes1" id="submit_reply">确认回复</div>
|
|
|
<!---->
|
|
|
<div class="bottom_box question_no">
|
|
|
<div class="agree_btn" id="agree_transfer">同意</div>
|
|
|
<div class="bottom_btn">驳回</div>
|
|
|
</div>
|
|
|
</eq>
|
|
|
</div>
|
|
|
<div class="mask_box" hidden>
|
|
|
<div class="mask_box refuse_box" hidden>
|
|
|
<div class="referral_popup_box">
|
|
|
<div>确认驳回</div>
|
|
|
<div class="referral_info">确定驳回转诊吗?</div>
|
|
|
<div class="referral_btn_box">
|
|
|
<div class="btn cancel_btn">取消</div>
|
|
|
<div class="btn confirm_btn">确认</div>
|
|
|
<div class="btn confirm_btn" id="refuse_transfer">确认</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--表单判断弹窗-->
|
|
|
<div class="form_popup_box" hidden>
|
|
|
<text></text>
|
|
|
</div>
|
|
|
|
|
|
<!--录音弹窗-->
|
|
|
<div class="mask_box first" hidden>
|
|
|
<div class="popup_box">
|
...
|
...
|
@@ -339,6 +377,14 @@ |
|
|
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
<!--<script src="__TMPL__/public/assets/js/referral.js"></script>-->
|
|
|
<script>
|
|
|
$('.bottom_btn').click(function () {
|
|
|
$('.refuse_box').show();
|
|
|
});
|
|
|
|
|
|
$('.cancel_btn').click(function () {
|
|
|
$('.refuse_box').hide();
|
|
|
});
|
|
|
|
|
|
wx.config({$sdk});
|
|
|
//文本框显示字数
|
|
|
$(".area").on("input propertychange", function () {
|
...
|
...
|
@@ -486,7 +532,7 @@ |
|
|
})
|
|
|
|
|
|
//显示弹窗
|
|
|
var videoid=''
|
|
|
var videoid='';
|
|
|
//生命全局唯一 音频
|
|
|
var voiceBox;
|
|
|
$(document).on("click", ".mike", function () {
|
...
|
...
|
@@ -496,34 +542,15 @@ |
|
|
$('.stopping').hide()
|
|
|
$('.stop').hide()
|
|
|
$('.next_step').hide();
|
|
|
// videoid=$(this).parents(".voice_module").attr("video-id")
|
|
|
|
|
|
// $(this).parents(".voice_first").hide();
|
|
|
// $(this).parents(".voice_first").siblings(".voice_third").show()
|
|
|
//
|
|
|
// // vioceid=$(this).parents(".voice_first").attr("voiceid");
|
|
|
//
|
|
|
|
|
|
voiceBox = $(this).parents('.voice_list');
|
|
|
|
|
|
// console.log(voiceBox)
|
|
|
// $('.submit_voice').attr('videoid')
|
|
|
//
|
|
|
// var videolist = $(".voice_module");
|
|
|
// console.log(videolist)
|
|
|
// for (var i = 0; i < videolist.length; i++) {
|
|
|
// if (videoid == title_id) {
|
|
|
// $(videolist[i]).children(".voice_list").children(".voice_list").hide();
|
|
|
// $(videolist[i]).children(".voice_list").children(".voice_third").show();
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
});
|
|
|
|
|
|
//删除语音
|
|
|
$(".voice_module").on("click",".cancle_voice",function(){
|
|
|
$(this).parents(".voice_box").remove();
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//开始录音
|
|
|
var localId;
|
...
|
...
|
@@ -536,7 +563,7 @@ |
|
|
$('.next_step').hide()
|
|
|
/*微信开始录音*/
|
|
|
wx.startRecord();
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//暂停
|
|
|
$('.pause').click(function () {
|
...
|
...
|
@@ -544,7 +571,7 @@ |
|
|
$('.start').show()
|
|
|
$('.stopping').hide()
|
|
|
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//停止录音
|
|
|
$('.stopping').click(function () {
|
...
|
...
|
@@ -557,14 +584,14 @@ |
|
|
}
|
|
|
|
|
|
});
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//下一步
|
|
|
$('.next_step').click(function () {
|
|
|
$('.first').hide()
|
|
|
$('.second').show()
|
|
|
$('.first').hide();
|
|
|
$('.second').show();
|
|
|
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//点击试听
|
|
|
$('.audition').click(function () {
|
...
|
...
|
@@ -719,8 +746,157 @@ |
|
|
$('.question_no').show();
|
|
|
$(this).attr('data-id',1);
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//回复
|
|
|
$('#submit_reply').click(function () {
|
|
|
/*获取病人主诉*/
|
|
|
var display=$('.voice_btn1').css('display');
|
|
|
//console.log(display1);
|
|
|
if (display=='none'){
|
|
|
var reply='';
|
|
|
/*判断发送类型*/
|
|
|
var reply_type='1';
|
|
|
$('#voice_module1 .voice_third').each(function () {
|
|
|
/*拼接信息*/
|
|
|
var voiceId1=$(this).attr('data-serverid');
|
|
|
if (voiceId1!=undefined){
|
|
|
if (reply==''){
|
|
|
reply=voiceId1;
|
|
|
}else{
|
|
|
reply+=','+voiceId1;
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
var reply=$('.textarea1').val();
|
|
|
var reply_type='2';
|
|
|
if (!reply){
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('回复内容不能为空');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
alert(JSON.stringify({
|
|
|
reply:reply,
|
|
|
reply_type:reply_type
|
|
|
}))
|
|
|
/*提交后台*/
|
|
|
$.ajax({
|
|
|
url:"{:url('replyTransfer',array('id'=>$info['id']))}",
|
|
|
type:'POST',
|
|
|
data:{
|
|
|
reply:reply,
|
|
|
reply_type:reply_type
|
|
|
},
|
|
|
success:function (res) {
|
|
|
console.log(res);
|
|
|
alert(JSON.stringify(res));
|
|
|
$('.box').show().delay(2000).hide(2)
|
|
|
},
|
|
|
error:function (res) {
|
|
|
alert(res);
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
|
|
|
//同意
|
|
|
$('#agree_transfer').click(function () {
|
|
|
|
|
|
/*获取病人主诉*/
|
|
|
var display2=$('.voice_btn2').css('display');
|
|
|
//console.log(display1);
|
|
|
if (display2=='none'){
|
|
|
var reply_again='';
|
|
|
/*判断发送类型*/
|
|
|
var ireply_again_type='1';
|
|
|
$('#voice_module2 .voice_third').each(function () {
|
|
|
/*拼接信息*/
|
|
|
var voiceId1=$(this).attr('data-serverid');
|
|
|
if (voiceId1!=undefined){
|
|
|
if (reply_again==''){
|
|
|
reply_again=voiceId1;
|
|
|
}else{
|
|
|
reply_again+=','+voiceId1;
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
var reply_again=$('.textarea2').val();
|
|
|
var reply_again_type='2';
|
|
|
if (!reply_again){
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('转诊意见');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var receive_hospital = $('#receive_hospital').val();
|
|
|
var receive_expert = $('#receive_expert').val();
|
|
|
var receive_address = $('#receive_address').val();
|
|
|
var receive_time = $('#receive_time').val();
|
|
|
if (receive_hospital == '') {
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('请填写接诊医院');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return false;
|
|
|
} else if (receive_expert == '') {
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('请填写接诊专家');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return false;
|
|
|
} else if (receive_address == '') {
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('请填写接诊地点');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return false;
|
|
|
} else if (receive_time == '') {
|
|
|
$('.form_popup_box').show();
|
|
|
$('.form_popup_box').text('请填写就诊时间');
|
|
|
$('.form_popup_box').delay(1000).hide(0);
|
|
|
return false;
|
|
|
}
|
|
|
/*提交后台*/
|
|
|
$.ajax({
|
|
|
url:"{:url('agreeTransfer',array('id'=>$info['id']))}",
|
|
|
type:'POST',
|
|
|
data:{
|
|
|
receive_hospital:receive_hospital,
|
|
|
receive_expert:receive_expert,
|
|
|
receive_address:receive_address,
|
|
|
receive_time:receive_time,
|
|
|
reply_again:reply_again,
|
|
|
reply_again_type:reply_again_type
|
|
|
},
|
|
|
success:function (res) {
|
|
|
console.log(res);
|
|
|
alert(JSON.stringify(res));
|
|
|
$('.box').show().delay(2000).hide(2)
|
|
|
},
|
|
|
error:function (res) {
|
|
|
alert(res);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
});
|
|
|
|
|
|
//驳回
|
|
|
$('#refuse_transfer').click(function () {
|
|
|
$.ajax({
|
|
|
url:"{:url('refuseTransfer',array('id'=>$info['id']))}",
|
|
|
type:'POST',
|
|
|
success:function (res) {
|
|
|
console.log(res);
|
|
|
alert(JSON.stringify(res));
|
|
|
$('.box').show().delay(2000).hide(2)
|
|
|
},
|
|
|
error:function (res) {
|
|
|
alert(res);
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|