| | |
| | | loading: false, |
| | | btnText: '登录' |
| | | }, |
| | | baseUrl: 'http://192.168.4.188:9528' |
| | | } |
| | | }, |
| | | onLoad:function(){ |
| | | this.user.userName = uni.getStorageSync('userName') |
| | | this.user.password = uni.getStorageSync('password') |
| | | // #ifdef APP-PLUS |
| | | var that=this |
| | | plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) { |
| | |
| | | that.load.btnText = '登录中'; |
| | | uni.setStorageSync('token', res.data.token); |
| | | uni.setStorageSync('userName', that.user.userName); |
| | | uni.setStorageSync('baseUrl',that.baseUrl) |
| | | uni.setStorageSync('password', that.user.password); |
| | | setTimeout(()=> { |
| | | uni.showToast({title: '登录成功'}) |
| | | setTimeout(()=> { |