wangxy 4 недель назад
Родитель
Сommit
d342ff2981
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      pages/admin/zizhanghao/components/resetPassword.vue

+ 19 - 0
pages/admin/zizhanghao/components/resetPassword.vue

@@ -8,6 +8,10 @@
 						<view class="phone-form-label"><text class="form-label-require"></text>密码</view>
 						<input v-model="password" placeholder="请输入密码" />
 					</view>
+					<view class="form-label-input">
+						<view class="phone-form-label"><text class="form-label-require"></text>确认密码</view>
+						<input v-model="password2" placeholder="请输入二次确认密码" />
+					</view>
 				</view>
 				<view class="common-btn-box">
 					<view class="not-confirm-btn" @click="handleClose">{{notBtn}}</view>
@@ -49,6 +53,7 @@
 	});
 
 	const password = ref('');
+	const password2 = ref('');
 	const userId = ref(null)
 
 	const commonPopup = ref(null); // 索引
@@ -73,6 +78,20 @@
 			})
 			return;
 		}
+		if (!password2.value) {
+			uni.showToast({
+				icon: 'none',
+				title: '请输入二次确认密码'
+			})
+			return;
+		}
+		if (password.value !== password2.value) {
+			uni.showToast({
+				icon: 'none',
+				title: '两次输入密码不同'
+			})
+			return;
+		}
 		getUserGuanliReset({
 			userId: userId.value,
 			password: password.value