<!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">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>咨询详情页</title>
    <link href="../../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../../plugins/layer/skin/layer.css"/>
    <link rel="stylesheet" href="../../../plugins/plyr/plyr.css">
    <link href="../css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/consulting.css">
</head>

<body>
    <div class="consulting-panel ui-grid">
        <div class="plr20 pt10" style="width:100%;" id="talkBox"></div>
    </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}} {{if type==17}}mb10-i{{/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">
                <img class="showBigPic" width="100" src="{{content | getSourceUrl}}" />
            </dd>
            {{/if}}
            {{if type == 3}}
            <dd class="word-bread">
                <div class="player" style="width:292px;">
                    <audio controls style="position: relative;top: 15px;">
                        <!-- Audio files -->
                        <source src="{{content.path | getSourceUrl}}" type="audio/mp3">
                        <!-- Fallback for browsers that don't support the <audio> element -->
                        您的浏览器不支持在线播放，请<a href="{{content.path | getSourceUrl}}">下载</a>
                    </audio>
                </div>
            </dd>
            {{/if}}
            {{if type == 6 && kindType == 8}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="../images/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 == 6 && kindType == 2}}
            <dd class="word-bread">
                <span>{{content}}</span>
            </dd>
            {{/if}}
            {{if type == 12}}
            <dd class="word-bread">
                <div class="player" style="width:292px;">
                    <video poster="{{content.img | getSourceUrl}}" controls crossorigin>
                        <source src="{{content.path | getSourceUrl}}" type="video/mp4">
                        <!--<a href="{{content.path | getSourceUrl}}">Download</a>-->
                    </video>
                </div>
            </dd>
            {{/if}}
            {{if type == 15}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="../images/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>
                {{if content.reason}}
                <p class="c-333 c-f14">原因：{{content.reason}}</p>
                {{/if}}
            </dd>
            {{/if}}
            <!-- 添加随访相关的体统消息 -->
            {{if type == 16}}
            {{if isSelf}}
            <dd class="word-bread msg-fv">
                <div class="fv-content">
                    <span class="c-333 c-f14 bgc-fff">{{content.text}}</span>
                </div>
            </dd>
            {{else}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示
                </div>
                {{if content.needUpload == "false"}}
                <p class="c-333 c-f14">{{content.tzMsg}}</p>
                <p class="c-333 c-f14">{{content.tzTime}}</p>
                {{/if}}
            </dd>
            {{/if}}
            {{/if}}
            {{if type == 17}}
            {{if isSelf}}
            <dd class="word-bread msg-fv">
                <div class="fv-content">
                    <span class="c-333 c-f14 bgc-fff">{{content.text}}</span>
                </div>
            </dd>
            {{else}}
            <dd class="word-bread sys-msg">
                <div class="c-f14 sys-header mb5">
                    <img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示
                </div>
            </dd>
            {{/if}}
            {{/if}}
        </div>
        </dl>
        {{if type == 17 && isSelf}}
        <div class="text-center">
            <span class="fv-remind">{{content.doctorremind}}</span>
        </div>
        {{/if}}
    </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, "../../../plugins/plyr/sprite.svg");
</script>
<script src="../../../js/jquery-2.2.4.js"></script>
<script src="../../../js/bootstrap.min.js"></script>
<script src="../../../plugins/layer/layer.min.js"></script>
<script src="../../../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="../../../api/http-request.js"></script>
<script src="../../../api/record-api.js"></script>
<script src="../../../plugins/plyr/plyr.js"></script>
<script src="../js/consult-detail.js"></script>
</html>

