移动端浏览器处理吊坠报警。
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

1 wiersz
3.1KB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ca71562"],{d9c9:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"login-container"},[e("header",{staticStyle:{"padding-top":"50px","font-size":"0.7rem"}},[t._v("综合管理平台")]),e("div",[e("div",{staticClass:"input-box",staticStyle:{"margin-top":"100px"}},[e("i",{staticClass:"iconfont icon-username"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.loginInfo.username,expression:"loginInfo.username"}],attrs:{type:"text"},domProps:{value:t.loginInfo.username},on:{input:function(i){i.target.composing||t.$set(t.loginInfo,"username",i.target.value)}}})]),e("div",{staticClass:"input-box",staticStyle:{"margin-top":"10px"}},[e("i",{staticClass:"iconfont icon-password"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.loginInfo.password,expression:"loginInfo.password"}],attrs:{type:"password"},domProps:{value:t.loginInfo.password},on:{input:function(i){i.target.composing||t.$set(t.loginInfo,"password",i.target.value)}}})]),e("div",{staticClass:"input-box",staticStyle:{"margin-top":"10px"}},[e("i",{staticClass:"iconfont icon-yanzhengma"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.loginInfo.captcha,expression:"loginInfo.captcha"}],domProps:{value:t.loginInfo.captcha},on:{input:function(i){i.target.composing||t.$set(t.loginInfo,"captcha",i.target.value)}}}),e("div",{staticStyle:{color:"darkgray",position:"absolute",right:"-2px",bottom:"1px"}},[e("img",{staticStyle:{width:"3.3rem","vertical-align":"middle","line-height":"16px","font-size":"11px","border-radius":"4px 4px 0 0"},attrs:{src:"/platform-framework/captcha.jpg?t="+t.loginInfo.time,alt:"验证码获取失败~~"},on:{click:t.handleClickFreshCaptcha}})])])]),e("van-button",{attrs:{loading:t.isLogin,type:"info"},nativeOn:{click:function(i){return t.login(i)}}},[t._v("登录")])],1)},o=[],a=e("b970"),s=e("ed08"),r={data(){return{loginInfo:{username:"",password:"",captcha:"",time:""},isLogin:!1,redirect:void 0}},created(){this.loginInfo.username=this.$route.query.username||"",this.loginInfo.password=this.$route.query.password||""},mounted(){},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{async login(){if(Object(s["a"])(this.loginInfo.username)&&""!==this.loginInfo.password){const{username:i,password:e,captcha:n}=this.loginInfo;if(i&&e&&n){this.isLogin=!0;try{const o=await this.$store.dispatch("Login",`username=${i.trim()}&password=${e}&captcha=${n}`);if(this.isLogin=!1,this.handleClickFreshCaptcha(),0!==o.code)return Object(a["b"])(o.msg);this.$router.push({path:this.redirect||"/"})}catch(t){this.isLogin=!1,Object(a["b"])(t.toString())}}else Object(a["b"])("请检查账号、密码以及验证码是否填写完毕 ~~")}},handleClickFreshCaptcha(){this.loginInfo.time=(new Date).getTime()}}},c=r,l=(e("fc32"),e("2877")),p=Object(l["a"])(c,n,o,!1,null,"3d4a5790",null);p.options.__file="index.vue";i["default"]=p.exports},f565:function(t,i,e){},fc32:function(t,i,e){"use strict";var n=e("f565"),o=e.n(n);o.a}}]);