hz-zhhq-app/unpackage/dist/build/wit-rear/static/js/pages-user-edit-pw.0384d549.js

1 line
18 KiB
JavaScript
Raw Normal View History

2025-01-22 10:53:47 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-edit-pw"],{"12a5":function(t,e,a){"use strict";var n,i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"input-content"},[a("v-uni-view",{staticClass:"input-item"},[a("v-uni-input",{attrs:{type:"text",password:!0,placeholder:"请输入原登录密码","placeholder-class":"input-empty"},model:{value:t.oldPwd,callback:function(e){t.oldPwd=e},expression:"oldPwd"}})],1),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-input",{attrs:{type:"text",password:!0,placeholder:"请输入新登录密码(8位或以上含有字母和数字)","placeholder-class":"input-empty"},model:{value:t.newPwd,callback:function(e){t.newPwd=e},expression:"newPwd"}})],1),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-input",{attrs:{type:"text",password:!0,placeholder:"请再次输入新登录密码","placeholder-class":"input-empty"},model:{value:t.newPwdCopy,callback:function(e){t.newPwdCopy=e},expression:"newPwdCopy"}})],1)],1),a("v-uni-button",{staticClass:"confirm-btn",attrs:{disabled:t.logining},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提 交")])],1)],1)},o=[];a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}))},2417:function(t,e,a){"use strict";var n=a("ee27");a("d3b7"),a("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("f3f3")),o=a("2f62"),c=a("b742"),f=a("37f6"),d={components:{},data:function(){return{oldPwd:"",newPwd:"",newPwdCopy:"",pwd:"",pwdCopy:"",logining:!1,sendText:"获取验证码",secnum:"0",btncla:"cod_desc cod_act",getcode:"toGetCode",chooseDept:{},range:[]}},onLoad:function(){},methods:(0,i.default)({},(0,o.mapMutations)(["login","logout"]),{submit:function(){var t=this;if(!this.oldPwd)return this.$api.msg("请输入原登录密码"),void(this.oldPwd="");if(!this.newPwd)return this.$api.msg("请输入新登录密码"),void(this.newPwd="");var e=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,18}$/;if(e.test(this.newPwd)){if(!this.newPwdCopy)return this.$api.msg("请再次输入新登录密码"),void(this.newPwdCopy="");if(this.newPwd!=this.newPwdCopy)return this.$api.msg("两次输入的密码不一致"),void(this.newPwdCopy="");var n=a("5092"),i=a("badd"),o=n.MD5(this.oldPwd).toString(),d=i.encrypt("c32ad1415f6c89fee76d8457c31efb4b",o),r=n.MD5(this.newPwd).toString(),b=i.encrypt("c32ad1415f6c89fee76d8457c31efb4b",r),u={method:f.updatePwd,data:{id:(0,c.getStorage)("userInfo").id,oldPwd:d,newPwd:b}};(0,c.callbackRequest)(u).then((function(e){e=e.data,1==e.returnCode?((0,c.alertTip)("密码已修改,请使用新密码重新登录","",2e3),t.logout(),uni.reLaunch({url:"/pages/login/login"})):t.$api.msg(e.returnMsg)}))}else this.$api.msg("请输入8位或以上含有字母和数字的密码")}})};e.default=d},"58c2":function(t,e,a){"use strict";a.r(e);var n=a("2417"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"65b8":function(t,e,a){"use strict";a.r(e);var n=a("12a5"),i=a("58c2");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("bfd8");var c,f=a("f0c5"),d=Object(f["a"])(i["default"],n["b"],n["c"],!1,null,"f91bc79a",null,!1,n["a"],c);e["default"]=d.exports},"9f8b":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */@font-face{font-family:iconfont;src:url(/static/ttf/iconfont.eot?t=1564651597095);\n /* IE9 */src:url(/static/ttf/iconfont.eot?t=1564651597095#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABhMAAsAAAAAKtgAABf+AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCIFgq/aLMaATYCJAOBHAtQAAQgBYRtB4MlG28jM5KzWniiKJWLJvs/JHAyxrKAq9GKoqBGzCLTaMPhKOFZHqNlFow4Nu21gxh5J5+e4BTeRVEr6h2OGsb/tUrXahFVV9Ye9cGHJEWTh2K