From 8c1008b3da04ef89f029a6a1cad8704b5b995fd1 Mon Sep 17 00:00:00 2001
From: Aaron <578780649@qq.com>
Date: Tue, 20 Jul 2021 18:10:31 +0800
Subject: [PATCH] =?UTF-8?q?h5=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=20=20=E4=BF=AE=E6=94=B9=EF=BC=88=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96=EF=BC=89h5=E5=92=8Capp=E7=9A=84=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/user.js | 2 +-
pages/user/ChangePassword/index.vue | 42 ++++++++++++----
pages/user/Login/index.vue | 75 +++++++++++++++--------------
pages/user/PersonalData/index.vue | 4 +-
4 files changed, 75 insertions(+), 48 deletions(-)
diff --git a/api/user.js b/api/user.js
index ef7d32a..b9045c3 100644
--- a/api/user.js
+++ b/api/user.js
@@ -63,7 +63,7 @@ export function register(data) {
*/
export function registerReset(data) {
return request.post('/register/reset', data, {
- login: false,
+ login: true,
})
}
diff --git a/pages/user/ChangePassword/index.vue b/pages/user/ChangePassword/index.vue
index 0d65353..47d7ac9 100644
--- a/pages/user/ChangePassword/index.vue
+++ b/pages/user/ChangePassword/index.vue
@@ -16,7 +16,7 @@
-
+
确认修改
@@ -82,13 +82,24 @@ export default {
password: that.password,
})
.then(res => {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- duration: 2000,
- })
-
- // that.$yrouter.push({ path: "/pages/user/Login/index" });
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000,
+ })
+ this.$yrouter.replace({
+ path: "/pages/user/Login/index",
+ query: {},
+ });
+ // getLogout()
+ // .then((res) => {
+ // this.$store.commit("logout");
+ // this.$yrouter.replace({
+ // path: "/pages/user/Login/index",
+ // query: {},
+ // });
+ // })
+ // .catch((err) => {});
})
.catch(res => {
uni.showToast({
@@ -134,11 +145,24 @@ export default {
diff --git a/pages/user/Login/index.vue b/pages/user/Login/index.vue
index 8f4aebc..6086581 100644
--- a/pages/user/Login/index.vue
+++ b/pages/user/Login/index.vue
@@ -9,7 +9,7 @@
保存修改