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 | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 0038b33..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:'', @@ -114,10 +113,10 @@ const UIP = uni.getStorageSync('UIP'); if (UIP) { that.IP = UIP; + that.baseIP = UIP; } else { that.IP = ''; } - }, onLoad:function(){ // #ifdef APP-PLUS @@ -150,11 +149,10 @@ this.$refs.inputDialog.open() }, dialogInputConfirm(type){ - this.baseUrl=type - this.IP = type - this.UIP = type - uni.setStorageSync('UIP',type) - }, + this.baseIP = type + // 瀛樺叆鏈湴缂撳瓨 + uni.setStorageSync('UIP',this.baseIP) + }, checkboxChange: function(e) { if (e.detail.value.length == 1) { @@ -176,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) -- Gitblit v1.9.1