From c8dc3d4f33e7548e2d02ba14e9cb770afda5df2b Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期四, 24 二月 2022 17:05:41 +0800 Subject: [PATCH] # --- pages/login/login.vue | 21 +++++++-------------- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 9395568..82bb028 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -89,7 +89,6 @@ url: { bindingThirdPhone: '/sys/thirdLogin/bindingThirdPhone' }, - baseIP:'', type:'', userName:'', password:'', @@ -112,13 +111,12 @@ that.password = ''; } const UIP = uni.getStorageSync('UIP'); - console.log(UIP) if (UIP) { that.IP = UIP; + that.baseIP = UIP; } else { that.IP = ''; } - }, onLoad:function(){ // #ifdef APP-PLUS @@ -151,16 +149,11 @@ 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 + // 瀛樺叆鏈湴缂撳瓨 + uni.setStorageSync('UIP',this.baseIP) + }, checkboxChange: function(e) { - console.log(e.detail.value.length); if (e.detail.value.length == 1) { //鑾峰彇缂撳瓨鐨勮处鍙� @@ -181,8 +174,9 @@ 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) @@ -228,7 +222,6 @@ 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'}) }) -- Gitblit v1.9.1