transferdetail2.html 15.2 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>转诊待答</title>
    <script src="__TMPL__/public/assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/init.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_793738_tlxymah92x.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/weui.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/myweui.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/referralModule.css">
    <style>
        .voice_box{
            width: 100%;
        }
        .question_yes,.question_yes1{display: none;}
    </style>
</head>
<body STYLE="background: #F5F6FA">
<div class="container">
    <div class="tab_content_box top">
        <div class="tab_info">转诊基本信息</div>
        <div class="tab_content">
            <div class="content_item">
                <div class="tab_title">临床表现</div>
                <eq name="info.clinical.type" value="1">
                    <div class="voice_box" >
                        <foreach name="info.clinical.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.clinical.content}</textarea>
                    </div>
                </eq>
            </div>

            <div class="content_item">
                <div class="tab_title">已做检查</div>
                <eq name="info.inspected.type" value="1">
                    <div class="voice_box" >
                        <foreach name="info.inspected.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.inspected.content}</textarea>
                    </div>
                </eq>
            </div>
            <div class="content_item">
                <div class="tab_title">已用药物</div>
                <eq name="info.used_drugs.type" value="1">
                    <div class="voice_box" >
                        <foreach name="info.used_drugs.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.used_drugs.content}</textarea>
                    </div>
                </eq>
            </div>
            <div class="content_item">
                <div class="tab_title">当前困惑</div>
                <eq name="info.problem.type" value="1">
                    <div class="voice_box" >
                        <foreach name="info.problem.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.content}</textarea>
                    </div>
                </eq>
            </div>
            <div class="content_item">
                <div class="tab_title">咨询时间</div>
                <div>{$info.addtime|date='Y.m.d H:i:s',###}</div>
            </div>

        </div>
    </div>
    <div class="tab_content_box">
        <div class="tab_info">转诊基本信息</div>
        <div class="user_info_box title_info" style="justify-content: normal">
            <div class="head_box"><img src="{$info.avatar}" alt=""></div>
            <div>
                <div>姓名:{$info.user_nickname}</div>
                <div>电话:{$info.mobile}</div>
                <div>医院:{$info.hospital}</div>
                <div>科室:{$info.office}</div>
            </div>
        </div>
    </div>

    <!--提问内容部分-->
    <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 voice_btn1"></text>
            <text class="iconfont icon-tianxie"></text>
        </div>
        <div class="textarea_content">
            <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 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">
                        <text class="iconfont icon-luyin voice_icon"></text>
                        <text class="voice_font luyin">点击图标可播放 时长:<span class="timeLength">0</span></text>
                    </div>
                    <div class="voice_btn_box">
                        <text class="iconfont icon-quxiao cancle_voice"></text>
                        <text class="iconfont icon-tianjia add_voice"></text>
                    </div>
                </div>
                <div class="voice_box voice_first" voiceid="1">
                    <div class="voice_item">
                        <text class="iconfont icon-huatong mike voice_icon"></text>
                        <text class="voice_font huatong">点击图标开始语音语音最长60秒</text>
                    </div>
                    <div class="voice_btn_box">
                        <text class="iconfont icon-quxiao icon_cancle"></text>
                    </div>
                </div>
            </div>
        </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">
            <text>转诊意见</text>
            <text class="iconfont icon-huatong voice_btn voice_btn2"></text>
            <text class="iconfont icon-tianxie"></text>
        </div>
        <div class="textarea_content">
            <textarea class="area textarea2" type="text" placeholder="请输入" maxlength="1000"></textarea>
            <p class="text_num num_box"><span class="text-count">0</span>/1000</p>
        </div>
        <div id="voice_module2" class="voice_module agree_box" video-id="2">
            <div class="voice_list" voiceitemid="2">
                <div class="voice_box voice_third">
                    <div class="voice_item">
                        <text class="iconfont icon-luyin voice_icon"></text>
                        <text class="voice_font luyin">点击图标可播放 时长:<span class="timeLength">0</span></text>
                    </div>
                    <div class="voice_btn_box">
                        <text class="iconfont icon-quxiao cancle_voice"></text>
                        <text class="iconfont icon-tianjia add_voice"></text>
                    </div>
                </div>
                <div class="voice_box voice_first" voiceid="2">
                    <div class="voice_item">
                        <text class="iconfont icon-huatong mike voice_icon"></text>
                        <text class="voice_font huatong">点击图标开始语音语音最长60秒</text>
                    </div>
                    <div class="voice_btn_box">
                        <text class="iconfont icon-quxiao icon_cancle"></text>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!--同意转诊须填表单-->
    <div class="tab_content_box question_no">
        <div class="tab_content">
            <div class="content_item">
                <div class="tab_title">接诊信息(同意转诊时需要填写此表单)</div>
                <div class="info_box">
                    <div class="info_item">
                        <div class="title">接诊医院</div>
                        <div class="info_input"><input type="text" id="receive_hospital" value="{$info.receive_hospital}"></div>
                    </div>
                    <div class="info_item">
                        <div class="title">转诊专家</div>
                        <div class="info_input"><input type="text" id="receive_expert" value="{$info.receive_expert}"></div>
                    </div>
                    <div class="info_item">
                        <div class="title">接诊地点</div>
                        <div class="info_input"><input type="text" id="receive_address" value="{$info.receive_address}"></div>
                    </div>
                    <div class="info_item" id="showDatePicker">
                        <div class="title">就诊时间</div>
                        <div class="info_input"><input class="time_value" id="receive_time" type="text"  value="{$info.receive_time}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<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" id="refuse_transfer">确认</div>
        </div>
    </div>
</div>

<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script src="__TMPL__/public/assets/js/weui.js"></script>
<script src="__TMPL__/public/assets/js/myweui.js"></script>
<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();
    });

    //文本框显示字数
    $(".area").on("input propertychange", function () {

        var $this = $(this),
            _val = $this.val(),
            count = "";
        if (_val.length > 1000) {
            $this.val(_val.substring(0, 1000));
        }
        count = 1000 - $this.val().length;
        $(this).siblings(".text_num").children('.text-count').text(count);
    });

    //点击
    $('.info_item').on('click','.title',function () {
        $(this).parent().toggleClass('voice')
    })

    //点击正在播放按钮
    $('.icon-luying_ongoing').click(function () {
        var videolist = $(".voice_module");
        for (var i = 0; i < videolist.length; i++) {
            var videoid = $(videolist[i]).attr("video-id");
            if (videoid == title_id) {
                $(videolist[i]).show();
                $(videolist[i]).children('.voice_second').hide()
                $(videolist[i]).children('.voice_third').show();
            }
        }
    })


    //播放语音
    $('.voice_puse').hide()
    //var mySound = new Audio('http://suzhou.w.bronet.cn/upload/admin/20181217/a22c54f3354951b1d612569a126480a5.mp3');
    $('.voice_play').click(function () {
        var url=$(this).data('url');
        var mySound = new Audio(url);
        mySound.play();
        $(this).hide()
        $(this).siblings('.voice_puse').show()

        $('.voice_puse').click(function () {
            mySound.pause();
            $(this).hide()
            $(this).siblings('.voice_play').show()
        })
    })
</script>
</body>
</html>