| | |
| | | <script type="text/javascript" src="../../js/http.js"></script> |
| | | |
| | | |
| | | <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" /> |
| | | <!-- 导入自定义js文件 --> |
| | | <!-- <script type="module" src="../../js/global.js"></script> --> |
| | | |
| | | |
| | | |
| | | <!-- <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" /> --> |
| | | |
| | | </head> |
| | | <body> |
| | |
| | | </div> |
| | | </div> |
| | | </body> |
| | | |
| | | <script> |
| | | var app = new Vue({ |
| | | el: '#app', |
| | |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | methods: { |
| | | loginClick() { |
| | | const data = { |
| | |
| | | get('Login/LoginSave', data).then(res => { |
| | | if (res.code === '200') { |
| | | // window.location.reload() //页面重新 |
| | | |
| | | if (!window.localStorage) { |
| | | alert("浏览器不支持localstorage"); |
| | | } else { |
| | | localStorage.setItem('userid', res.data.userid) |
| | | localStorage.setItem('usercode', res.data.usercode) |
| | | localStorage.setItem('username', res.data.username) |
| | | localStorage.setItem('usertype', res.data.usertype) |
| | | } |
| | | window.location.href = '../xtsy/index.html' |
| | | } |
| | | |
| | |
| | | username: res.data.username, |
| | | usertype: res.data.usertype |
| | | } |
| | | |
| | | |
| | | |
| | | post('Login/ForcedOffline?userid=' + res.data.userid + '&usercode=' + res.data |
| | | .usercode + '&username=' + res.data.username + '&usertype=' + res.data |
| | | .usertype).then(res2 => { |
| | |
| | | </script> |
| | | <style type="text/css"> |
| | | body { |
| | | background-color: #436df5; |
| | | background-color: #2651d8; |
| | | } |
| | | |
| | | .body { |