| | |
| | | <!-- 导入自定义全局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> |
| | | <div id="app"> |
| | |
| | | </div> |
| | | <div style="margin-top:30px;"> |
| | | <van-button type="info" style="border-radius: 10px;" :disabled="username===''||password===''" |
| | | @click='loginClick' size="large">立即登录 |
| | | @click='loginClick' :loading='submitIsDisabled' loading-text="正在登录,请稍等..." size="large">立即登录 |
| | | </van-button> |
| | | </div> |
| | | </div> |
| | |
| | | el: '#app', |
| | | data: function() { |
| | | return { |
| | | submitIsDisabled: false, |
| | | username: '999', |
| | | password: '123', |
| | | isOpenEye: false, |
| | |
| | | password: this.password, |
| | | usertype: 'APP' |
| | | } |
| | | |
| | | this.submitIsDisabled = true |
| | | get('Login/LoginSave', data).then(res => { |
| | | if (res.code === '200') { |
| | | // window.location.reload() //页面重新 |
| | |
| | | localStorage.setItem('usertype', res.data.usertype) |
| | | } |
| | | window.location.href = '../xtsy/index.html' |
| | | } else { |
| | | this.submitIsDisabled = false |
| | | } |
| | | |
| | | if (res.code === '302') { |