From 8e852298cee281cfa3b2312f48b4840bbcd5a02d Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 29 七月 2024 14:52:22 +0800 Subject: [PATCH] # --- pages/login/login.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 9641e83..f241d2e 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -190,6 +190,7 @@ } }, onLogin: function (){ + console.log(this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + '/login.action'); if(!this.userName || this.userName.length==0){ uni.showToast({title: '璇峰~鍐欒处鍙�',icon: "none"}) return; @@ -199,10 +200,11 @@ return; } uni.showLoading(); + uni.request({ url: this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + '/login.action', data: { - mobile:this.userName, + username:this.userName, password:md5.hex_md5(this.password) }, header: { @@ -226,7 +228,7 @@ } uni.setStorageSync('token', res.data.token); setTimeout(() => { - uni.navigateBack(); // 灏忕▼搴忕敤杩欎釜 鎶婇椤佃矾鐢辨斁绗竴涓� + // uni.navigateBack(); // 灏忕▼搴忕敤杩欎釜 鎶婇椤佃矾鐢辨斁绗竴涓� uni.reLaunch({ url: '../index/index' }); -- Gitblit v1.9.1