var formatDateTime = function (date) { var date = new Date(); var y = date.getFullYear(); var m = date.getMonth() + 1; m = m < 10 ? ('0' + m) : m; var d = date.getDate(); d = d < 10 ? ('0' + d) : d; return y + m + d // +' '+h+':'+minute+':'+second; }; var extenNum = helper.request.queryString("extenNum"); var telephone = helper.request.queryString("telephone"); var dbCallVideoState = null; $(function(){ if($(".superviseBtn").text()=="我是市民"){ $(".registStatus").html('点击下方登录按钮'); $(".loginbtn").show(); $(".videoCall").hide(); } }) $(".superviseVideoCall").click(function(){ dbCallVideoState =true; captureLocalMediaVideo() localMediaStream(); //videoReqExten() }) if(extenNum){ $("#account").val(extenNum) $("#telephone").val(telephone) loginSuper() } function loginSuper(){ $(".registStatus").show() superviseMan = true; if (!extenNum) { $(".registStatus").html('请输入账号'); } else if(extenNum>1010||extenNum<1005){ $(".registStatus").html('账号不正确'); }else{ var telPhone = /^[1][3,4,5,6,7,8,9][0-9]{9}$/; if (!telPhone.test($("#telephone").val())) { $(".registStatus").text("手机号格式不正确"); } else { $(".registStatus").text("登录成功"); $(".loginbtn").hide() $(".superviseVideoCall").show() sip_uri_ = "sip:"+$("#account").val()+"@"+huayi.config.socket_ip; sip_password_ = "123456"; ws_uri_ = huayi.config.ws_uri_; //wss://sip.800100.com.cn:7443 218.29.229.185:8011 testStart(); } } } $(".loginbtn").click(function(){ extenNum = $("#account").val(); loginSuper() // setTimeout(function(){ // window.location.href="superviseMan.html?extenNum="+$("#account").val()+"&telephone="+$("#telephone").val() // },2000) })