|
@@ -20,23 +20,23 @@ var passwordPage = new Vue({
|
|
|
imageCode:'',
|
|
|
phonePwd: {
|
|
|
mobileOrEmail :'',
|
|
|
- activateCode : '',
|
|
|
- passWord : '',
|
|
|
- confirmPwd : '',
|
|
|
+ smsCode : '',
|
|
|
+ password : '',
|
|
|
+ passwordConfirm : '',
|
|
|
status:1
|
|
|
},
|
|
|
emailPwd: {
|
|
|
mobileOrEmail :'',
|
|
|
- activateCode : '',
|
|
|
- passWord : '',
|
|
|
- confirmPwd : '',
|
|
|
+ smsCode : '',
|
|
|
+ password : '',
|
|
|
+ passwordConfirm : '',
|
|
|
status:2
|
|
|
},
|
|
|
rule:{
|
|
|
name: '^[a-zA-Z\\u4e00-\\u9fa5]{2,}$',
|
|
|
phone: '^\\d{6,12}$',
|
|
|
code: '^\\d{6}$',
|
|
|
- emailCode: '^\\d{4}$',
|
|
|
+ emailCode: '^\\d{6}$',
|
|
|
license: '^[a-zA-Z0-9_]{18}$',
|
|
|
email: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$',
|
|
|
password: "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$"
|
|
@@ -51,14 +51,14 @@ var passwordPage = new Vue({
|
|
|
var pass = verifyForm();
|
|
|
if (_self.loginLoading) { return false; }
|
|
|
if (!pass) {return false;}
|
|
|
- if(_self.phonePwd.confirmPwd!=_self.phonePwd.passWord){
|
|
|
+ if(_self.phonePwd.passwordConfirm!=_self.phonePwd.password){
|
|
|
CAIMEI.dialog('两次密码输入不一致',false,function () {});
|
|
|
return;
|
|
|
}
|
|
|
_self.loginLoading = true;
|
|
|
UserApi.FindCompanyPwd(_self.phonePwd,function (response) {
|
|
|
if(response.code === 0){
|
|
|
- CAIMEI.dialog('重置密码成功!',true,function () {
|
|
|
+ CAIMEI.dialog('密码修改成功~',true,function () {
|
|
|
_self.loginLoading = false;
|
|
|
CAIMEI.Storage.clear();
|
|
|
window.location.href = '/login.html';
|
|
@@ -74,14 +74,14 @@ var passwordPage = new Vue({
|
|
|
var pass = verifyForm();
|
|
|
if (_self.loginLoading) { return false; }
|
|
|
if (!pass) {return false;}
|
|
|
- if(_self.emailPwd.confirmPwd!=_self.emailPwd.passWord){
|
|
|
+ if(_self.emailPwd.passwordConfirm!=_self.emailPwd.password){
|
|
|
CAIMEI.dialog('两次密码输入不一致',false,function () {});
|
|
|
return;
|
|
|
}
|
|
|
_self.loginLoading = true;
|
|
|
UserApi.FindCompanyPwd(_self.emailPwd,function (response) {
|
|
|
if(response.code === 0){
|
|
|
- CAIMEI.dialog('重置密码成功!',true,function () {
|
|
|
+ CAIMEI.dialog('密码修改成功~',true,function () {
|
|
|
_self.loginLoading = false;
|
|
|
CAIMEI.Storage.clear();
|
|
|
window.location.href = '/login.html';
|
|
@@ -112,7 +112,7 @@ var passwordPage = new Vue({
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
- getMobileCodeFn:function(){//机构注册获取注册短信验证码
|
|
|
+ getMobileCodeFn:function(){//获取短信验证码
|
|
|
var _self = this;
|
|
|
var params = {
|
|
|
mobile:_self.phonePwd.mobileOrEmail,
|
|
@@ -120,7 +120,7 @@ var passwordPage = new Vue({
|
|
|
isCheckCaptcha:0,
|
|
|
token:_self.codeImageToken,
|
|
|
activateCodeType:1,
|
|
|
- platformType:2
|
|
|
+ platformType:0
|
|
|
};
|
|
|
_self.isMobileDisabled = true;
|
|
|
UserApi.getRegisterMobileCode(params,function (response) {
|