var path = document.location.href.split('#')[0];var weixinpath = encodeURIComponent('https://www.songkoo.com//proauth/weixing/redbag/commlogin.php?reurl='+path);var loginstr = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb19cc46735c7dda0&scope=snsapi_userinfo&redirect_uri="+weixinpath+"&response_type=code&state=1#wechat_redirect";if(/(iPhone|iPad|iPod|android|windows phone os|iemobile)/i.test(navigator.userAgent)){window.location = loginstr;}