From 5df158f54eb0c7e0e0ba79eb172aaba42735a221 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期六, 26 二月 2022 17:59:48 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 20 ++++++--------------
1 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 9395568..fadf3bb 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) {
//鑾峰彇缂撳瓨鐨勮处鍙�
@@ -182,7 +175,7 @@
}
uni.showLoading();
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 +221,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