| | |
| | | that.password = ''; |
| | | } |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | console.log(UIP) |
| | | if (UIP) { |
| | | that.IP = UIP; |
| | | } else { |
| | |
| | | this.IP = type |
| | | this.UIP = type |
| | | uni.setStorageSync('UIP',type) |
| | | console.log(this.IP) |
| | | console.log(this.baseUrl) |
| | | console.log(this.UIP) |
| | | }, |
| | | checkboxChange: function(e) { |
| | | console.log(e.detail.value.length); |
| | | if (e.detail.value.length == 1) { |
| | | |
| | | //获取缓存的账号 |
| | |
| | | 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'}) |
| | | }) |