<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>咨询详情页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
    <link href="js/plugins/artDialog/6.0.5/css/ui-dialog.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="css/consulting.css">
    <link rel="stylesheet" href="css/plugins/plyr/plyr.css">
</head>

<body class="">
    <div class="consulting-panel ui-grid border-bottom">
        <div class="ui-col-3 border-right" style="height: 100%">
            <div class="info-panel">审核完成24时后将自动关闭咨询，<a onclick="finish()">点击关闭</a></div>
            <div class="text-center">
                <span class="diseaseInfo"></span>
            </div>
            <div style="height: calc(100% - 74px);">
                <div class="plr20 pb20" id="talkBox"></div>
            </div>
            
        </div>
        <div class="ui-col-1" style="height: 100%">
            <div class="ptb20 plr10" id="prescriptionInfo"></div>
            <div class="text-center">
                <span class="status-btn"></span>
            </div>
        </div>
    </div>
    <div class="input-panel">
        <div class="action-panel">
            <i class="fa fa-picture-o c-666" onclick="file_head.click()"></i>
            <input type="file" class="hidden" id="file_head" accept="image/*">
        </div>
        <div id="input_content" type="text" class="input-msg width-100" ></div>
        <button class="btn send-btn" type="button"><i class="fa fa-send mr5"></i>发送</button>
    </div>
    <!-- 系统消息模板 -->
    <script type="text/html" id="sys_msg_tmp">
        <div class="time-tips"><span class="xt-xiaoxi">{{content}}</span></div>
    </script>

    <!-- 消息模板 -->
    <script type="text/html" id="msg_tmp">
        <div class="time-tips"><span>{{time}}</span></div>
        <dl class="{{if isSelf}}chat-right{{else}}chat-left{{/if}}">
            <dt style="height: auto; text-align: center;">
                <img src="{{img}}" class="images-cycle"/>
            </dt>
            <div class="c-content">
                <span class="c-f12 name">{{name}}</span>
            {{if type == 0 || type == 1 || type == 8 }}
            <dd class="word-bread">
                <span>{{content}}</span>
            </dd>
            {{/if}}
            {{if type == 2}}
            <dd class="word-bread wb-img">
                <a class="fancybox" href="{{content}}" title="图片">
                    <img width="100" src="{{content}}" />
                </a>
            </dd>
            {{/if}}
            {{if type == 3}}
            <dd class="word-bread">
                <div class="player" style="width:292px;">
                    <audio controls>
                        <!-- Audio files -->
                        <source src="{{content.path}}" type="audio/mp3">
                        <!-- Fallback for browsers that don't support the <audio> element -->
                        您的浏览器不支持在线播放，请<a href="{{content.path}}">下载</a>
                    </audio>
                </div>
            </dd>
            {{/if}}
            {{if type == 6}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="img/xitongtixing_im_icon.png" width="14">本消息为系统提示
                </div>
                <p class="c-333 c-f14">{{content.title}}</p>
                <p class="c-333 c-f14">体征信息：{{content.tzMsg}}</p>
            </dd>
            {{/if}}
            {{if type == 12}}
            <dd class="word-bread">
                <div class="player" style="width:292px;">
                    <video poster="{{content.img}}" controls crossorigin>
                        <!-- Video files -->
                        <source src="{{content.path}}" type="video/mp4">

                        <!-- Text track file -->
                        <!-- <track kind="captions" label="English" srclang="en" src="https://cdn.selz.com/plyr/1.0/example_captions_en.vtt" default> -->

                        <!-- Fallback for browsers that don't support the <video> element -->
                        <a href="{{content.path}}">Download</a>
                    </video>
                </div>
            </dd>
            {{/if}}
            {{if type == 15}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="img/xitongtixing_im_icon.png" width="14">本消息为系统提示
                </div>
                <p class="c-333 c-f14">审核消息：</p>
                <p class="c-333 c-f14">{{content.title}}</p>
                <p class="c-333 c-f14">审核结果：{{content.result}}</p>
                <p class="c-333 c-f14">原因：{{content.reason}}</p>
                <a href="javascript:void(0);" class="view-detail c-f14">点此查看详情</a>
            </dd>
            {{/if}}
        </div>
        </dl>
    </script>

    <script type="text/html" id="prescriptionInfo_tmp">
        <h4 class="text-center">{{symptoms}}-续方咨询</h4>
        <p class="mt20">诊断结果</p>
        <p>
            {{each prescriptionDt as dt}}
            {{dt.name}}
            {{/each}}
        </p>

        <p class="mt30">药品</p>
        <ul class="" style="padding:0">
            {{each prescriptionInfo as dg}}
            <li class="ui-grid">
                <div class="ui-col-1">{{dg.drugName}}</div>
                <div class="ui-col-0">{{dg.num}}{{dg.drugNumUnitName}}</div>
            </li>
            {{/each}}
        </ul>
    </script>
</body>
<script>
    (function(d,u){var a=new XMLHttpRequest(),b=d.body;if("withCredentials" in a){a.open("GET",u,true);a.send();a.onload=function(){var c=d.createElement("div");c.setAttribute("hidden","");c.innerHTML=a.responseText;b.insertBefore(c,b.childNodes[0])}}})(document, "css/plugins/plyr/sprite.svg");
</script>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="js/plugins/layer/layer.min.js"></script>
<script src="js/hplus.min.js?v=4.1.0"></script>
<script type="text/javascript" src="js/contabs.min.js"></script>
<script src="js/plugins/pace/pace.min.js"></script>
<script src="js/plugins/toastr/toastr.min.js"></script>
<script src="js/es6-promise.js"></script>
<script src="js/util.js"></script>
<script src="js/template.js"></script>
<script src="js/api-service.js"></script>
<script src="js/consulting-api.js"></script>
<script src="js/plugins/fancybox/jquery.fancybox.js"></script>
<script src="js/plugins/plyr/plyr.js"></script>
<script src="js/plugins/artDialog/6.0.5/js/dialog-plus.min.js"></script>
<script src="js/buz/prescription-consulting.js"></script>
</html>