liangjin
2021-03-16 576be8c8d9978b3d8d432d01f8da2cbf43a556ca
pages/forgetPassword/forgetPassword.js
@@ -21,7 +21,7 @@
      return 
    }
    $api.ajax(
      '/sib/user/sendMsg',
      '/zic/user/sendMsg',
      'POST',
      (res)=>{
        
@@ -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
@@ -102,7 +109,7 @@
      return
    }
    $api.ajax(
      '/sib/user/forgetPwd',
      '/zic/user/forgetPwd',
      'POST',
      res=>{
        my.showToast({
@@ -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)
      }
    )
  }