(function() { Vue.component('forget-form', { template: `

{{step}}

看不清 ? 换一张

若该手机号码无法正常使用请账号申诉

发送验证码

密码重置成功

下次请使用新密码登录

下一步 进入登录页
`, props: [], data: function() { return { indexArr: [1, 2, 3, 4], activeIndex: 1 } }, methods: { setTxt: function(index) { var str = '' switch(+index) { case 1: str = '填写账号名';break case 2: str = '验证身份';break case 3: str = '设置新密码';break case 4: str = '完成';break } return str }, setClass: function(index) { var str = '' switch(+index) { case 1: str = '';break case 2: str = 'txt-center';break case 3: str = 'txt-center';break case 4: str = 'txt-right';break } return str }, goHelp: function() { window.location.href = "appeal.html" }, goLogin: function() { window.location.href = "login.html" }, next: function() { this.activeIndex++ } }, watch: { // Password: function(newVal, oldVal) { // var val = newVal.toString(); // var reg = /\s+/g; //去除空格 // if(reg.test(val)) { // this.Password = oldVal; // } // } } }) // function login(data) { // httpRequest.post('login/doctor', { // data: data // }).then(function(res) { // if(res.status == 200) { // var docInfo = res.data; // localoginlStorage.setItem(httpRequest.agentName, JSON.stringify({ // id: docInfo.id, // uid: docInfo.uid, // token: docInfo.token, // imei: localStorage.getItem('WLYY_IMEI'), // platform: 4 // })); // //将用户的角色信息单独存储在localstorage中 // localStorage.setItem("userRole", JSON.stringify(docInfo.userRole)); // window.location.href = "../../home/html/index.html"; // } else { // tip(res.msg); // } // }); // } })()