HTTP/1.1 200 OK
Server: nginx
Date: Sun, 27 Oct 2024 19:51:17 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 22348
Last-Modified: Thu, 24 Oct 2024 09:08:41 GMT
Connection: close
Vary: Accept-Encoding
ETag: "671a0e99-574c"
Accept-Ranges: bytes
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" style="position: fixed" />
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>RSP平台-太屋</title>
<link href="/CSS/login.css?v1.7" rel="stylesheet" />
<link href="/JS/Vue/element2.3.7/element.css?v1.7" rel="stylesheet" />
<link rel="stylesheet" href="/CSS/common.css?v1.7">
<link rel="stylesheet" href="/CSS/element-ui-custom.css?v1.7">
<link href="/CSS/animate.min.css?v1.7" rel="stylesheet" />
<link href="/CSS/plus.style.css?v1.7" rel="stylesheet" />
<link href="/CSS/iconfont.css?v1.7" rel="stylesheet" />
<!-- TaiwuUi CLASS 样式 -->
<link rel="stylesheet" href="/JS/TaiwuUi/taiwu-ui-style.css?v1.7">
</head>
<body>
<div id="pageLogin" v-cloak>
<div class="login-box">
<div class="login-logo"></div>
<div class="login-appdownload" onmouseover="showDownAppQrCode(true)" onmouseout="showDownAppQrCode(false)">
<div class="login-appdownload-qrcode">
<div id="qrcode"></div>
<!-- <img class="" src="/images/login/appdown.png" /> -->
</div>
</div>
<!-- <div class="login-title">
<div v-if="!videoPlaying" class="login-play" @click="playVideo"></div>
</div>
<div class="login-bottom-title"></div> -->
</div>
<transition name="slide-fade">
<button v-if="!showLoginPop" class="login-button" @click="showLoginPop=true;pauseVideo()">登 录</button>
</transition>
<transition name="slide-fade">
<div class="login-popup" v-if="showLoginPop" id="loginchange">
<div class="login-close" @click="showLoginPop=false;playVideo()"></div>
<div v-if="loginMode" class="login-change-qrcode" @click="changeMode">
<!-- <i class="icon iconfont"></i> -->
<!-- <span class="xsanjiao2"></span> -->
</div>
<div v-else class="login-change-pc " @click="changeMode">
<!-- <span class="xsanjiao"></span> -->
</div>
<!-- 密码登录 -->
<div v-if="loginMode" class='loginMode'>
<h2>密码登录</h2>
<div class="login-input">
<input v-bind:id="'txtUserName'" v-model="Login.UserId" type="text" placeholder="请输入公司帐号" :disabled="btnLoading" @keyup.enter="submitlogin" />
</div>
<div class="login-input">
<input v-bind:id="'txtUserPW'" v-model="Login.UserPw" type="password" placeholder="请输入登录密码" :disabled="btnLoading" @keyup.enter="submitlogin" />
</div>
<div class="login-input color-gray">
<label class="pswTitStyle"><input type="checkbox" v-model="Login.SavePWFlag" :disabled="btnLoading" />记住密码</label>
<label class="pull-right pswTitStyle" @click='retrievePw'>忘记密码?</label>
</div>
<div class="login-input">
<button :disabled="btnLoading" @click="submitlogin"><i v-if="btnLoading" class="el-icon-loading"></i> 登 录</button>
</div>
</div>
<!-- 扫码登录 -->
<div v-else>
<h2>企业微信扫码登录</h2>
<div id="wx_reg" style="display: inline-block; background: #fff; margin-left: 30px;"></div>
<!-- <img class="login-qrcode-img" src="/images/login/eqd.png" />
<span class="login-qrcode-text">打开<font color="#b62b29">手机钉钉</font>,扫码登录</span> -->
</div>
</div>
</transition>
<div v-if="showLoginPop" class="login-mask"></div>
<div class="video-mask"></div>
<video id="loginVideo" poster="" autoplay="" muted="" @play="changePlay" @ended="videoEnded" class="vidbacking-active-body-back">
<source :src="videoURL" type="video/mp4">
</video>
</div>
<iframe id='callbackiframe' name='callbackiframe' src="" style='width: 0;display: none;'></iframe>
<script src="JS/Vue/vue2.5/vue.js"></script>
<!--<script src="~/JS/Vue/vue2.5/vue.min.js"></script> -->
<script src="JS/Vue/element2.3.7/element.min.js"></script>
<script src="/JS/rsa.js"></script>
<script src="/JS/rsp-common.js?v1.7"></script>
<!-- 通用组件 -->
<script src="/JS/vue-component/common.js?v1.7"></script>
<script src="/JS/TaiwuUi/taiwu-ui-main.js?v1.7"></script>
<script src="/JS/jquery-2.2.4.min.js"></script>
<script src="/JS/vidbacking/jquery.vidbacking.js"></script>
<!-- <script src="/JS/dingding/ddLogin.js"></script> -->
<script src="/JS/wxLogin/wxLogin.js"></script>
<!-- <script type="text/javascript" src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> -->
<!-- 生成二维码插件 -->
<script src="JS/ace/qrcode.js"></script>
<script type="text/javascript">
setRspToken('')
var pageIndex;
// var guid = new GUID();
// var codeId = guid.newGUID();
var qrcode = {};
var loading = false;
// var ding = {
// "appid": "",
// "agentid": "",
// "corpid": "",
// "uri": "",
// "redirect_uri": "",
// "code": "",
// "accesstoken": ""
// };
//设置扫描授权id
// var Nailkey="dingoacvkht0mzke3tzdx4"; //开发环境授权id
// ding.appid = Nailkey;
//设置重定向地址
//ding.redirect_url = DDServer_PATH+"api/dingtalk/QRcode/getUserInfo";
//扫码触发跳转钉钉接口地址
// ding.url = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=" + ding.appid +
// "&response_type=code&scope=snsapi_login&state=" + codeId + "&redirect_uri=" + ding.redirect_url;
// var obj = DDLogin({
// id: "login_container",
// goto: encodeURIComponent(ding.url),
// style: "border:none;background-color:rgba(255,255,255,1);margin-top:-30px;border-radius:0px !important;;",
// width: "234",
// height: "265",
// });
// var loading = false;
// var Intervaltime = null;
// var IntervaltimeCount = 0;
// var ddflag;
// //获取钉钉返回的code
// var getcode = function (event) {
// console.log(event)
// var origin = event.origin;
// console.log("origin", event.origin);
// if (origin == "https://login.dingtalk.com") { //判断是否来自ddLogin扫码事件。
// var loginTmpCode = event.data; //拿到loginTmpCode后就可以在这里构造跳转链接进行跳转了
// ding.code = loginTmpCode;
// console.log("获取到code", loginTmpCode);
// window.parent.postMessage(loginTmpCode, '*');
// //设置重定向地址
// var callurl =
// "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=" + ding.appid + "&response_type=code&scope=snsapi_login&state=" +
// codeId + "&redirect_uri=http://&loginTmpCode=" + loginTmpCode;
// $("#callbackiframe").attr("src", callurl);
// setTimeout(function () {
// Intervaltime = setInterval(function () {
// if (IntervaltimeCount > 30) {
// clearInterval(Intervaltime);
// // showTopMsg("钉钉扫码登录超时,请重新扫码", "error");
// showTopMsg("企业微信扫码登录超时,请重新扫码", "error");
// return;
// }
// IntervaltimeCount++;
// if (ddflag != 1) {
// checkTokengeData()
// }
// }, 1000)
// }, 1000);
// };
// };
//企业微信扫码登陆
var wx = {
"appid": "",
"agentid": "",
"redirect_url": "",
"code": "",
"state": Math.ceil(Math.random() * 1000),
"redirect_urls": "",
"getuserInfo": "",
};
// wx.appid = "ww39f2acbe5ab60932";
wx.appid = WXAppid;
// wx.agentid = "1000003"
wx.agentid = WXAagentid;
// wx.redirect_url = "http://10.55.5.44";
wx.redirect_url = WXServer;
// wx.getuserInfo = "http://devnginx.twrsp.com/";
wx.userInfo = WXUserInfo;
wx.redirect_urls = "userInfo/facade/api/wechat/QRcode/getUserInfo";
var wwLogin = new WwLogin({
id: "wx_reg",
appid: wx.appid,
agentid: wx.agentid,
redirect_uri: encodeURIComponent(wx.redirect_url),
state: wx.state,
lang: "zh",
href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDIwMHB4O30NCi5pbXBvd2VyQm94IC50aXRsZSB7ZGlzcGxheTogbm9uZTt9DQouaW1wb3dlckJveCAuaW5mbyB7d2lkdGg6IDIwMHB4O30NCi5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0NCi5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9"
});
//获取链接后面的参数值
wx.code = queryString(1)
wx.state = queryString(2)
function queryString(flag) {
var url = window.location.href
if (flag == 1) {
var key = "code"
var begin = url.indexOf("?" + key + "=") + key.length + 2;
} else {
var key = "state"
var begin = url.indexOf("&" + key + "=") + key.length + 2;
}
if (begin == -1) return '';
var url2 = url.slice(begin);
this.end = url2.indexOf("&");
if (this.end == -1) {
return url2.slice(0);
} else {
return url2.slice(0, this.end);
}
console.log(begin)
}
if (this.end != -1) {
var url = wx.redirect_urls;
$.ajax({
type: 'get',
url: wx.userInfo + url,
async: false,
contentType: "application/json",
data: {
'code': wx.code, //json格式
'state': wx.state,
'appid': wx.appid,
},
dataType: 'json',
success: function (data, status) {
if (data.success && data.businessCode == 1) {
setRspToken(data.data);
checkTokengeData()
} else {
showTopMsg("企业微信扫码登录超时,请重新扫码", "error");
return;
}
}
});
}
//扫码登陆Token验证
function checkTokengeData() {
if (loading) return;
loading = true;
CallWebApi2("userInfo/api/wechat/QRcode/checkToken", "POST", {
// CallWebApi2("userInfo/api/dingtalk/QRcode/checkToken", "POST", {
//CallWebApi("dingtalk/QRcode/checkToken", "POST", {
"state": wx.state //codeId
},
function (Result) {
loading = false;
hideLoading();
if (Result && Result.success && !isNull(Result.data)) {
// clearInterval(Intervaltime);
// showTopMsg("钉钉扫码登录成功", "success");
showTopMsg("企业微信扫码登录成功", "success");
setRspToken(Result.data)
setTimeout(function () {
// window.location.href = "/Home.html" + window.location.search;
window.location.href = "/Home.html";
}, 500);
return;
} else if (Result.errorCode == 2 && Result.success == false) {
// showTopMsg("钉钉扫码未获取到用户信息,请使用密码登陆", "error")
showTopMsg("企业微信扫码未获取到用户信息,请使用密码登陆", "error")
ddflag = 1;
// clearInterval(Intervaltime);
setTimeout(function () {
this.pageIndex.vm.loginMode = true
}, 1000);
return;
} else {
// clearInterval(Intervaltime);
return;
}
}, null,
function () {
// clearInterval(Intervaltime);
}, false);
}
//钉钉扫码监听
// if (typeof window.addEventListener != 'undefined') {
// window.addEventListener('message', getcode, false);
// } else if (typeof window.attachEvent != 'undefined') {
// window.attachEvent('onmessage', getcode);
// };
$(function () {
pageIndex = new PageLogin();
pageIndex.init();
});
function PageLogin() {
var _this = this;
var base = new Base64();
_this.init = function () {
qrcode = new QRCode(document.getElementById("qrcode"));
//location.origin+
// qrcode.makeCode("https://h5.taiwu.com/download/twrspapp");
qrcode.makeCode("https://m.taiwu.com/downloadAppManger");
// qrcode.makeCode(location.origin+'/pages/SYS/DownloadAPP.html');
$(document).keydown(function (event) {
if (event.keyCode == "13" && _this.vm.showLoginPop) {
if (!_this.vm.btnLoading)
_this.vm.submitlogin();
} else if (event.keyCode == "13") { //回车键
_this.vm.showLoginPop = true;
_this.vm.pauseVideo();
}
if (event.keyCode == "27") { //ESC
_this.vm.showLoginPop = false;
_this.vm.playVideo();
}
});
_this.vm.getUserCookie();
};
_this.vm = new Vue({
el: "#pageLogin",
data: {
btnLoading: false, //按钮执行loading
showLoginPop: false, //是否显示登录Pop
videoPlaying: true, //视频是否在播放中
videoURL: "/video/login.mp4?4", //视频地址
loginMode: true,
//登录对象
Login: {
UserId: '',
UserPw: '',
SavePWFlag: false
},
},
computed: {},
methods: {
getQueryString(name) {
const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
const r = window.location.search.substr(1).match(reg)
if (r != null) {
return unescape(r[2])
}
return null
},
{
"@category" : "datascan",
"@timestamp" : "2024-10-27T19:51:17.000Z",
"app" : {
"extract" : {
"domain" : [
"dingtalk.com",
"taiwu.com",
"qq.com",
"twrsp.com"
],
"hostname" : [
"devnginx.twrsp.com",
"h5.taiwu.com",
"login.dingtalk.com",
"m.taiwu.com",
"oapi.dingtalk.com",
"res.wx.qq.com"
],
"ip" : [
"10.55.5.44"
],
"url" : [
"http://10.55.5.44",
"http://devnginx.twrsp.com/",
"http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js",
"https://h5.taiwu.com/download/twrspapp",
"https://login.dingtalk.com",
"https://m.taiwu.com/downloadAppManger",
"https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid="
]
},
"http" : {
"bodymd5" : "aedf470b9f8f4565ba5cee48aa50eba7",
"bodymmh3" : -46220599,
"component" : [
{
"productversion" : "2.2.4",
"productvendor" : "jQuery",
"product" : "jQuery"
}
],
"header" : [
{
"name" : "Last-Modified",
"value" : "Thu, 24 Oct 2024 09:08:41 GMT"
},
{
"value" : "671a0e99-574c",
"name" : "ETag"
}
],
"headermd5" : "0f367cc40b6e35181b83c687dfe4bc56",
"headermmh3" : 247000504,
"title" : "RSP\u5e73\u53f0-\u592a\u5c4b"
},
"length" : 16384
},
"asn" : "AS4812",
"country" : "CN",
"cpe" : "<enterprise field>: cpe",
"cpecount" : "<enterprise field>: cpecount",
"data" : "HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sun, 27 Oct 2024 19:51:17 GMT\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length: 22348\r\nLast-Modified: Thu, 24 Oct 2024 09:08:41 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: \"671a0e99-574c\"\r\nAccept-Ranges: bytes\r\n\r\n<!DOCTYPE html>\n<html>\n\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" style=\"position: fixed\" />\n <meta http-equiv=\"Access-Control-Allow-Origin\" content=\"*\">\n <link rel=\"shortcut icon\" href=\"/images/favicon.ico\" type=\"image/x-icon\" />\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, shrink-to-fit=no\">\n <title>RSP\u5e73\u53f0-\u592a\u5c4b</title>\n <link href=\"/CSS/login.css?v1.7\" rel=\"stylesheet\" />\n <link href=\"/JS/Vue/element2.3.7/element.css?v1.7\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"/CSS/common.css?v1.7\">\n <link rel=\"stylesheet\" href=\"/CSS/element-ui-custom.css?v1.7\">\n\n <link href=\"/CSS/animate.min.css?v1.7\" rel=\"stylesheet\" />\n <link href=\"/CSS/plus.style.css?v1.7\" rel=\"stylesheet\" />\n <link href=\"/CSS/iconfont.css?v1.7\" rel=\"stylesheet\" />\n <!-- TaiwuUi CLASS \u6837\u5f0f -->\n <link rel=\"stylesheet\" href=\"/JS/TaiwuUi/taiwu-ui-style.css?v1.7\">\n</head>\n\n<body>\n <div id=\"pageLogin\" v-cloak>\n <div class=\"login-box\">\n <div class=\"login-logo\"></div>\n <div class=\"login-appdownload\" onmouseover=\"showDownAppQrCode(true)\" onmouseout=\"showDownAppQrCode(false)\">\n <div class=\"login-appdownload-qrcode\">\n <div id=\"qrcode\"></div>\n <!-- <img class=\"\" src=\"/images/login/appdown.png\" /> -->\n </div>\n </div>\n <!-- <div class=\"login-title\">\n <div v-if=\"!videoPlaying\" class=\"login-play\" @click=\"playVideo\"></div>\n </div>\n <div class=\"login-bottom-title\"></div> -->\n </div>\n <transition name=\"slide-fade\">\n <button v-if=\"!showLoginPop\" class=\"login-button\" @click=\"showLoginPop=true;pauseVideo()\">\u767b \u5f55</button>\n </transition>\n <transition name=\"slide-fade\">\n <div class=\"login-popup\" v-if=\"showLoginPop\" id=\"loginchange\">\n <div class=\"login-close\" @click=\"showLoginPop=false;playVideo()\"></div>\n <div v-if=\"loginMode\" class=\"login-change-qrcode\" @click=\"changeMode\">\n <!-- <i class=\"icon iconfont\"></i> -->\n <!-- <span class=\"xsanjiao2\"></span> -->\n </div>\n <div v-else class=\"login-change-pc \" @click=\"changeMode\">\n <!-- <span class=\"xsanjiao\"></span> -->\n </div>\n <!-- \u5bc6\u7801\u767b\u5f55 -->\n <div v-if=\"loginMode\" class='loginMode'>\n <h2>\u5bc6\u7801\u767b\u5f55</h2>\n <div class=\"login-input\">\n <input v-bind:id=\"'txtUserName'\" v-model=\"Login.UserId\" type=\"text\" placeholder=\"\u8bf7\u8f93\u5165\u516c\u53f8\u5e10\u53f7\" :disabled=\"btnLoading\" @keyup.enter=\"submitlogin\" />\n </div>\n <div class=\"login-input\">\n <input v-bind:id=\"'txtUserPW'\" v-model=\"Login.UserPw\" type=\"password\" placeholder=\"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801\" :disabled=\"btnLoading\" @keyup.enter=\"submitlogin\" />\n </div>\n <div class=\"login-input color-gray\">\n <label class=\"pswTitStyle\"><input type=\"checkbox\" v-model=\"Login.SavePWFlag\" :disabled=\"btnLoading\" />\u8bb0\u4f4f\u5bc6\u7801</label>\n <label class=\"pull-right pswTitStyle\" @click='retrievePw'>\u5fd8\u8bb0\u5bc6\u7801\uff1f</label>\n </div>\n <div class=\"login-input\">\n <button :disabled=\"btnLoading\" @click=\"submitlogin\"><i v-if=\"btnLoading\" class=\"el-icon-loading\"></i> \u767b \u5f55</button>\n </div>\n </div>\n <!-- \u626b\u7801\u767b\u5f55 -->\n <div v-else>\n <h2>\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u5f55</h2>\n <div id=\"wx_reg\" style=\"display: inline-block; background: #fff; margin-left: 30px;\"></div>\n <!-- <img class=\"login-qrcode-img\" src=\"/images/login/eqd.png\" />\n <span class=\"login-qrcode-text\">\u6253\u5f00<font color=\"#b62b29\">\u624b\u673a\u9489\u9489</font>\uff0c\u626b\u7801\u767b\u5f55</span> -->\n </div>\n </div>\n </transition>\n <div v-if=\"showLoginPop\" class=\"login-mask\"></div>\n <div class=\"video-mask\"></div>\n <video id=\"loginVideo\" poster=\"\" autoplay=\"\" muted=\"\" @play=\"changePlay\" @ended=\"videoEnded\" class=\"vidbacking-active-body-back\">\n <source :src=\"videoURL\" type=\"video/mp4\">\n </video>\n\n </div>\n <iframe id='callbackiframe' name='callbackiframe' src=\"\" style='width: 0;display: none;'></iframe>\n\n <script src=\"JS/Vue/vue2.5/vue.js\"></script>\n <!--<script src=\"~/JS/Vue/vue2.5/vue.min.js\"></script> -->\n\n\n <script src=\"JS/Vue/element2.3.7/element.min.js\"></script>\n <script src=\"/JS/rsa.js\"></script>\n <script src=\"/JS/rsp-common.js?v1.7\"></script>\n <!-- \u901a\u7528\u7ec4\u4ef6 -->\n <script src=\"/JS/vue-component/common.js?v1.7\"></script>\n <script src=\"/JS/TaiwuUi/taiwu-ui-main.js?v1.7\"></script>\n <script src=\"/JS/jquery-2.2.4.min.js\"></script>\n <script src=\"/JS/vidbacking/jquery.vidbacking.js\"></script>\n <!-- <script src=\"/JS/dingding/ddLogin.js\"></script> -->\n <script src=\"/JS/wxLogin/wxLogin.js\"></script>\n <!-- <script type=\"text/javascript\" src=\"http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js\"></script> -->\n <!-- \u751f\u6210\u4e8c\u7ef4\u7801\u63d2\u4ef6 -->\n <script src=\"JS/ace/qrcode.js\"></script>\n <script type=\"text/javascript\">\n\n setRspToken('')\n var pageIndex;\n // var guid = new GUID();\n // var codeId = guid.newGUID();\n var qrcode = {};\n var loading = false;\n // var ding = {\n // \"appid\": \"\",\n // \"agentid\": \"\",\n // \"corpid\": \"\",\n // \"uri\": \"\",\n // \"redirect_uri\": \"\",\n // \"code\": \"\",\n // \"accesstoken\": \"\"\n // };\n //\u8bbe\u7f6e\u626b\u63cf\u6388\u6743id\n // var Nailkey=\"dingoacvkht0mzke3tzdx4\"; //\u5f00\u53d1\u73af\u5883\u6388\u6743id \n // ding.appid = Nailkey;\n //\u8bbe\u7f6e\u91cd\u5b9a\u5411\u5730\u5740 \n //ding.redirect_url = DDServer_PATH+\"api/dingtalk/QRcode/getUserInfo\";\n\n //\u626b\u7801\u89e6\u53d1\u8df3\u8f6c\u9489\u9489\u63a5\u53e3\u5730\u5740 \n // ding.url = \"https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=\" + ding.appid +\n // \"&response_type=code&scope=snsapi_login&state=\" + codeId + \"&redirect_uri=\" + ding.redirect_url;\n // var obj = DDLogin({\n // id: \"login_container\",\n // goto: encodeURIComponent(ding.url),\n // style: \"border:none;background-color:rgba(255,255,255,1);margin-top:-30px;border-radius:0px !important;;\",\n // width: \"234\",\n // height: \"265\",\n // });\n // var loading = false;\n // var Intervaltime = null;\n // var IntervaltimeCount = 0;\n // var ddflag;\n // //\u83b7\u53d6\u9489\u9489\u8fd4\u56de\u7684code \n // var getcode = function (event) {\n // console.log(event)\n // var origin = event.origin;\n // console.log(\"origin\", event.origin);\n // if (origin == \"https://login.dingtalk.com\") { //\u5224\u65ad\u662f\u5426\u6765\u81eaddLogin\u626b\u7801\u4e8b\u4ef6\u3002 \n // var loginTmpCode = event.data; //\u62ff\u5230loginTmpCode\u540e\u5c31\u53ef\u4ee5\u5728\u8fd9\u91cc\u6784\u9020\u8df3\u8f6c\u94fe\u63a5\u8fdb\u884c\u8df3\u8f6c\u4e86 \n // ding.code = loginTmpCode;\n // console.log(\"\u83b7\u53d6\u5230code\", loginTmpCode);\n // window.parent.postMessage(loginTmpCode, '*');\n // //\u8bbe\u7f6e\u91cd\u5b9a\u5411\u5730\u5740 \n // var callurl =\n // \"https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=\" + ding.appid + \"&response_type=code&scope=snsapi_login&state=\" +\n // codeId + \"&redirect_uri=http://&loginTmpCode=\" + loginTmpCode;\n // $(\"#callbackiframe\").attr(\"src\", callurl);\n // setTimeout(function () {\n // Intervaltime = setInterval(function () {\n // if (IntervaltimeCount > 30) {\n // clearInterval(Intervaltime);\n // // showTopMsg(\"\u9489\u9489\u626b\u7801\u767b\u5f55\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u626b\u7801\", \"error\");\n // showTopMsg(\"\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u5f55\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u626b\u7801\", \"error\");\n // return;\n // }\n // IntervaltimeCount++;\n // if (ddflag != 1) {\n // checkTokengeData()\n // }\n // }, 1000)\n // }, 1000);\n // };\n // };\n\n //\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u9646\n var wx = {\n \"appid\": \"\",\n \"agentid\": \"\",\n \"redirect_url\": \"\",\n \"code\": \"\",\n \"state\": Math.ceil(Math.random() * 1000),\n \"redirect_urls\": \"\",\n \"getuserInfo\": \"\",\n };\n // wx.appid = \"ww39f2acbe5ab60932\";\n wx.appid = WXAppid;\n // wx.agentid = \"1000003\"\n wx.agentid = WXAagentid;\n // wx.redirect_url = \"http://10.55.5.44\";\n wx.redirect_url = WXServer;\n // wx.getuserInfo = \"http://devnginx.twrsp.com/\";\n wx.userInfo = WXUserInfo;\n wx.redirect_urls = \"userInfo/facade/api/wechat/QRcode/getUserInfo\";\n var wwLogin = new WwLogin({\n id: \"wx_reg\",\n appid: wx.appid,\n agentid: wx.agentid,\n redirect_uri: encodeURIComponent(wx.redirect_url),\n state: wx.state,\n lang: \"zh\",\n href: \"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDIwMHB4O30NCi5pbXBvd2VyQm94IC50aXRsZSB7ZGlzcGxheTogbm9uZTt9DQouaW1wb3dlckJveCAuaW5mbyB7d2lkdGg6IDIwMHB4O30NCi5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0NCi5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9\"\n });\n //\u83b7\u53d6\u94fe\u63a5\u540e\u9762\u7684\u53c2\u6570\u503c\n wx.code = queryString(1)\n wx.state = queryString(2)\n function queryString(flag) {\n var url = window.location.href\n if (flag == 1) {\n var key = \"code\"\n var begin = url.indexOf(\"?\" + key + \"=\") + key.length + 2;\n } else {\n var key = \"state\"\n var begin = url.indexOf(\"&\" + key + \"=\") + key.length + 2;\n }\n if (begin == -1) return '';\n var url2 = url.slice(begin);\n this.end = url2.indexOf(\"&\");\n if (this.end == -1) {\n return url2.slice(0);\n } else {\n return url2.slice(0, this.end);\n }\n console.log(begin)\n }\n\n if (this.end != -1) {\n var url = wx.redirect_urls;\n $.ajax({\n type: 'get',\n url: wx.userInfo + url,\n async: false,\n contentType: \"application/json\",\n data: {\n 'code': wx.code, //json\u683c\u5f0f\n 'state': wx.state,\n 'appid': wx.appid,\n },\n dataType: 'json',\n success: function (data, status) {\n if (data.success && data.businessCode == 1) {\n setRspToken(data.data);\n checkTokengeData()\n } else {\n showTopMsg(\"\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u5f55\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u626b\u7801\", \"error\");\n return;\n }\n }\n });\n }\n\n\n //\u626b\u7801\u767b\u9646Token\u9a8c\u8bc1\n function checkTokengeData() {\n if (loading) return;\n loading = true;\n CallWebApi2(\"userInfo/api/wechat/QRcode/checkToken\", \"POST\", {\n // CallWebApi2(\"userInfo/api/dingtalk/QRcode/checkToken\", \"POST\", {\n //CallWebApi(\"dingtalk/QRcode/checkToken\", \"POST\", {\n \"state\": wx.state //codeId\n },\n function (Result) {\n loading = false;\n hideLoading();\n if (Result && Result.success && !isNull(Result.data)) {\n // clearInterval(Intervaltime);\n // showTopMsg(\"\u9489\u9489\u626b\u7801\u767b\u5f55\u6210\u529f\", \"success\");\n showTopMsg(\"\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u5f55\u6210\u529f\", \"success\");\n setRspToken(Result.data)\n setTimeout(function () {\n // window.location.href = \"/Home.html\" + window.location.search;\n window.location.href = \"/Home.html\";\n }, 500);\n return;\n } else if (Result.errorCode == 2 && Result.success == false) {\n // showTopMsg(\"\u9489\u9489\u626b\u7801\u672a\u83b7\u53d6\u5230\u7528\u6237\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u5bc6\u7801\u767b\u9646\", \"error\")\n showTopMsg(\"\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u672a\u83b7\u53d6\u5230\u7528\u6237\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u5bc6\u7801\u767b\u9646\", \"error\")\n ddflag = 1;\n // clearInterval(Intervaltime);\n setTimeout(function () {\n this.pageIndex.vm.loginMode = true\n }, 1000);\n return;\n } else {\n // clearInterval(Intervaltime);\n return;\n }\n }, null,\n function () {\n // clearInterval(Intervaltime);\n }, false);\n }\n //\u9489\u9489\u626b\u7801\u76d1\u542c \n // if (typeof window.addEventListener != 'undefined') {\n // window.addEventListener('message', getcode, false);\n // } else if (typeof window.attachEvent != 'undefined') {\n // window.attachEvent('onmessage', getcode);\n // };\n $(function () {\n pageIndex = new PageLogin();\n pageIndex.init();\n\n });\n\n function PageLogin() {\n var _this = this;\n var base = new Base64();\n _this.init = function () {\n qrcode = new QRCode(document.getElementById(\"qrcode\"));\n //location.origin+\n // qrcode.makeCode(\"https://h5.taiwu.com/download/twrspapp\");\n qrcode.makeCode(\"https://m.taiwu.com/downloadAppManger\");\n // qrcode.makeCode(location.origin+'/pages/SYS/DownloadAPP.html');\n $(document).keydown(function (event) {\n if (event.keyCode == \"13\" && _this.vm.showLoginPop) {\n if (!_this.vm.btnLoading)\n _this.vm.submitlogin();\n } else if (event.keyCode == \"13\") { //\u56de\u8f66\u952e\n _this.vm.showLoginPop = true;\n _this.vm.pauseVideo();\n }\n if (event.keyCode == \"27\") { //ESC\n _this.vm.showLoginPop = false;\n _this.vm.playVideo();\n }\n });\n _this.vm.getUserCookie();\n };\n _this.vm = new Vue({\n el: \"#pageLogin\",\n data: {\n btnLoading: false, //\u6309\u94ae\u6267\u884cloading\n showLoginPop: false, //\u662f\u5426\u663e\u793a\u767b\u5f55Pop\n videoPlaying: true, //\u89c6\u9891\u662f\u5426\u5728\u64ad\u653e\u4e2d\n videoURL: \"/video/login.mp4?4\", //\u89c6\u9891\u5730\u5740\n loginMode: true,\n //\u767b\u5f55\u5bf9\u8c61\n Login: {\n UserId: '',\n UserPw: '',\n SavePWFlag: false\n },\n },\n computed: {},\n methods: {\n getQueryString(name) { \n const reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\", \"i\");\n const r = window.location.search.substr(1).match(reg)\n if (r != null) { \n return unescape(r[2])\n }\n return null\n },\n ",
"datamd5" : "315dda32efc59a63a3a95e5e2dec5521",
"datammh3" : 1606739677,
"device" : {
"class" : "<enterprise field>: device.class"
},
"geolocus" : {
"asn" : "AS4812",
"continent" : "AS",
"continentname" : "Asia",
"country" : "CN",
"countryname" : "China",
"domain" : [
"apnic.net",
"chinatelecom.cn",
"online.sh.cn",
"shtel.com.cn"
],
"isineu" : "false",
"latitude" : "35.86166",
"location" : "35.86166,104.195397",
"longitude" : "104.195397",
"netname" : "CHINANET-SH",
"organization" : "CHINANET shanghai province network",
"subnet" : "222.72.0.0/15"
},
"ip" : "222.73.124.72",
"ipv6" : "false",
"latitude" : "34.7732",
"location" : "34.7732,113.7220",
"longitude" : "113.7220",
"node" : {
"country" : "<enterprise field>: node.country",
"groupid" : "<enterprise field>: node.groupid",
"id" : "<enterprise field>: node.id",
"physicalcountry" : "<enterprise field>: node.physicalcountry"
},
"organization" : "China Telecom Group",
"os" : "Linux Kernel",
"osvendor" : "Linux",
"port" : 49668,
"product" : "Nginx",
"productvendor" : "F5",
"protocol" : "http",
"protocolversion" : "1.1",
"reason" : "OK",
"seen_date" : "2024-10-27",
"source" : "datascan",
"status" : 200,
"subnet" : "222.72.0.0/15",
"tag" : "<enterprise field>: tag",
"tls" : "false",
"transport" : "tcp",
"url" : "/"
}