text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-loginByPwd"],{1314:function(t,e,i){"use strict";i.r(e);var n=i("2fca"),a=i("d997");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("547a");var r,u=i("f0c5"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"0a5981a4",null,!1,n["a"],r);e["default"]=s.exports},"1a43":function(t,e,i){"use strict";i.r(e);var n=i("9a2f"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"251b":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".content[data-v-75b5b77b]{width:%?600?%;margin:%?80?% auto 0}.title[data-v-75b5b77b]{text-align:left;font-size:%?60?%;font-weight:500;margin-bottom:%?100?%}.title u-input[data-v-75b5b77b]{margin-top:2em;text-align:left;margin-bottom:%?10?%;padding-bottom:%?6?%}.uForm[data-v-75b5b77b]{margin-top:2em}.getCaptcha[data-v-75b5b77b]{margin-top:1em;background-color:#fdf3d0;color:#666;border:none;font-size:%?30?%;padding:%?12?% 0;&::after{border:none}}.alternative[data-v-75b5b77b]{color:grey;display:inline-block;\n\t/* display: flex; */\n\t/* justify-content: space-between; */margin-top:%?30?%;width:100%;text-align:right;font-size:%?32?%}.buttom[data-v-75b5b77b]{margin-top:%?200?%;.loginType{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?350?% %?150?% %?150?% %?150?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.QQ, \n  .wechat{width:%?70?%;text-align:center}.hint{padding:%?20?% %?40?%;font-size:%?20?%;color:$u-tips-color;.link{color:$u-type-warning}}}",""]),t.exports=e},"29c3":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-toast[data-v-070c62ba]{position:fixed;z-index:-1;-webkit-transition:opacity .3s;transition:opacity .3s;text-align:center;color:#fff;border-radius:%?8?%;background:#585858;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?28?%;opacity:0;pointer-events:none;padding:%?18?% %?40?%}.u-toast.u-show[data-v-070c62ba]{opacity:1}.u-icon[data-v-070c62ba]{margin-right:%?10?%;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;line-height:normal}.u-position-center[data-v-070c62ba]{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%}.u-position-top[data-v-070c62ba]{left:50%;top:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-position-bottom[data-v-070c62ba]{left:50%;bottom:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-type-primary[data-v-070c62ba]{color:#2979ff;background-color:#ecf5ff;border:1px solid #d7eafe}.u-type-success[data-v-070c62ba]{color:#19be6b;background-color:#dbf1e1;border:1px solid #bef5c8}.u-type-error[data-v-070c62ba]{color:#fa3534;background-color:#fef0f0;border:1px solid #fde2e2}.u-type-warning[data-v-070c62ba]{color:#f90;background-color:#fdf6ec;border:1px solid #faecd8}.u-type-info[data-v-070c62ba]{color:#909399;background-color:#f4f4f5;border:1px solid #ebeef5}.u-type-default[data-v-070c62ba]{color:#fff;background-color:#585858}',""]),t.exports=e},"2d0f":function(t,e,i){"use strict";i.r(e);var n=i("c3b6"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"2fca":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-col",class:["u-col-"+t.span],style:{padding:"0 "+Number(t.gutter)/2+"rpx",marginLeft:100/12*t.offset+"%",flex:"0 0 "+100/12*t.span+"%",alignItems:t.uAlignItem,justifyContent:t.uJustify,textAlign:t.textAlign},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},o=[]},"320e":function(t,e,i){"use strict";i.r(e);var n=i("ea07"),a=i("9b5a");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("359f");var r,u=i("f0c5"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"345affc4",null,!1,n["a"],r);e["default"]=s.exports},"359f":function(t,e,i){"use strict";var n=i("bc25"),a=i.n(n);a.a},"423e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-row",props:{gutter:{type:[String,Number],default:20},justify:{type:String,default:"start"},align:{type:String,default:"center"},stop:{type:Boolean,default:!0}},computed:{uJustify:function(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem:function(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align}},methods:{click:function(t){this.$emit("click")}}};e.default=n},"485a":function(t,e,i){var n=i("bebf");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0c4c71f1",n,!0,{sourceMap:!1,shadowMode:!1})},"547a":function(t,e,i){"use strict";var n=i("485a"),a=i.n(n);a.a},"6bfc":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uToast:i("b40a").default,uForm:i("e06d").default,uFormItem:i("29cb").default,uInput:i("134c").default,uRow:i("320e").default,uCol:i("1314").default,uIcon:i("5976").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("u-toast",{ref:"uToast"}),i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("用户名密码登录")]),i("u-form",{staticClass:"uForm"},[i("u-form-item",[i("u-input",{attrs:{maxlength:"11",placeholder:"请输入用户名"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),i("u-form-item",[i("u-input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.pwd,callback:function(e){t.pwd=e},expression:"pwd"}})],1)],1),i("v-uni-button",{staticClass:"getCaptcha",style:[t.inputStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginByPwd.apply(void 0,arguments)}}},[t._v("登录")]),i("v-uni-view",{},[i("v-uni-view",{staticClass:"alternative",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("账号注册>")])],1)],1),i("v-uni-view",{staticClass:"buttom"},[i("u-row",[i("u-col",{attrs:{span:"6"}},[i("v-uni-view",{staticClass:"wechat"},[i("v-uni-view",{staticClass:"icon"},[i("u-icon",{attrs:{size:"70",name:"weixin-fill",color:"rgb(83,194,64)"}})],1),i("v-uni-text",{staticStyle:{"margin-left":".4em"}},[t._v("微信")])],1)],1),i("u-col",{attrs:{span:"6","text-align":"end"}},[i("v-uni-view",{staticClass:"QQ"},[i("v-uni-view",{staticClass:"icon"},[i("u-icon",{attrs:{size:"70",name:"qq-fill",color:"rgb(17,183,233)"}})],1),i("v-uni-text",{staticStyle:{"margin-right":".4em"}},[t._v("QQ")])],1)],1)],1)],1),i("v-uni-view",[i("u-toast",{ref:"uToast"})],1)],1)},o=[]},"6d5e":function(t,e,i){"use strict";var n=i("c5b5"),a=i.n(n);a.a},"8c17":function(t,e,i){var n=i("251b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4851cdf0",n,!0,{sourceMap:!1,shadowMode:!1})},"8eb9":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-col",props:{span:{type:[Number,String],default:12},offset:{type:[Number,String],default:0},justify:{type:String,default:"start"},align:{type:String,default:"center"},textAlign:{type:String,default:"left"},stop:{type:Boolean,default:!0}},data:function(){return{gutter:20}},created:function(){this.parent=!1},mounted:function(){this.parent=this.$u.$parent.call(this,"u-row"),this.parent&&(this.gutter=this.parent.gutter)},computed:{uJustify:function(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem:function(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align}},methods:{click:function(t){this.$emit("click")}}};e.default=n},"9a2f":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=i("2f62"),r={data:function(){return{username:"",pwd:""}},computed:(0,a.default)((0,a.default)({},(0,o.mapState)(["hasLogin","userInfo"])),{},{toUser:function(t){this.login(t),uni.reLaunch({url:"/pages/user/index"})},inputStyle:function(){var t={};return this.username&&this.pwd&&(t.color="#fff",t.backgroundColor=this.$u.color["warning"]),t}}),methods:(0,a.default)((0,a.default)({},(0,o.mapMutations)(["login","logout"])),{},{loginByPwd:function(){var t=this,e=this.username,i=this.pwd;""!=e&&""!=i?uni.request({url:"http://ocr.server.truedei.com/ocr/user/userLogin",method:"POST",data:{accountNumber:e,password:i},success:function(e){if(200==e.data.messageCode){var i=e.data.result;console.log(e);var n={name:i.accountNumber,phone:i.tel,id:i.id,avatarUrl:i.avatarUrl};t.login(n),t.$refs.uToast.show({title:"登录成功",type:"success",back:!0,duration:1e3,isTab:!0})}else if(501==e.data.messageCode)return void t.$refs.uToast.show({title:"用户名或密码错误",type:"error"})},fail:function(t){reject(t)}}):this.$refs.uToast.show({title:"用户名和密码不能为空",type:"error"})},register:function(){this.$u.route({url:"pages/user/register"})}})};e.default=r},"9b5a":function(t,e,i){"use strict";i.r(e);var n=i("423e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},b40a:function(t,e,i){"use strict";i.r(e);var n=i("dd89"),a=i("2d0f");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("6d5e");var r,u=i("f0c5"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"070c62ba",null,!1,n["a"],r);e["default"]=s.exports},bc25:function(t,e,i){var n=i("d318");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5f65dc02",n,!0,{sourceMap:!1,shadowMode:!1})},bebf:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-col-0[data-v-0a5981a4]{width:0}.u-col-1[data-v-0a5981a4]{width:calc(100%/12)}.u-col-2[data-v-0a5981a4]{width:calc(100%/12 * 2)}.u-col-3[data-v-0a5981a4]{width:calc(100%/12 * 3)}.u-col-4[data-v-0a5981a4]{width:calc(100%/12 * 4)}.u-col-5[data-v-0a5981a4]{width:calc(100%/12 * 5)}.u-col-6[data-v-0a5981a4]{width:calc(100%/12 * 6)}.u-col-7[data-v-0a5981a4]{width:calc(100%/12 * 7)}.u-col-8[data-v-0a5981a4]{width:calc(100%/12 * 8)}.u-col-9[data-v-0a5981a4]{width:calc(100%/12 * 9)}.u-col-10[data-v-0a5981a4]{width:calc(100%/12 * 10)}.u-col-11[data-v-0a5981a4]{width:calc(100%/12 * 11)}.u-col-12[data-v-0a5981a4]{width:calc(100%/12 * 12)}',""]),t.exports=e},c3b6:function(t,e,i){"use strict";i("c975"),i("a9e3"),i("b64b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-toast",props:{zIndex:{type:[Number,String],default:""}},data:function(){return{isShow:!1,timer:null,config:{params:{},title:"",type:"",duration:2e3,isTab:!1,url:"",icon:!0,position:"center",callback:null,back:!1},tmpConfig:{}}},computed:{iconName:function(){if(["error","warning","success","info"].indexOf(this.tmpConfig.type)>=0&&this.tmpConfig.icon){var t=this.$u.type2icon(this.tmpConfig.type);return t}},uZIndex:function(){return this.isShow?this.zIndex?this.zIndex:this.$u.zIndex.toast:"999999"}},methods:{show:function(t){var e=this;this.tmpConfig=this.$u.deepMerge(this.config,t),this.timer&&(clearTimeout(this.timer),this.timer=null),this.isShow=!0,this.timer=setTimeout((function(){e.isShow=!1,clearTimeout(e.timer),e.timer=null,"function"===typeof e.tmpConfig.callback&&e.tmpConfig.callback(),e.timeEnd()}),this.tmpConfig.duration)},hide:function(){this.isShow=!1,this.timer&&(clearTimeout(this.timer),this.timer=null)},timeEnd:function(){if(this.tmpConfig.url){if("/"!=this.tmpConfig.url[0]&&(this.tmpConfig.url="/"+this.tmpConfig.url),Object.keys(this.tmpConfig.params).length){var t="";/.*\/.*\?.*=.*/.test(this.tmpConfig.url)?(t=this.$u.queryParams(this.tmpConfig.params,!1),this.tmpConfig.url=this.tmpConfig.url+"&"+t):(t=this.$u.queryParams(this.tmpConfig.params),this.tmpConfig.url+=t)}this.tmpConfig.isTab?uni.switchTab({url:this.tmpConfig.url}):uni.navigateTo({url:this.tmpConfig.url})}else this.tmpConfig.back&&this.$u.route({type:"back"})}}};e.default=n},c5b5:function(t,e,i){var n=i("29c3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d828432",n,!0,{sourceMap:!1,shadowMode:!1})},d318:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-row[data-v-345affc4]{\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-flex-wrap:wrap;flex-wrap:wrap}',""]),t.exports=e},d997:function(t,e,i){"use strict";i.r(e);var n=i("8eb9"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},dd89:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("5976").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-toast",class:[t.isShow?"u-show":"","u-type-"+t.tmpConfig.type,"u-position-"+t.tmpConfig.position],style:{zIndex:t.uZIndex}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[t.tmpConfig.icon?i("u-icon",{staticClass:"u-icon",attrs:{name:t.iconName,size:30,color:t.tmpConfig.type}}):t._e()],1),i("v-uni-text",{staticClass:"u-text"},[t._v(t._s(t.tmpConfig.title))])],1)},o=[]},ea07:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-row",style:{alignItems:t.uAlignItem,justifyContent:t.uJustify},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},o=[]},f088:function(t,e,i){"use strict";i.r(e);var n=i("6bfc"),a=i("1a43");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("fb24");var r,u=i("f0c5"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"75b5b77b",null,!1,n["a"],r);e["default"]=s.exports},fb24:function(t,e,i){"use strict";var n=i("8c17"),a=i.n(n);a.a}}]);