| | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
| | | <!-- <meta name="HandheldFriendly" content="true" /> --> |
| | | <!-- <meta name="MobileOptimized" content="320" /> --> |
| | | <meta name="HandheldFriendly" content="true" /> |
| | | <meta name="MobileOptimized" content="320" /> |
| | | <title>新凯迪制造云平台</title> |
| | | <!-- 引入像素转换 px->rpx --> |
| | | <!-- <script src="../../js/rpx4html.js"></script> --> |
| | |
| | | <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="text/javascript" src="../../js/global.js"></script> |
| | | |
| | | |
| | | |
| | | <!-- <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" /> --> |
| | | |
| | | </head> |
| | | <body> |
| | |
| | | </van-field> |
| | | </div> |
| | | <div style="margin-top:30px;"> |
| | | <van-button type="info" style="border-radius: 10px;" @click='loginClick' size="large">立即登录 |
| | | <van-button type="info" style="border-radius: 10px;" :disabled="username===''||password===''" |
| | | @click='loginClick' size="large">立即登录 |
| | | </van-button> |
| | | </div> |
| | | </div> |
| | |
| | | </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 => { |
| | | post('Login/ForcedOffline' + formatParams(data2)).then(res2 => { |
| | | if (res2.code === '200') { |
| | | this.loginClick() |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | }).catch(err => { |
| | | console.log(err); |
| | | }); |
| | |
| | | </script> |
| | | <style type="text/css"> |
| | | body { |
| | | background-color: #436df5; |
| | | background-color: #2651d8; |
| | | } |
| | | |
| | | .body { |