pages-login-index.bed66031.js 14.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-index"],{"07fb":function(e,t,n){var a=n("154f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("4f06").default;o("6d9f8701",a,!0,{sourceMap:!1,shadowMode:!1})},"154f":function(e,t,n){var a=n("24fb"),o=n("1de5"),c=n("f47f");t=a(!1);var i=o(c);t.push([e.i,"@font-face{font-family:uniicons;font-weight:400;font-style:normal;src:url("+i+') format("truetype")}.m-icon[data-v-77cebb7a]{font-family:uniicons;font-size:%?48?%;font-weight:400;font-style:normal;line-height:1;display:inline-block;text-decoration:none;-webkit-font-smoothing:antialiased}.m-icon.uni-active[data-v-77cebb7a]{color:#007aff}.m-icon-contact[data-v-77cebb7a]:before{content:"\\e100"}.m-icon-person[data-v-77cebb7a]:before{content:"\\e101"}.m-icon-personadd[data-v-77cebb7a]:before{content:"\\e102"}.m-icon-contact-filled[data-v-77cebb7a]:before{content:"\\e130"}.m-icon-person-filled[data-v-77cebb7a]:before{content:"\\e131"}.m-icon-personadd-filled[data-v-77cebb7a]:before{content:"\\e132"}.m-icon-phone[data-v-77cebb7a]:before{content:"\\e200"}.m-icon-email[data-v-77cebb7a]:before{content:"\\e201"}.m-icon-chatbubble[data-v-77cebb7a]:before{content:"\\e202"}.m-icon-chatboxes[data-v-77cebb7a]:before{content:"\\e203"}.m-icon-phone-filled[data-v-77cebb7a]:before{content:"\\e230"}.m-icon-email-filled[data-v-77cebb7a]:before{content:"\\e231"}.m-icon-chatbubble-filled[data-v-77cebb7a]:before{content:"\\e232"}.m-icon-chatboxes-filled[data-v-77cebb7a]:before{content:"\\e233"}.m-icon-weibo[data-v-77cebb7a]:before{content:"\\e260"}.m-icon-weixin[data-v-77cebb7a]:before{content:"\\e261"}.m-icon-pengyouquan[data-v-77cebb7a]:before{content:"\\e262"}.m-icon-chat[data-v-77cebb7a]:before{content:"\\e263"}.m-icon-qq[data-v-77cebb7a]:before{content:"\\e264"}.m-icon-videocam[data-v-77cebb7a]:before{content:"\\e300"}.m-icon-camera[data-v-77cebb7a]:before{content:"\\e301"}.m-icon-mic[data-v-77cebb7a]:before{content:"\\e302"}.m-icon-location[data-v-77cebb7a]:before{content:"\\e303"}.m-icon-mic-filled[data-v-77cebb7a]:before,\r\n.m-icon-speech[data-v-77cebb7a]:before{content:"\\e332"}.m-icon-location-filled[data-v-77cebb7a]:before{content:"\\e333"}.m-icon-micoff[data-v-77cebb7a]:before{content:"\\e360"}.m-icon-image[data-v-77cebb7a]:before{content:"\\e363"}.m-icon-map[data-v-77cebb7a]:before{content:"\\e364"}.m-icon-compose[data-v-77cebb7a]:before{content:"\\e400"}.m-icon-trash[data-v-77cebb7a]:before{content:"\\e401"}.m-icon-upload[data-v-77cebb7a]:before{content:"\\e402"}.m-icon-download[data-v-77cebb7a]:before{content:"\\e403"}.m-icon-close[data-v-77cebb7a]:before{content:"\\e404"}.m-icon-redo[data-v-77cebb7a]:before{content:"\\e405"}.m-icon-undo[data-v-77cebb7a]:before{content:"\\e406"}.m-icon-refresh[data-v-77cebb7a]:before{content:"\\e407"}.m-icon-star[data-v-77cebb7a]:before{content:"\\e408"}.m-icon-plus[data-v-77cebb7a]:before{content:"\\e409"}.m-icon-minus[data-v-77cebb7a]:before{content:"\\e410"}.m-icon-circle[data-v-77cebb7a]:before,\r\n.m-icon-checkbox[data-v-77cebb7a]:before{content:"\\e411"}.m-icon-close-filled[data-v-77cebb7a]:before,\r\n.m-icon-clear[data-v-77cebb7a]:before{content:"\\e434"}.m-icon-refresh-filled[data-v-77cebb7a]:before{content:"\\e437"}.m-icon-star-filled[data-v-77cebb7a]:before{content:"\\e438"}.m-icon-plus-filled[data-v-77cebb7a]:before{content:"\\e439"}.m-icon-minus-filled[data-v-77cebb7a]:before{content:"\\e440"}.m-icon-circle-filled[data-v-77cebb7a]:before{content:"\\e441"}.m-icon-checkbox-filled[data-v-77cebb7a]:before{content:"\\e442"}.m-icon-closeempty[data-v-77cebb7a]:before{content:"\\e460"}.m-icon-refreshempty[data-v-77cebb7a]:before{content:"\\e461"}.m-icon-reload[data-v-77cebb7a]:before{content:"\\e462"}.m-icon-starhalf[data-v-77cebb7a]:before{content:"\\e463"}.m-icon-spinner[data-v-77cebb7a]:before{content:"\\e464"}.m-icon-spinner-cycle[data-v-77cebb7a]:before{content:"\\e465"}.m-icon-search[data-v-77cebb7a]:before{content:"\\e466"}.m-icon-plusempty[data-v-77cebb7a]:before{content:"\\e468"}.m-icon-forward[data-v-77cebb7a]:before{content:"\\e470"}.m-icon-back[data-v-77cebb7a]:before,\r\n.m-icon-left-nav[data-v-77cebb7a]:before{content:"\\e471"}.m-icon-checkmarkempty[data-v-77cebb7a]:before{content:"\\e472"}.m-icon-home[data-v-77cebb7a]:before{content:"\\e500"}.m-icon-navigate[data-v-77cebb7a]:before{content:"\\e501"}.m-icon-gear[data-v-77cebb7a]:before{content:"\\e502"}.m-icon-paperplane[data-v-77cebb7a]:before{content:"\\e503"}.m-icon-info[data-v-77cebb7a]:before{content:"\\e504"}.m-icon-help[data-v-77cebb7a]:before{content:"\\e505"}.m-icon-locked[data-v-77cebb7a]:before{content:"\\e506"}.m-icon-more[data-v-77cebb7a]:before{content:"\\e507"}.m-icon-flag[data-v-77cebb7a]:before{content:"\\e508"}.m-icon-home-filled[data-v-77cebb7a]:before{content:"\\e530"}.m-icon-gear-filled[data-v-77cebb7a]:before{content:"\\e532"}.m-icon-info-filled[data-v-77cebb7a]:before{content:"\\e534"}.m-icon-help-filled[data-v-77cebb7a]:before{content:"\\e535"}.m-icon-more-filled[data-v-77cebb7a]:before{content:"\\e537"}.m-icon-settings[data-v-77cebb7a]:before{content:"\\e560"}.m-icon-list[data-v-77cebb7a]:before{content:"\\e562"}.m-icon-bars[data-v-77cebb7a]:before{content:"\\e563"}.m-icon-loop[data-v-77cebb7a]:before{content:"\\e565"}.m-icon-paperclip[data-v-77cebb7a]:before{content:"\\e567"}.m-icon-eye[data-v-77cebb7a]:before{content:"\\e568"}.m-icon-arrowup[data-v-77cebb7a]:before{content:"\\e580"}.m-icon-arrowdown[data-v-77cebb7a]:before{content:"\\e581"}.m-icon-arrowleft[data-v-77cebb7a]:before{content:"\\e582"}.m-icon-arrowright[data-v-77cebb7a]:before{content:"\\e583"}.m-icon-arrowthinup[data-v-77cebb7a]:before{content:"\\e584"}.m-icon-arrowthindown[data-v-77cebb7a]:before{content:"\\e585"}.m-icon-arrowthinleft[data-v-77cebb7a]:before{content:"\\e586"}.m-icon-arrowthinright[data-v-77cebb7a]:before{content:"\\e587"}.m-icon-pulldown[data-v-77cebb7a]:before{content:"\\e588"}.m-icon-scan[data-v-77cebb7a]:before{content:"\\e612"}',""]),e.exports=t},"1bb5":function(e,t,n){"use strict";n.r(t);var a=n("8ab6"),o=n("dad1");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("c11c");var i,r=n("f0c5"),b=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"77cebb7a",null,!1,a["a"],i);t["default"]=b.exports},"1de5":function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},3118:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".login[data-v-5d590378]{width:89%;margin:0 auto}.login-button[data-v-5d590378]{padding-top:24px}.login-button .primary[data-v-5d590378]{background:#4d72ff!important;box-shadow:0 2px 11px rgb(0 56 216/15%);color:#fff!important;border-radius:30px;font-size:18px;padding:2px}.login-title[data-v-5d590378]{color:#5d5d5d;font-size:22px;padding:20px 0 12px;font-weight:700}.login-row[data-v-5d590378]{display:flex;align-items:center;margin:10px 0 0;border-bottom:solid 1px #f3f3f3}.login-flex[data-v-5d590378]{display:flex;align-items:center;flex:1}.login-row .iconfont[data-v-5d590378]{font-size:19px;color:#6d6d6d}",""]),e.exports=t},"3aa7":function(e,t,n){var a=n("3118");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("4f06").default;o("4b001644",a,!0,{sourceMap:!1,shadowMode:!1})},5524:function(e,t,n){"use strict";var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var o=a(n("1da1")),c=a(n("5530")),i=n("2f62"),r=a(n("76e3")),b={data:function(){return{account:"",password:"",id:0}},computed:(0,c.default)({},(0,i.mapState)(["userInfo","loginInfo"])),components:{mInput:r.default},onLoad:function(e){void 0!=e.id&&(this.id=e.id),void 0!=this.loginInfo.account&&(this.account=this.loginInfo.account,this.password=this.loginInfo.password)},methods:{login:function(){var e=this;return(0,o.default)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e,t.next=3,e.$lib.$http.post({url:e.$lib.$urlMap.login,data:{account:e.account,password:e.password},needLogin:!1});case 3:n=t.sent,1==n.code?(n.data.userinfo,{account:e.account,password:e.password},e.$lib.$store.commit("setUserInfo",n.data.userinfo),e.$lib.$store.commit("setLoginStatus",1),uni.showToast({title:"登录成功",icon:"success",duration:1500}),setTimeout((function(){uni.switchTab({url:"/pages/xunjian/list"})}),1500)):uni.showToast({title:n.msg,icon:"none",duration:1500});case 5:case"end":return t.stop()}}),t)})))()}}};t.default=b},"57c1":function(e,t,n){"use strict";var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("1bb5")),c={components:{mIcon:o.default},props:{type:String,value:String,placeholder:String,clearable:{type:[Boolean,String],default:!1},displayable:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1}},model:{prop:"value",event:"input"},data:function(){return{showPassword:!1,isFocus:!1}},computed:{inputType:function(){var e=this.type;return"password"===e?"text":e},clearable_:function(){return"false"!==String(this.clearable)},displayable_:function(){return"false"!==String(this.displayable)},focus_:function(){return"false"!==String(this.focus)}},methods:{clear:function(){this.$emit("input","")},display:function(){this.showPassword=!this.showPassword},onFocus:function(){this.isFocus=!0},onBlur:function(){var e=this;this.$nextTick((function(){e.isFocus=!1}))},onInput:function(e){this.$emit("input",e.target.value)}}};t.default=c},"6c6f":function(e,t,n){"use strict";var a=n("872f"),o=n.n(a);o.a},"738d":function(e,t,n){"use strict";var a=n("3aa7"),o=n.n(a);o.a},"73f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var a={mIcon:n("1bb5").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"m-input-view"},[n("v-uni-input",{staticClass:"m-input-input",attrs:{focus:e.focus_,type:e.inputType,value:e.value,placeholder:e.placeholder,password:"password"===e.type&&!e.showPassword},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onBlur.apply(void 0,arguments)}}}),e.clearable_&&!e.displayable_&&e.value.length?n("v-uni-view",{staticClass:"m-input-icon"},[n("m-icon",{attrs:{color:"#666666",type:"clear",size:"20"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}})],1):e._e(),e.displayable_?n("v-uni-view",{staticClass:"m-input-icon"},[n("m-icon",{attrs:{color:e.showPassword?"#666666":"#cccccc",type:"eye",size:"20"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.display.apply(void 0,arguments)}}})],1):e._e()],1)},c=[]},"76e3":function(e,t,n){"use strict";n.r(t);var a=n("73f7"),o=n("9f2e");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("6c6f");var i,r=n("f0c5"),b=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"792671a0",null,!1,a["a"],i);t["default"]=b.exports},"7b55":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".m-input-view[data-v-792671a0]{display:flex;flex-direction:row;align-items:center;width:100%;flex:1;padding:0 %?10?%}.m-input-input[data-v-792671a0]{flex:1;width:100%;height:50px;line-height:50px;font-size:16px}.m-input-icon[data-v-792671a0]{width:20px}",""]),e.exports=t},"872f":function(e,t,n){var a=n("7b55");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("4f06").default;o("244bb2bd",a,!0,{sourceMap:!1,shadowMode:!1})},"8ab6":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"m-icon",class:["m-icon-"+e.type],style:{color:e.color,"font-size":e.fontSize},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick()}}})},c=[]},"8b08":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{type:String,color:String,size:{type:[Number,String],default:24}},computed:{fontSize:function(){var e=Number(this.size);return e=isNaN(e)?24:e,"".concat(e,"px")}},methods:{onClick:function(){this.$emit("click")}}};t.default=a},"9a2d":function(e,t,n){"use strict";n.r(t);var a=n("5524"),o=n.n(a);for(var c in a)"default"!==c&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=o.a},"9f2e":function(e,t,n){"use strict";n.r(t);var a=n("57c1"),o=n.n(a);for(var c in a)"default"!==c&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=o.a},c11c:function(e,t,n){"use strict";var a=n("07fb"),o=n.n(a);o.a},dad1:function(e,t,n){"use strict";n.r(t);var a=n("8b08"),o=n.n(a);for(var c in a)"default"!==c&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=o.a},ee96:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"lz-status_bar"},[n("v-uni-view",{staticClass:"lz-top_view"})],1),n("v-uni-view",{staticClass:"login"},[n("v-uni-view",{staticClass:"login-title"},[e._v("用户登录")]),n("v-uni-view",{staticClass:"login-content"},[n("v-uni-view",{staticClass:"login-row"},[n("v-uni-view",{staticClass:"login-flex"},[n("v-uni-view",{staticClass:"iconfont icon-person"}),n("m-input",{attrs:{type:"text",placeholder:"请输入账号"},model:{value:e.account,callback:function(t){e.account=t},expression:"account"}})],1),n("a",{attrs:{href:""}})],1),n("v-uni-view",{staticClass:"login-row"},[n("v-uni-view",{staticClass:"iconfont icon-suo"}),n("m-input",{staticStyle:{flex:"1"},attrs:{type:"password",displayable:!0,placeholder:"请输入密码"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),n("v-uni-view",{staticClass:"login-button"},[n("v-uni-button",{staticClass:"primary",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.login()}}},[e._v("登录")])],1)],1)],1)],1)},c=[]},f47f:function(e,t,n){e.exports=n.p+"static/fonts/uni.75745d34.ttf"},f786:function(e,t,n){"use strict";n.r(t);var a=n("ee96"),o=n("9a2d");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("738d");var i,r=n("f0c5"),b=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"5d590378",null,!1,a["a"],i);t["default"]=b.exports}}]);