1
|
|
-webpackJsonp([8],{240:function(t,n,e){var o=e(1)(e(268),e(273),null,null);t.exports=o.exports},268:function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var s=e(269),a=o(s),c=e(6),l=o(c);n.default={components:{unlock:a.default},data:function(){return{showUnlock:!1}},methods:{handleUnlock:function(){var t=document.getElementById("lock_screen_back");this.showUnlock=!1,t.style.zIndex=-1,t.style.boxShadow="0 0 0 0 #667aa6 inset",this.$router.push({name:l.default.get("last_page_name")})}},mounted:function(){if(this.showUnlock=!0,!document.getElementById("lock_screen_back")){var t=document.createElement("div");t.setAttribute("id","lock_screen_back"),t.setAttribute("class","lock-screen-back"),document.body.appendChild(t)}document.getElementById("lock_screen_back").style.zIndex=-1}}},269:function(t,n,e){e(270);var o=e(1)(e(271),e(272),null,null);t.exports=o.exports},270:function(t,n){},271:function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var s=e(6),a=o(s);n.default={name:"Unlock",data:function(){return{avatorLeft:"0px",inputLeft:"400px",password:"",check:null}},props:{showUnlock:{type:Boolean,default:!1}},computed:{avatorPath:function(){return localStorage.avatorImgPath}},methods:{validator:function(){return!0},handleClickAvator:function(){this.avatorLeft="-180px",this.inputLeft="0px",this.$refs.inputEle.focus()},handleUnlock:function(){this.validator()?(this.avatorLeft="0px",this.inputLeft="400px",this.password="",a.default.set("locking","0"),this.$emit("on-unlock")):this.$Message.error("密码错误,请重新输入。如果忘了密码,清除浏览器缓存重新登录即可,这里没有做后端验证")},unlockMousedown:function(){this.$refs.unlockBtn.className="unlock-btn click-unlock-btn"},unlockMouseup:function(){this.$refs.unlockBtn.className="unlock-btn"}}}},272:function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("transition",{attrs:{name:"show-unlock"}},[t.showUnlock?e("div",{staticClass:"unlock-body-con",on:{keydown:function(n){return"button"in n||!t._k(n.keyCode,"enter",13,n.key,"Enter")?t.handleUnlock(n):null}}},[e("div",{staticClass:"unlock-avator-con",style:{marginLeft:t.avatorLeft},on:{click:t.handleClickAvator}},[e("img",{staticClass:"unlock-avator-img",attrs:{src:t.avatorPath}}),t._v(" "),e("div",{staticClass:"unlock-avator-cover"},[e("span",[e("Icon",{attrs:{type:"unlocked",size:30}})],1),t._v(" "),e("p",[t._v("解锁")])])]),t._v(" "),e("div",{staticClass:"unlock-avator-under-back",style:{marginLeft:t.avatorLeft}}),t._v(" "),e("div",{staticClass:"unlock-input-con"},[e("div",{staticClass:"unlock-input-overflow-con"},[e("div",{staticClass:"unlock-overflow-body",style:{right:t.inputLeft}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],ref:"inputEle",staticClass:"unlock-input",attrs:{type:"password",placeholder:"密码同登录密码"},domProps:{value:t.password},on:{input:function(n){n.target.composing||(t.password=n.target.value)}}}),t._v(" "),e("button",{ref:"unlockBtn",staticClass:"unlock-btn",on:{mousedown:t.unlockMousedown,mouseup:t.unlockMouseup,click:t.handleUnlock}},[e("Icon",{attrs:{color:"white",type:"key"}})],1)])])]),t._v(" "),e("div",{staticClass:"unlock-locking-tip-con"},[t._v("已锁定")])]):t._e()])},staticRenderFns:[]}},273:function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{width:"100%",height:"100%",background:"#667aa6"}},[e("div",{staticClass:"unlock-con"},[e("unlock",{attrs:{"show-unlock":t.showUnlock},on:{"on-unlock":t.handleUnlock}})],1)])},staticRenderFns:[]}}});
|
|
1
|
+webpackJsonp([8],{241:function(t,n,e){var o=e(1)(e(269),e(274),null,null);t.exports=o.exports},269:function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var s=e(270),a=o(s),c=e(6),l=o(c);n.default={components:{unlock:a.default},data:function(){return{showUnlock:!1}},methods:{handleUnlock:function(){var t=document.getElementById("lock_screen_back");this.showUnlock=!1,t.style.zIndex=-1,t.style.boxShadow="0 0 0 0 #667aa6 inset",this.$router.push({name:l.default.get("last_page_name")})}},mounted:function(){if(this.showUnlock=!0,!document.getElementById("lock_screen_back")){var t=document.createElement("div");t.setAttribute("id","lock_screen_back"),t.setAttribute("class","lock-screen-back"),document.body.appendChild(t)}document.getElementById("lock_screen_back").style.zIndex=-1}}},270:function(t,n,e){e(271);var o=e(1)(e(272),e(273),null,null);t.exports=o.exports},271:function(t,n){},272:function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var s=e(6),a=o(s);n.default={name:"Unlock",data:function(){return{avatorLeft:"0px",inputLeft:"400px",password:"",check:null}},props:{showUnlock:{type:Boolean,default:!1}},computed:{avatorPath:function(){return localStorage.avatorImgPath}},methods:{validator:function(){return!0},handleClickAvator:function(){this.avatorLeft="-180px",this.inputLeft="0px",this.$refs.inputEle.focus()},handleUnlock:function(){this.validator()?(this.avatorLeft="0px",this.inputLeft="400px",this.password="",a.default.set("locking","0"),this.$emit("on-unlock")):this.$Message.error("密码错误,请重新输入。如果忘了密码,清除浏览器缓存重新登录即可,这里没有做后端验证")},unlockMousedown:function(){this.$refs.unlockBtn.className="unlock-btn click-unlock-btn"},unlockMouseup:function(){this.$refs.unlockBtn.className="unlock-btn"}}}},273:function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("transition",{attrs:{name:"show-unlock"}},[t.showUnlock?e("div",{staticClass:"unlock-body-con",on:{keydown:function(n){return"button"in n||!t._k(n.keyCode,"enter",13,n.key,"Enter")?t.handleUnlock(n):null}}},[e("div",{staticClass:"unlock-avator-con",style:{marginLeft:t.avatorLeft},on:{click:t.handleClickAvator}},[e("img",{staticClass:"unlock-avator-img",attrs:{src:t.avatorPath}}),t._v(" "),e("div",{staticClass:"unlock-avator-cover"},[e("span",[e("Icon",{attrs:{type:"unlocked",size:30}})],1),t._v(" "),e("p",[t._v("解锁")])])]),t._v(" "),e("div",{staticClass:"unlock-avator-under-back",style:{marginLeft:t.avatorLeft}}),t._v(" "),e("div",{staticClass:"unlock-input-con"},[e("div",{staticClass:"unlock-input-overflow-con"},[e("div",{staticClass:"unlock-overflow-body",style:{right:t.inputLeft}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],ref:"inputEle",staticClass:"unlock-input",attrs:{type:"password",placeholder:"密码同登录密码"},domProps:{value:t.password},on:{input:function(n){n.target.composing||(t.password=n.target.value)}}}),t._v(" "),e("button",{ref:"unlockBtn",staticClass:"unlock-btn",on:{mousedown:t.unlockMousedown,mouseup:t.unlockMouseup,click:t.handleUnlock}},[e("Icon",{attrs:{color:"white",type:"key"}})],1)])])]),t._v(" "),e("div",{staticClass:"unlock-locking-tip-con"},[t._v("已锁定")])]):t._e()])},staticRenderFns:[]}},274:function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{width:"100%",height:"100%",background:"#667aa6"}},[e("div",{staticClass:"unlock-con"},[e("unlock",{attrs:{"show-unlock":t.showUnlock},on:{"on-unlock":t.handleUnlock}})],1)])},staticRenderFns:[]}}});
|