| | |
| | | } |
| | | $("#Organization").append(Organization); |
| | | form.render('select'); |
| | | |
| | | //读取配置文件 |
| | | get_ReadConfigFile(); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | //form.render(); |
| | | |
| | |
| | | $("#LAY-user-login-password").focus(); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //读取配置文件 |
| | | function get_ReadConfigFile() { |
| | | //获取本地存储的数据 |
| | | var data = localStorage.getItem("data"); |
| | | if (data != null) { |
| | | var data2 = JSON.parse(data); |
| | | $("#LAY-user-login-username").val(data2["UserID"]); |
| | | $("#Organization").val(data2["OrgID"]); |
| | | form.render('select'); |
| | | } |
| | | console.log(JSON.parse(data)); |
| | | } |
| | | |
| | | //存储配置文件 |
| | | function get_WriteConfigFile() { |
| | | //清空本地存储的数据 |
| | | localStorage.clear(); |
| | | var data = { |
| | | UserID: sessionStorage["Czybm"] |
| | | , OrgID: sessionStorage["OrganizationID"] |
| | | } |
| | | //本地存储 |
| | | localStorage.setItem("data", JSON.stringify(data)); |
| | | } |
| | | |
| | | //登录 |
| | | function loging() { |
| | | if ($("#Organization").val() == 0) { |
| | |
| | | } else {//PC端 |
| | | window.location.href = '../../views/index.html' |
| | | } |
| | | get_WriteConfigFile(); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function playSound() { |
| | | var audio = document.getElementById("cs"); |
| | | if (audio == null) |