Files
starRiverProperty/frontend/homepage/js/chunk-cbd1b216.48c9087c.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

2 lines
5.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbd1b216"],{"3fef":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=this,s=t.$createElement,r=t._self._c||s;return r("div",{staticClass:"login-page"},[r("video",{staticClass:"bg-movie",attrs:{src:t.videoSrc,autoplay:"",loop:"",muted:""},domProps:{muted:!0}}),r("div",{staticClass:"plantform"},[r("div",{staticClass:"logo"},[r("img",{attrs:{src:t.logoSrc,alt:""}})])]),r("div",{staticClass:"login-block"},[r("div",{staticClass:"container"},[r("div",{staticClass:"plat-logo"},[r("img",{attrs:{src:t.platLogoSrc,alt:""}})]),r("div",{staticClass:"login-in"},[r("p",{staticClass:"title"},[t._v("重置密码")]),r("p",{staticClass:"desc",staticStyle:{"font-size":"14px",color:"#42526e","margin-top":"20px"}},[t._v(t._s(t.descText))]),r("div",{staticClass:"login-form"},[r("el-form",{ref:"resetForm",staticClass:"login-form-comp",attrs:{model:t.resetForm,rules:t.rules}},[r("el-form-item",{staticClass:"custom-form-item",class:{"has-value":""!==t.resetForm.newPassword&&t.resetForm.newPassword,"input-focus":"newPassword"===t.selectInput},attrs:{label:"新密码:",prop:"newPassword"}},[r("el-input",{staticClass:"input-ui",attrs:{type:"password",clearable:"",autocomplete:"off",maxlength:"100",placeholder:"8-20位英文大小写/数字/特殊字符组合"},on:{focus:function(){return e.selectInput="newPassword"},blur:function(){return e.selectInput=""}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleResetDefaultPassword(e)}},model:{value:t.resetForm.newPassword,callback:function(e){t.$set(t.resetForm,"newPassword","string"===typeof e?e.trim():e)},expression:"resetForm.newPassword"}})],1),r("el-form-item",{staticClass:"custom-form-item",class:{"has-value":""!==t.resetForm.newPasswordConfirm&&t.resetForm.newPasswordConfirm,"input-focus":"newPasswordConfirm"===t.selectInput},staticStyle:{"margin-top":"20px"},attrs:{label:"确认密码:",prop:"newPasswordConfirm"}},[r("el-input",{staticClass:"input-ui",attrs:{type:"password",clearable:"",autocomplete:"off",maxlength:"100",placeholder:"请再次输入密码"},on:{focus:function(){return e.selectInput="newPasswordConfirm"},blur:function(){return e.selectInput=""}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleResetDefaultPassword(e)}},model:{value:t.resetForm.newPasswordConfirm,callback:function(e){t.$set(t.resetForm,"newPasswordConfirm","string"===typeof e?e.trim():e)},expression:"resetForm.newPasswordConfirm"}})],1)],1)],1),r("div",{staticClass:"login-button",staticStyle:{"margin-top":"90px"}},[r("el-button",{staticClass:"button",attrs:{loading:t.loading,disabled:!t.buttonDisabled},on:{click:t.handleResetDefaultPassword}},[t._v(" 确定 ")])],1)])])])])},o=[],n=(s("d81d"),s("a9e3"),s("d3b7"),s("4d63"),s("ac1f"),s("25f0"),s("d4ec")),a=s("bee2"),i=s("99de"),l=s("7e84"),c=s("262e"),u=s("9ab4"),d=s("60a3"),p=(s("c129"),s("3452")),f=s.n(p),m=function(e){function t(){var e;return Object(n["a"])(this,t),e=Object(i["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.resetForm={newPassword:"",newPasswordConfirm:""},e.selectInput="",e.loading=!1,e.checkPassword=function(t,s,r){""===s?r(new Error("请输入密码")):e.resetForm.newPassword!==s?r(new Error("两次输入的密码不一致")):r()},e.checkConfirmPassword=function(t,s,r){""===s?r(new Error("请再次输入密码")):e.resetForm.newPassword!==s?r(new Error("两次输入的密码不一致")):r()},e.rules={newPassword:[{trigger:"blur",requires:!0,validator:function(t,s,r){var o=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~@#¥……&*()——|{}【】‘;:”“'。,、?]"),n=[/[A-Z]/,/[a-z]/,o,/[0-9]/],a=0;n.map((function(e){e.test(s)&&(a+=1)})),a>=4&&s.length>=8&&s.length<=20?(r(),e.$refs.resetForm.clearValidate("comfirmed")):(s.length>20&&r(new Error("密码长度不能超过20位")),r(new Error("8-20位英文大小写/数字/特殊字符组合而成")))}}],newPasswordConfirm:[{trigger:"blur",validator:e.checkConfirmPassword}]},e}return Object(c["a"])(t,e),Object(a["a"])(t,[{key:"created",value:function(){}},{key:"handleResetDefaultPassword",value:function(){var e=this;this.$refs["resetForm"].validate((function(t){t&&(e.loading=!0,e.service.changeDefaultPassword({newPassword:f.a.SHA256(e.resetForm.newPassword).toString(f.a.enc.Hex)}).then((function(t){e.loading=!1,t.success?(e.$message.success("密码重置成功"),e.$router.push("/").catch((function(){}))):e.$message.error(t.message)})).catch((function(){e.loading=!1})))}))}},{key:"descText",get:function(){if(this.$route.query.type){var e=Number(this.$route.query.type);return 1===e?"第一次登陆系统,请重置密码":2===e?"密码已过期,请修改密码":"请重置密码"}return"请重置密码"}},{key:"videoSrc",get:function(){var e="production";return"".concat("development"===e?"/":"./","login-movie.mp4")}},{key:"logoSrc",get:function(){var e="production";return"".concat("development"===e?"/":"./","yckj-logo.png")}},{key:"platLogoSrc",get:function(){var e="production";return"".concat("development"===e?"/":"./","logo-qz.png")}},{key:"buttonDisabled",get:function(){return void 0!==this.resetForm.newPassword&&""!==this.resetForm.newPassword&&void 0!==this.resetForm.newPasswordConfirm&&""!==this.resetForm.newPasswordConfirm}}]),t}(d["f"]);m=u["b"]([Object(d["a"])({})],m);var w=m,g=w,v=s("2877"),h=Object(v["a"])(g,r,o,!1,null,null,null);t["default"]=h.exports},c129:function(e,t,s){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758f3",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}}}]);
//# sourceMappingURL=chunk-cbd1b216.48c9087c.js.map