You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-register-findPsw.81d0...

1 lines
8.0 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-register-findPsw"],{"15dc":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var i={uToast:n("2ce2").default},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"logo"},[i("v-uni-image",{attrs:{src:n("4ac4"),mode:""}})],1),i("v-uni-view",{staticClass:"input-info"},[i("v-uni-view",{staticClass:"info"},[i("v-uni-input",{attrs:{type:"tel",maxlength:"11",placeholder:"手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}}),i("v-uni-view",{staticClass:"more"})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-input",{attrs:{type:"tel",maxlength:"6",placeholder:"请输入验证码"},model:{value:e.form.captcha,callback:function(t){e.$set(e.form,"captcha",t)},expression:"form.captcha"}}),i("v-uni-view",{staticClass:"more"},[i("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:!e.codeSend,expression:"!codeSend"}],staticClass:"mo",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getCode.apply(void 0,arguments)}}},[e._v("获取验证码")]),i("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:e.codeSend,expression:"codeSend"}],staticClass:"mo"},[e._v(e._s(e.timeNum)+"秒后重试")])],1)],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-input",{attrs:{password:!e.isPassword,maxlength:"26",placeholder:"密码"},model:{value:e.form.newpassword,callback:function(t){e.$set(e.form,"newpassword",t)},expression:"form.newpassword"}}),i("v-uni-view",{staticClass:"more"},[i("v-uni-text",{staticClass:"iconfont",class:e.isPassword?"icon-eye-on":"icon-eye-off",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isPassword=!e.isPassword}}})],1)],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-input",{attrs:{password:!e.isPassword1,maxlength:"26",placeholder:"确认密码"},model:{value:e.form.newpassword1,callback:function(t){e.$set(e.form,"newpassword1",t)},expression:"form.newpassword1"}}),i("v-uni-view",{staticClass:"more"},[i("v-uni-text",{staticClass:"iconfont",class:e.isPassword1?"icon-eye-on":"icon-eye-off",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isPassword1=!e.isPassword1}}})],1)],1),i("v-uni-view",{staticClass:"btn-info"},[i("v-uni-view",{staticClass:"btn",style:e.isReset?"opacity:1":"opacity:0.4",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isReset&&e.submitModify()}}},[i("v-uni-text",[e._v("确定")])],1)],1)],1),i("u-toast",{ref:"uToast"})],1)},s=[]},"4ac4":function(e,t,n){e.exports=n.p+"static/img/logo254.d8724245.png"},"4cd8":function(e,t,n){"use strict";n.r(t);var i=n("e6e2"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=o.a},"5a7c":function(e,t,n){var i=n("6bc4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("df382c0c",i,!0,{sourceMap:!1,shadowMode:!1})},"6bc4":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-1ecd5902]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#fff}.logo[data-v-1ecd5902]{display:flex;align-items:center;justify-content:center;width:100%;height:%?240?%}.logo uni-image[data-v-1ecd5902]{width:%?160?%;height:%?160?%;border-radius:50%}\r\n/* 填写 */.input-info[data-v-1ecd5902]{padding:0 6%}.input-info .info[data-v-1ecd5902]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.input-info .info uni-input[data-v-1ecd5902]{width:70%;height:100%;font-size:%?26?%;color:#222}.input-info .info .more[data-v-1ecd5902]{display:flex;align-items:center;justify-content:flex-end;width:30%;height:100%}.input-info .info .more .iconfont[data-v-1ecd5902]{font-size:%?34?%}.input-info .info .more .mo[data-v-1ecd5902]{font-size:%?26?%;padding-left:%?20?%;margin-left:%?10?%;border-left:%?2?% solid #eee}\r\n/* 按钮 */.btn-info[data-v-1ecd5902]{display:flex;align-items:center;justify-content:center;width:100%;height:%?100?%;margin-top:%?40?%}.btn-info .btn[data-v-1ecd5902]{display:flex;align-items:center;justify-content:center;width:90%;height:%?80?%;background:linear-gradient(90deg,#236030,#236030);border-radius:%?100?%;color:#fff;font-size:%?28?%;opacity:.4}\r\n/* 操作 */.operation[data-v-1ecd5902]{display:flex;align-items:center;justify-content:space-between;padding:0 6%;height:%?80?%}.operation uni-text[data-v-1ecd5902]{font-size:%?28?%;color:#555}\r\n/* 其他 */.other-ways[data-v-1ecd5902]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%;margin-top:%?100?%}.other-ways uni-text[data-v-1ecd5902]{font-size:%?28?%;color:#999}.other-ways[data-v-1ecd5902]::after{content:"";width:36%;height:%?2?%;background-color:#eee}.other-ways[data-v-1ecd5902]::before{content:"";width:36%;height:%?2?%;background-color:#eee}\r\n/* 登录方式 */.login-way[data-v-1ecd5902]{display:flex;align-items:center;justify-content:center;width:100%;height:%?200?%}.login-way .way[data-v-1ecd5902]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:50%;height:100%}.login-way .way uni-image[data-v-1ecd5902]{width:%?100?%;height:%?100?%}.login-way .way uni-text[data-v-1ecd5902]{font-size:%?28?%;color:#959595;margin-top:%?20?%}',""]),e.exports=t},af24:function(e,t,n){"use strict";var i=n("5a7c"),o=n.n(i);o.a},afd5:function(e,t,n){"use strict";n.r(t);var i=n("15dc"),o=n("4cd8");for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);n("af24");var a=n("f0c5"),r=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"1ecd5902",null,!1,i["a"],void 0);t["default"]=r.exports},e6e2:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5af7"),o={data:function(){return{form:{mobile:"",newpassword:"",captcha:"",newpassword1:""},codeSend:!1,timeNum:59,timer:null,isPassword:!1,isPassword1:!1,isReset:!1}},methods:{getCode:function(){var e=this;this.form.mobile?(0,i.smsSend)({mobile:this.form.mobile,event:"resetpwd"}).then((function(t){1==t.code&&(e.codeSend=!0,e.timer=setInterval((function(){e.timeNum>0?e.timeNum--:(e.codeSend=!1,clearInterval(e.timer),e.timer=null)}),1e3))})):this.$refs.uToast.show({message:"请输入手机号码"})},submitModify:function(){var e=this;this.form.newpassword1==this.form.newpassword?(0,i.smsCheck)({mobile:this.form.mobile,captcha:this.form.captcha,event:"resetpwd"}).then((function(t){1==t.code&&(0,i.forgetPsw)(e.form).then((function(t){1==t.code&&(e.$refs.uToast.show({message:t.msg}),setTimeout((function(){uni.redirectTo({url:"/pages/login/login"},500)})))}))})):this.$refs.uToast.show({message:"两次密码输入不一致"})}},destroyed:function(){clearInterval(this.timer),this.timer=null},watch:{form:{handler:function(e,t){e.mobile&&e.newpassword&&e.captcha&&e.newpassword1?this.isReset=!0:this.isReset=!1},deep:!0}}};t.default=o}}]);