Edit D:\xinhaisoft\crisis_new\lb\inc\start.htm
??<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="renderer" content="webkit"> <title>???</title> <style> body { background-color: #fff; text-align: center; } img { max-width: 100%; } </style> </head> <body> <img src="../images/loading.gif"> <script src="/Scripts/jquery.min.js"></script> <script src="/Scripts/store2.min.js"></script> <script src="/Scripts/js.cookie.min.js"></script> <script src="/Scripts/layer/layer.js"></script> <script src="/Scripts/global.js"></script> <script> $(function () { var lbid = GetQueryString('lbid') var key = GetQueryString('key') var testtype = GetQueryString('testtype') var view = GetQueryString('view') var school = GetQueryString('school') var user = store('user') var ageRange = [0, 100] // ??????? checkParams() function checkParams() { Cookies.remove('TestID') Cookies.remove('TestAct') Cookies.remove('TestDevice') Cookies.remove('TestView') if (!/^[1-9]\d*$/g.test(lbid)) { layer.msg('????????bid?????', function () { history.back() }) } else { testtype !== '0' && testtype !== '1' && (testtype = 0) checkLogin() } } // ??????? function checkLogin() { if (key) { $.get(Global.Host + '/member/' + key, function (json) { if (json.code === 0) { Cookies.set('PSYMEMBER', json.data.cookie) store('user', json.data) user = json.data getScaleInfo() } }) } else if (user) { getScaleInfo() } else if (school) { window.location = '/m/vant/#/school/' + school + '/student/login?redirect=' + encodeURIComponent(window.location.href) } else { layer.alert('?????????????????????????????') } } // ????????? function getScaleInfo() { $.get(Global.Host + '/lb/' + lbid, { act: 'age' }, function (json) { if (json.code === 0) { ageRange[0] = json.data.min || 0 ageRange[1] = json.data.max || 100 checkAge() } }) } // ??????? function checkAge() { const age = user.age if (age < ageRange[0] || age > ageRange[1]) { if (age === 0) { window.location = '/member/changebirthday.htm?id=' + user.key + '&redirect=' + window.location.href } else { layer.alert('???' + user.id + '????????' + user.age + '????? ' + ageRange[0] + ' ??? ' + ageRange[1] + ' ????????????????????' + lbid + '????') } } else { start() } } // ????????? function start() { $.ajax(Global.Host + '/test/start', { method: 'POST', headers: { Authorization: user.token }, data: { lbid: lbid, testtype: testtype }, success: function (json) { if (json.code === 0) { Cookies.set('TestID', json.data) Cookies.set('TestAct', 'MemberTest') Cookies.set('TestDevice', 'Mobile') Cookies.set('TestView', view) window.location.replace('/lb/html/' + lbid + '.htm') } else if (json.code === 1) { layer.alert(json.message, function () { history.back() }) } else if (json.code === 2) { layer.confirm('?????????????????????????????????????????', { btn: ['???', '???'] }, function () { start() }, function () { history.back() }) } else if (json.code === -3) { key = user.key checkLogin() } }, error: function () { layer.confirm('?????????????????????????????????????????', { btn: ['???', '???'] }, function () { start() }, function () { history.back() }) } }) } }) // ??????????????????????? function GetQueryString(name) { var search = window.location.search.substring(1) || window.location.hash.split('?')[1] || '' var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i') var res = search.match(reg) return res ? decodeURIComponent(res[2]) : '' } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de