<!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="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="../../../plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
    <link href="../../../plugins/artDialog/6.0.5/api/css/ui-dialog.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../../plugins/layer/skin/layer.css"/>
    <link href="../css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/consulting.css">
    <link rel="stylesheet" href="../../../plugins/plyr/plyr.css">
</head>

<body>
	<div id="main">
		<div class="div-main-content">
			<div class="consulting-panel ui-grid border-bottom">
		        <div class="ui-col-3 border-right">
		            <div class="div-message-content">
		                <div class="plr20" id="talkBox"></div>
		            </div>
		        </div>
		    </div>
		    <div class="input-panel">
		        <div class="action-panel">
		            <span class="consult-icon icon-image" @click="file_head.click()"></span>
		            <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" @click="sendClick"><i class="fa fa-send mr5"></i>发送</button>
		    </div>
	   </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"><i class="zuoxianduan-icon"></i><span>{{time}}</span><i class="youxianduan-icon"></i></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 || type == 18 || type == 19 }}
            <dd class="word-bread">
                <span>{{content}}</span>
            </dd>
            {{/if}}
            {{if type == 2}}
            <dd class="word-bread wb-img">
                <a class="fancybox" href="{{content | getSourceUrl}}" title="图片">
                    <img width="100" src="{{content | getSourceUrl}}" />
                </a>
            </dd>
            {{/if}}
            {{if type == 3}}
            <dd class="word-bread">
                <div class="player" style="width:300px;">
                    <audio controls>
                        <!-- 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 == 12}}
            <dd class="word-bread">
                <div class="player" style="width:300px;">
                    <video poster="{{content.img | getSourceUrl}}" controls crossorigin>
                        <!-- Video files -->
                        <source src="{{content.path | getSourceUrl}}" 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 | getSourceUrl}}">Download</a>
                    </video>
                </div>
            </dd>
            {{/if}}
        </div>
        </dl>
    </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/vue.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/jquery-2.2.4.js?v=2.2.4"></script>
	<script src="../../../js/bootstrap.min.js?v=3.0.0"></script>
	<script src="../../../plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="../../../plugins/slimscroll/jquery.slimscroll.js"></script>
	<script src="../../../plugins/layer/layer.min.js"></script>
	<script src="../../../js/hplus.min.js?v=4.1.0"></script>
	<script src="../../../js/contabs.min.js"></script>
	<!--<script src="../../../plugins/pace/pace.min.js"></script>-->
	<script src="../../../plugins/toastr/toastr.min.js"></script>
	<script src="../../../js/es6-promise.js"></script>
	<script src="../../../js/underscore.js"></script>
	<script src="../../../js/util.js"></script>
	<script src="../../../js/template.js"></script>
	<script src="../../../plugins/fancybox/jquery.fancybox.js"></script>
	<script src="../../../plugins/plyr/plyr.js"></script>
	<script src="../../../plugins/artDialog/6.0.5/api/js/dialog-plus.js"></script>
	<script src="../../../api/http-request.js"></script>
	<script src="../../../api/consulting-api.js"></script>
	<script src="../js/consulting.js"></script>
</html>