浏览代码

首次登录强制修改密码

chenrui 4 年之前
父节点
当前提交
17213646ec
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/login/login.vue

+ 7 - 1
pages/login/login.vue

@@ -122,7 +122,13 @@ export default {
 						_this.form.password = '';
 						_this.form.password = '';
 					}
 					}
 					uni.setStorageSync('loginTimeOut', 'NO');
 					uni.setStorageSync('loginTimeOut', 'NO');
-					_this.toMain();
+					if(res.data.auth_user.mustChangePwd == 0){
+						_this.toMain();
+					}else{
+						uni.reLaunch({
+						    url: '/pages/userCenter/changePwd'
+						})
+					}
 				} else {
 				} else {
 					uni.showToast({ icon: 'none', title: res.message });
 					uni.showToast({ icon: 'none', title: res.message });
 				}
 				}