From cce6dc1eb47dbb08c7cc243a22f967977c0d856a Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 28 十二月 2022 16:30:15 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 2 ++
pages/user/user_detail/userDetail.vue | 16 +++++++++++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 4b29fea..cdac97e 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -49,6 +49,7 @@
},
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 ) {
@@ -87,6 +88,7 @@
that.load.btnText = '鐧诲綍涓�';
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userName', that.user.userName);
+ uni.setStorageSync('password', that.user.password);
setTimeout(()=> {
uni.showToast({title: '鐧诲綍鎴愬姛'})
setTimeout(()=> {
diff --git a/pages/user/user_detail/userDetail.vue b/pages/user/user_detail/userDetail.vue
index 888c2f0..73cda0f 100644
--- a/pages/user/user_detail/userDetail.vue
+++ b/pages/user/user_detail/userDetail.vue
@@ -50,6 +50,9 @@
</view>
</view>
</view>
+ <view class="logOut" @click="logOut()">
+ 閫�鍑虹櫥褰�
+ </view>
</view>
</template>
@@ -76,7 +79,11 @@
console.log(res.data);
}
})
+ },
+ logOut() {
+
}
+
}
}
</script>
@@ -96,9 +103,16 @@
}
.item-right {
text-align: end;
- color: #afafaf;
+ color: #6f6f6f;
}
.user-icons {
text-align: center;
}
+ .logOut {
+ height: 90rpx;
+ line-height: 90rpx;
+ text-align: center;
+ background-color: #fff;
+ margin-top: 30rpx;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1