1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_modify_pwd-index"],{"138c":function(t,e,a){var s=a("c86c");e=s(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.ChangePassword[data-v-09177125]{background:#fff;padding-top:%?53?%}.ChangePassword .phone[data-v-09177125]{font-size:%?32?%}.ChangePassword .list .item[data-v-09177125]{width:%?580?%;margin:0 auto;height:%?110?%;border-bottom:%?2?% solid #f0f0f0;display:flex;align-items:center}.ChangePassword .list .item uni-input[data-v-09177125]{width:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-09177125]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-09177125]{width:%?340?%}.ChangePassword .list .item .code[data-v-09177125]{font-size:%?32?%;position:relative;padding-left:%?26?%;color:var(--view-theme)}.ChangePassword .list .item .code[data-v-09177125]::before{content:"";width:%?1?%;height:%?30?%;position:absolute;top:%?10?%;left:0;background:#ddd;display:inline-block}.ChangePassword .list .item .code.on[data-v-09177125]{color:#b9b9bc!important}.ChangePassword .list .border[data-v-09177125]{width:100%;height:%?21?%;background:#f5f5f5}.confirmBnt[data-v-09177125]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?70?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}',""]),t.exports=e},"1ab3":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var a=setInterval((function(){e-=1,e<0&&clearInterval(a),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=s},"2ec5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"3d25":function(t,e,a){"use strict";a.r(e);var s=a("c020"),i=a.n(s);for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(n);e["default"]=i.a},"586b":function(t,e,a){"use strict";a.r(e);var s=a("5db5"),i=a("3d25");for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);a("b61a");var o=a("828b"),r=Object(o["a"])(i["default"],s["b"],s["c"],!1,null,"09177125",null,!1,s["a"],void 0);e["default"]=r.exports},"5db5":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{style:t.viewColor},[a("v-uni-form",{attrs:{"report-submit":"true"}},[a("v-uni-view",[a("v-uni-view",{staticClass:"ChangePassword"},[a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-text",{staticClass:"phone"},[t._v(t._s(t.userInfo.phone))])],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper codeVal"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),a("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1),a("v-uni-view",{staticClass:"border"}),a("v-uni-view",{staticClass:"item"},[a("v-uni-input",{attrs:{type:"password",placeholder:"新密码","placeholder-class":"placeholder",autocomplete:"off"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-input",{attrs:{type:"password",placeholder:"确认新密码","placeholder-class":"placeholder",autocomplete:"off"},model:{value:t.repassword,callback:function(e){t.repassword=e},expression:"repassword"}})],1)],1)],1),a("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmSubmit.apply(void 0,arguments)}}},[t._v("确认")])],1)],1),a("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)},i=[]},"9c3c":function(t,e,a){var s=a("138c");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=a("967d").default;i("bd4e3b2c",s,!0,{sourceMap:!1,shadowMode:!1})},b61a:function(t,e,a){"use strict";var s=a("9c3c"),i=a.n(s);i.a},c020:function(t,e,a){"use strict";a("6a54");var s=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s(a("2634")),n=s(a("2fdc")),o=s(a("1ab3")),r=a("02aa"),c=a("672a"),d=a("8f59"),u=a("e44d"),l=s(a("283c")),p={mixins:[o.default],components:{Verify:l.default},data:function(){return{userInfo:{},phone:"",repassword:"",password:"",captcha:"",key:"",codeVal:"",disabled:!1}},computed:(0,d.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getUserInfo():(0,u.toLogin)()},methods:{getUserInfo:function(){var t=this;(0,c.getUserInfo)().then((function(e){t.userInfo=e.data}))},confirmSubmit:function(){var t=this;return t.password?t.repassword?t.password!==t.repassword?t.$util.Tips({title:"两次密码不一致,请重新填写!"}):t.captcha?void(0,r.modifyPassword)({password:t.password,repassword:t.repassword,sms_code:t.captcha}).then((function(e){return t.$util.Tips({title:"修改成功!",icon:"success"},{tab:5,url:"/pages/users/user_info/index"})})).catch((function(e){return t.$util.Tips({title:e})})):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请确认新密码!"}):t.$util.Tips({title:"请填写密码!"})},code:function(t){var e=this;return(0,n.default)((0,i.default)().mark((function a(){var s;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e,e.disabled=!0,a.next=4,(0,c.registerVerify)({phone:s.userInfo.phone,code:s.captcha,type:"change_pwd",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){e.disabled=!1,s.$util.Tips({title:t.message}),s.sendCode()})).catch((function(t){return e.disabled=!1,s.$util.Tips({title:t})}));case 4:case"end":return a.stop()}}),a)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){this.$refs.verify.show()}}};e.default=p}}]); |