This commit is contained in:
路 范
2021-12-03 11:04:15 +08:00
parent 21f36e8045
commit 897b5b6f6c

View File

@@ -8,23 +8,23 @@
/>
<title>宁波房屋征收</title>
<script>
// function getQueryString(name) {
// var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
// var r = window.location.search.substr(1).match(reg);
// if (r != null) return unescape(r[2]); return null;
// }
// //debugger
// var ticket = getQueryString('ticket');
// console.log('1201-ticket' + ticket)
// if (ticket)
// window.sessionStorage.setItem('ticket', ticket)
// else {
// if (window.sessionStorage.getItem('ticket') == null) {
// setTimeout(function () { window.close() }, 10);
// //window.open('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
// location.replace('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
// }
// }
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
//debugger
var ticket = getQueryString('ticket');
console.log('1201-ticket' + ticket)
if (ticket)
window.sessionStorage.setItem('ticket', ticket)
else {
if (window.sessionStorage.getItem('ticket') == null) {
setTimeout(function () { window.close() }, 10);
//window.open('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
location.replace('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
}
}
</script>
<script
type="text/javascript"