| | |
| | | url: { |
| | | bindingThirdPhone: '/sys/thirdLogin/bindingThirdPhone' |
| | | }, |
| | | baseIP:'', |
| | | type:'', |
| | | userName:'', |
| | | password:'', |
| | |
| | | that.password = ''; |
| | | } |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | console.log(UIP) |
| | | if (UIP) { |
| | | that.IP = UIP; |
| | | } else { |
| | | that.IP = ''; |
| | | } |
| | | |
| | | }, |
| | | onLoad:function(){ |
| | | // #ifdef APP-PLUS |
| | |
| | | this.$refs.inputDialog.open() |
| | | }, |
| | | dialogInputConfirm(type){ |
| | | this.baseUrl=type |
| | | this.IP = type |
| | | this.UIP = type |
| | | uni.setStorageSync('UIP',type) |
| | | console.log(this.IP) |
| | | console.log(this.baseUrl) |
| | | console.log(this.UIP) |
| | | }, |
| | | this.baseIP = type |
| | | |
| | | }, |
| | | checkboxChange: function(e) { |
| | | console.log(e.detail.value.length); |
| | | if (e.detail.value.length == 1) { |
| | | |
| | | //获取缓存的账号 |
| | |
| | | return; |
| | | } |
| | | uni.showLoading(); |
| | | console.log(this.baseIP) |
| | | uni.request({ |
| | | url: 'http://'+ this.baseUrl + ':8082/xgmwms' + '/login.action', |
| | | url: this.baseHttp + this.baseIP + this.baseUrl + '/login.action', |
| | | data: { |
| | | mobile:this.userName, |
| | | password:md5.hex_md5(this.password) |
| | |
| | | var info = plus.push.getClientInfo(); |
| | | var cid = info.clientid; |
| | | this.$http.get("/sys/user/saveClientId",{params:{clientId:cid}}).then(res=>{ |
| | | console.log("res::saveClientId>",res) |
| | | this.$tip.success('登录成功!') |
| | | this.$Router.replaceAll({name:'index'}) |
| | | }) |