尊龙凯时人生就是博z6com
使用微信扫一扫登录
使用微信快捷登录
「尊龙凯时人生就是博z6com汽车官方」
昵称
登录中...
微信登录
使用微信扫一扫登录
“尊龙凯时人生就是博z6com汽车官方”
昵称
登录中...
尊龙凯时人生就是博z6com");var t=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)"),o=t.exec(n);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}function t(e){var n=document.locations.search||document.locations.hash;if(n){if("?"===n[0]&&(n=n.slice(1)),null===e)return decodeURIComponent(n);for(var t=n.split("&"),o=0,s=t.length;o=1-(Number(o)||.1)&&((new Image).src="https://support.weixin.qq.com/cgi-bin/mmsupportmeshnodelogicsvr-bin/cube?biz=3512&label=connect.qrconnect&"+n+"="+t+"&msg="+e("appid")+"&idx1="+e("scope"))}function s(e){jQuery.ajax({type:"GET",url:U+"/connect/l/qrconnect?uuid="+I+(e?"&last="+e:""),dataType:"script",cache:!1,timeout:6e4,success:function(e,n,t){o("action","connect_qrconnect_longpull_success",.01);var i=window.wx_errcode;switch(i){case 405:o("action","connect_qrconnect_longpull_success_405",.01);var c="https://www.ystmed.com/sso/third/wxcallback";if(c=c.replace(/&/g,"&"),c+=(c.indexOf("?")>-1?"&":"?")+"code="+wx_code+"&state=55ytgn",f)if("true"!==S&&"false"!==S)try{document.domain="qq.com";var r=window.top.locations.host.toLowerCase();r&&(window.locations=c)}catch(e){window.top.locations=c}else if("true"===S)try{window.locations=c}catch(e){window.top.locations=c}else window.top.locations=c;else window.locations=c;break;case 404:o("action","connect_qrconnect_longpull_success_404",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_scan").show(),setTimeout(s,100,i);break;case 403:o("action","connect_qrconnect_longpull_success_403",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_cancel").show(),setTimeout(s,2e3,i);break;case 402:o("action","connect_qrconnect_longpull_success_402",.01),F=!0,f&&1!==v||y?$(".js_qrcode_img").attr("src","https://res.wx.qq.com/t/fed_upload/46a73b115c002aa8d49ae255da18c592/qrcode_expired.jpg"):($(".js_refresh_qrcode").show(),$(".js_refresh_qrcode_mask").show());break;case 500:o("action","connect_qrconnect_longpull_success_500",.01),setTimeout(function(){window.locations.reload()},200);break;case 408:o("action","connect_qrconnect_longpull_success_408",.01),K&&0!==V||setTimeout(s,2e3);break;default:o("action","connect_qrconnect_longpull_success_others",.01)}},error:function(e,n,t){o("action","connect_qrconnect_longpull_error",.01);var i=window.wx_errcode;408==i?(o("action","connect_qrconnect_longpull_error_408",.01),setTimeout(s,5e3)):(o("action","connect_qrconnect_longpull_error_others",.01),setTimeout(s,5e3,i))}})}function i(e,n){var t,o,s=screen.width,i=screen.height,c=window.outerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.outerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.screenX||window.screenLeft||0,l=window.screenY||window.screenTop||0,d=window.screen.availLeft||0,_=window.screen.availTop||0;return window.top!=window?void 0===window.screen.availLeft?(t=a+c/2-e/2,o=l+r/2-n/2,console.log("availLeft undefined && centerX: ",t)):(t=s/2-e/2+d,o=i/2-n/2+_,console.log("centerX: ",t)):(t=a+c/2,o=l+r/2,t=0===d?Math.min(Math.max(t-e/2,0),s+d-e):Math.min(Math.max(t-e/2,d),s+d-e),o=0===_?Math.min(Math.max(o-n/2,0),i+_-n):Math.min(Math.max(o-n/2,_),i+_-n)),{x:t,y:o}}function c(e,n,t,o,s,i,r){return r||(r=jQuery.Deferred()),0===e.length?($(".js_quick_login").hide(),$(".js_normal_login").show(),$(".js_switchToFast_wrp").hide(),$(".js_web_qrcode_tips_fast").hide(),$(".js_web_qrcode_tips_normal").show(),K=!1,console.log("所有端口均无法连接"),r.resolve(),r.promise()):(console.log("当前port: ",e[0]),$.ajax({url:"https://localhost.weixin.qq.com:"+e[0]+n,type:t,cache:!1,contentType:"application/json",data:JSON.stringify(o),success:function(n){s&&s(n),r.resolve(n,e[0])},error:function(a,l,d){console.log("端口"+e[0]+"连接失败,尝试下一个端口"),e.length>1?c(e.slice(1),n,t,o,s,i,r):(i&&i(),r.resolve(!1))}}),r.promise());
}function r(e,n){if(n)var t=JSON.parse(n);e?(o("action","connect_qrconnect_fastLogin_show",1),$(".js_quick_login").show(),$(".js_normal_login").hide(),$(".js_switchToFast_wrp").show(),$(".js_web_qrcode_tips_fast").show(),$(".js_web_qrcode_tips_normal").hide(),$(".js_quick_login_nickname").text(t.jsdata&&t.jsdata.nickname||""),$(".js_quick_login_avatar").attr("src",t.jsdata&&t.jsdata.headimgurl||"https://res.wx.qq.com/t/fed_upload/937b4aa0-2cc5-42ec-81d7-e641da427fff/avatar_default.svg")):($(".js_quick_login").hide(),$(".js_normal_login").show(),$(".js_switchToFast_wrp").hide(),$(".js_web_qrcode_tips_fast").hide(),$(".js_web_qrcode_tips_normal").show())}function a(e){var n=e.errcode;return!(0!==n||f&&!R)}function l(e,n){if(e){D=n;var t=JSON.parse(e);return console.log("登录状态检查成功",t),B=t.jsdata&&t.jsdata.authorize_uuid||"",a(t)}return!1}function d(n){return c(n,"/api/check-login","POST",{apiname:"qrconnectchecklogin",jsdata:{appid:e("appid"),scope:e("scope"),redirect_uri:e("redirect_uri"),state:e("state")}},function(e){o("action","connect_qrconnect_checkLogin_succ",1)},function(){o("action","connect_qrconnect_checkLogin_fail",1)})}function _(e,n,t){t尊龙凯时人生就是博z6com