123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>设置</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="Cache" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache, must-revalidate">
- <meta http-equiv="expires" content="0">
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <link rel="stylesheet" href="../../css/element.css">
- <link rel="stylesheet" href="../../css/style.css">
- <link rel="stylesheet" id="linkSource" href="../../css/base.css">
- <script src="../../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/yz/init.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/yz/caht.js" type="text/javascript" charset="utf-8"></script>
- <script>
- checkLogin();
- </script>
- </head>
- <style type="text/css">
- *{
- margin: 0;
- padding: 0;
- }
- body {
- height: 100vh;
- background-color: #103151;
- }
- div,button{
- box-sizing: border-box;
- }
- .topBox .icon-Time{
- position: absolute;
- right: 10px;
- top: 8px;
- font-size: 20px;
- z-index: 4446;
- }
- #ContTxt li{
- list-style: none;
- margin:6px 0 13px;
- }
- .sendTxt{
- position: fixed;
- bottom: 0;
- left:0;
- width: 100%;
- display: flex;
- align-items: flex-end;
- padding: 8px;
- background-color: #1b2a46;
- }
- .sendTxt textarea{
- width:calc(100% - 90px) !important;
- height: 26px;
- padding: 6px;
- color:#8799a3;
- font-size: 13px;
- line-height: 18px;
- border: none;
- outline: none;
- resize: none;
- background-color: rgba(255,255,255,0.2);
- border-radius: 4px;
- }
- .sendTxt textarea::-webkit-input-placeholder{
- color:#8799a3;
- }
- .sendTxt button{
- width: 50px;
- text-align: center;
- padding: 4px 0;
- border-radius: 3px;
- }
- .sendTxt .iconfont{
- font-size: 24px;
- margin:0 10px;
- }
- .yz-chat-text{
- background-color: #fff;
- }
- .yz-chat-text::after{
- border-top-color: #fff;
- }
- </style>
- <body>
- <div class="topParen">
- <div class="topBox">
- <i class="iconfont icon-left" onclick="navBack()"></i>
- <div id="reName"></div>
- <i class="iconfont icon-Time"></i>
- </div>
- <div style="padding: 4px 17px;max-height: calc(100% - 50px);overflow: auto;">
- <ul id="ContTxt">
- </ul>
- </div>
- <div class="sendTxt">
- <textarea placeholder="请输入您的消息(长度小宇30位的字符)"></textarea>
- <span class="iconfont icon-yangshi_icon_tongyong_settings"></span>
- <button type="button" class="bg-blue">发送</button>
- </div>
- </div>
- </body>
- <script src="../../js/yz/mqttws31.js"></script>
- <script src="../../js/yz/sendMag.js" type="text/javascript" charset="utf-8"></script>
- <script>
- $(document).ready(function(){
- sendMsg("mainPh");
- nowStr = JSON.parse(localStorage.getItem("nowStr"));
- $("#reName").text(nowStr.nickName);
- getChatData(nowStr,"mainPh");
- })
- // 发送消息
- $(document).on("click",".sendTxt .bg-blue",function(){
- let _txt = $(".sendTxt textarea").val();
- sendContent(_txt,"mainPh");
- })
- $(document).on("click",".topBox .icon-Time",function(){
- top.location.href='./CahtHis.html'
- })
- $(document).on("click",".sendTxt .iconfont",function(){
- top.location.href='./BindPhone.html?id='+nowStr.username;
- })
- function navBack(){
- sendAlread();
- top.location.href = "../MainPh.html?sn=2";
- }
- </script>
- </html>
|