TM
2020-12-16 916ba7dbd9b28f126b37f4db815a91f38aac4dbb
pages/forgetPassword/forgetPassword.js
@@ -50,11 +50,11 @@
      })
    }else if(code == 2){
      this.setData({
        'info.newPwd':md5.hex_md5(e.detail.value)
        'info.newPwd':e.detail.value
      })
    }else{
      this.setData({
        newPwdTwo: md5.hex_md5(e.detail.value)
        newPwdTwo:e.detail.value
      })
    }
  },
@@ -89,7 +89,14 @@
    }
    if(!validator.checkPassword(this.data.info.newPwd)){
      my.showToast({
        content: '密码为8-16数字字母组合',
        content: '新密码为8-16数字字母组合',
        duration: 2000
      })
      return
    }
    if(!this.data.newPwdTwo){
      my.showToast({
        content: '请再次输入新密码',
        duration: 2000
      })
      return
@@ -118,7 +125,9 @@
      err=>{},
      false,
      {
        ...this.data.info
        mblNo:this.data.info.mblNo,
        verCode:this.data.info.verCode,
        newPwd: md5.hex_md5(this.data.info.mblNo+this.data.info.newPwd)
      }
    )
  }