|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .download-bar a:hover { | 
|---|
|  |  |  | text-decoration: underline; | 
|---|
|  |  |  | color: #fff; | 
|---|
|  |  |  | color: #4968bd; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | 
|---|
|  |  |  | src="../../images/qrcode.png"></div> | 
|---|
|  |  |  | <form method="post" class="dataForm"> | 
|---|
|  |  |  | <h3 class="no-margins text-center title" style="color: #666666;font-size: 24px;font-weight: bold"> | 
|---|
|  |  |  | 欢迎登录</h3> | 
|---|
|  |  |  | 密码登录</h3> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | <input autocomplete="off" id="account" type="text" placeholder="请输入用户名" | 
|---|
|  |  |  | class="form-control uname"/> | 
|---|
|  |  |  | 
|---|
|  |  |  | </form> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div id="qrCodeWarp"> | 
|---|
|  |  |  | <div onclick="changeLoginType()" class="qrloginBox"><span class="qrloginSpan">账号登录</span><img | 
|---|
|  |  |  | <div onclick="changeLoginType()" class="qrloginBox"><span class="qrloginSpan">密码登录</span><img | 
|---|
|  |  |  | class="qrImg" | 
|---|
|  |  |  | src="../../images/pc.png"></div> | 
|---|
|  |  |  | <div style="border-radius: 3px; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="signup-footer" style="color: #4968bd;"> | 
|---|
|  |  |  | <div class="" style="font-size: 16px;">HIVE管理系统V2.2.0</div> | 
|---|
|  |  |  | <div class="" style="font-size: 16px;">讯聪管理系统V2.3.0</div> | 
|---|
|  |  |  | <div class=""> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <p class="download-bar" style="font-size: 12px;"><strong>浏览器:</strong>Win7以上<a | 
|---|
|  |  |  | 
|---|
|  |  |  | href="https://pubstorage-bucket.oss-cn-shenzhen.aliyuncs.com/tools/xp/49.0.2623.112_chrome_installer.exe " | 
|---|
|  |  |  | target="_blank">谷歌浏览器(推荐)</a><span>|</span><strong>打印控件:</strong><a | 
|---|
|  |  |  | href="https://pubstorage-bucket.oss-cn-shenzhen.aliyuncs.com/tools/CLodop_Setup_for_Win32NT_https_3.056Extend.exe" | 
|---|
|  |  |  | target="_blank">下载控件</a><span>|</span> | 
|---|
|  |  |  | target="_blank">下载控件</a><span>|</span><strong>APP:</strong><a | 
|---|
|  |  |  | href="http://testfile.hive.jyymatrix.cc/mobile/download.html" | 
|---|
|  |  |  | target="_blank">下载APP客户端</a> | 
|---|
|  |  |  | </p> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //soket用户标识 | 
|---|
|  |  |  | let webClientId = "webClientId_" + MTools.randomStr(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | let loginQrCodeKey=""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | markQrcode(); | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 200, | 
|---|
|  |  |  | height: 200 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | let loginQrCodeKey="loginQrCodeKey_" + MTools.randomStr(); | 
|---|
|  |  |  | loginQrCodeKey="loginQrCodeKey_" + MTools.randomStr(); | 
|---|
|  |  |  | let qrInfo={webClientId:webClientId,loginQrCodeKey:loginQrCodeKey} | 
|---|
|  |  |  | console.log(qrInfo); | 
|---|
|  |  |  | qrcode.makeCode(JSON.stringify(qrInfo)); | 
|---|
|  |  |  | $('#qrCodeIcon canvas').show(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | //实现化WebSocket对象,指定要连接的服务器地址与端口  建立连接 | 
|---|
|  |  |  | let  wsPath= getRootPath(); | 
|---|
|  |  |  | var socketUrl=  wsPath.replace("http","ws")+ "/webSocketServer?userId="+webClientId; | 
|---|
|  |  |  | console.log(socketUrl); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(socket!=null){ | 
|---|
|  |  |  | socket.close(); | 
|---|
|  |  |  | socket=null; | 
|---|
|  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | //获得消息事件 | 
|---|
|  |  |  | socket.onmessage = function(msg) { | 
|---|
|  |  |  | console.log(msg); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var serverMsg = JSON.parse(msg.data); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(serverMsg.msgType==1){ | 
|---|
|  |  |  | 
|---|
|  |  |  | if(serverMsg.loginOperation==1){ | 
|---|
|  |  |  | $.AjaxProxy({ | 
|---|
|  |  |  | p: { | 
|---|
|  |  |  | webClientId: webClientId, | 
|---|
|  |  |  | loginQrCodeKey: loginQrCodeKey, | 
|---|
|  |  |  | loginType: 2 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }).invoke("/common/dologin", function (loj) { | 
|---|