From 3930a1d44ab273a6d7155f4fa4163944458c7ca1 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 10 一月 2023 15:53:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master
---
pages/login/login.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index d1ff7e9..d9d9ccd 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -45,11 +45,11 @@
loading: false,
btnText: '鐧诲綍'
},
- baseUrl: 'http://192.168.4.188:9528'
}
},
onLoad:function(){
this.user.userName = uni.getStorageSync('userName')
+ this.user.password = uni.getStorageSync('password')
// #ifdef APP-PLUS
var that=this
plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) {
@@ -68,7 +68,7 @@
uni.request({
url: that.baseUrl + '/login.action',
fail(result) {
- uni.showToast({title: '璇锋眰澶辫触'})
+ uni.showToast({icon:'error',title: '璇锋眰澶辫触'})
},
data: {
username:that.user.userName,
@@ -79,7 +79,7 @@
},
success(result) {
if (result.statusCode === 404) {
- uni.showToast({title: '璇烽噸鏂扮櫥褰�', icon: "none", position: 'top'})
+ uni.showToast({title: '鐧诲綍澶辫触', icon: "error"})
return
}
let res = result.data
@@ -88,7 +88,7 @@
that.load.btnText = '鐧诲綍涓�';
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userName', that.user.userName);
- uni.setStorageSync('baseUrl',that.baseUrl)
+ uni.setStorageSync('password', that.user.password);
setTimeout(()=> {
uni.showToast({title: '鐧诲綍鎴愬姛'})
setTimeout(()=> {
--
Gitblit v1.9.1