Ver Fonte

修改忘记密码接口

tenggouwa há 6 anos atrás
pai
commit
536415c720
2 ficheiros alterados com 9 adições e 2 exclusões
  1. 4 1
      src/config/api-config.js
  2. 5 1
      src/views/home/login.vue

+ 4 - 1
src/config/api-config.js

@@ -92,7 +92,9 @@ export default {
 
    Certification: apiUrl.baseNewUrl + '/api/certification/identity', //提交认证信息
 
-   resetPwd:apiUrl.baseNewUrl + '/api/member/resetpassword', //重置密码
+  //  resetPwd:apiUrl.baseNewUrl + '/api/member/resetpassword', //重置密码
+   resetPwd:apiUrl.baseNewUrl + '/api/member/brokernewresetpassword', //重置密码
+
 
    pwdSend:apiUrl.baseNewUrl + '/api/send/reset', // 密码找回(邮件短信)发送
 
@@ -104,4 +106,5 @@ export default {
 
    addAdress:apiUrl.baseNewUrl + '/Applications/account/ManageAdress',//新增地址
 
+
 }

+ 5 - 1
src/views/home/login.vue

@@ -486,11 +486,15 @@ export default{
         return false;
       }
       let postdata = {
-        resettoken:this.setParam.resettoken,
+        // resettoken:this.setParam.resettoken,
+        area:this.area,
+        mobile:this.setParam.username,
         password:this.setParam.password,
         password2:this.setParam.password2,
+        code:this.setParam.resettoken,
         os:"web",
         type:"sms",
+        broker_code:'04031632e48cd96e'
       };
       this.setLoad=true;
       ajax(this,this.extendApi.resetPwd,postdata,(data)=>{