From 217808e8c83d7d665aea720b0d59a4085e7012e1 Mon Sep 17 00:00:00 2001
From: 819527061@qq.com <123456>
Date: 星期二, 12 三月 2024 15:20:26 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 pages/login/resetPassword/resetPassword.vue |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/pages/login/resetPassword/resetPassword.vue b/pages/login/resetPassword/resetPassword.vue
index ffd1ac8..b862f88 100644
--- a/pages/login/resetPassword/resetPassword.vue
+++ b/pages/login/resetPassword/resetPassword.vue
@@ -107,13 +107,33 @@
 				}
 			}
 		},
+		computed: {
+			roleType() {
+				return uni.getStorageSync('roleType')
+			}
+		},
 		onLoad(params) {
-			this.userInfo = JSON.parse(params.userInfo)
+			if (this.roleType === 3) {
+				this.userInfo = JSON.parse(params.userInfo)
+			} else {
+				this.getUserInfo(params.phone, params.idCard)
+			}
+
 		},
 		onReady() {
 			this.$refs.uForm.setRules(this.rules)
 		},
 		methods: {
+			getUserInfo(phone, idCard) {
+				this.$reqGet('phoneAndCard', { phone, idCard }).then(res => {
+					if (res.code === 0) {
+						this.userInfo = res.data
+					} else {
+						uni.$u.toast('鍔犺浇澶辫触')
+					}
+				})
+
+			},
 			checkChange(name) {
 				this.inputType = name.length === 0 ? 'password' : ''
 				this.isFocus = true

--
Gitblit v1.9.1