TM
2020-12-16 b8f1913c5077437347ae3e311e01fbeb5e4dd5ff
添加密码格式验证
3 files modified
16 ■■■■■ changed files
pages/changePassword/changePassword.js 7 ●●●●● patch | view | raw | blame | history
pages/forgetPassword/forgetPassword.js 2 ●●● patch | view | raw | blame | history
pages/index/index.js 7 ●●●●● patch | view | raw | blame | history
pages/changePassword/changePassword.js
@@ -50,6 +50,13 @@
      });
      return
    }
    if (!validator.checkPassword(this.data.info.newPwd)) {
      my.showToast({
        content: '新密码格式有误,应为8-16位字母数字组合',
        duration: 2000,
      });
      return
    }
    if (this.data.newTwo != this.data.info.newPwd) {
      my.showToast({
        content: '两次新密码不一致,请确认',
pages/forgetPassword/forgetPassword.js
@@ -89,7 +89,7 @@
    }
    if(!validator.checkPassword(this.data.info.newPwd)){
      my.showToast({
        content: '密码为8-16数字字母组合',
        content: '新密码为8-16数字字母组合',
        duration: 2000
      })
      return
pages/index/index.js
@@ -91,6 +91,13 @@
        });
        return
      }
      if(!validator.checkPassword(this.data.password)){
        my.showToast({
          content:'密码格式有误',
          duration:2000
        });
        return
      }
    }else{
      url = '/sib/xcx/login/loginByCode'
      obj.mblNo = this.data.userNo