(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-login"],{"0bd5":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("9b1b")),i=n("75a0"),r={data:function(){return{userInfo:{account:"",password:""}}},onLoad:function(){uni.getStorageSync("token")&&this.login()},methods:{register:function(){uni.navigateTo({url:"/pages/my/register"})},login:function(){uni.showLoading({title:"登录中"}),(0,i.post)("/myapi/api/yq_driver/login",(0,a.default)({},this.userInfo)).then((function(t){setTimeout((function(){uni.setStorageSync("token",t.data.token),uni.hideLoading(),uni.showToast({title:"登录成功！",icon:"none"}),setTimeout((function(){uni.switchTab({url:"/pages/my/index"})}),500)}),500)}))}}};e.default=r},2443:function(t,e,n){"use strict";n.r(e);var o=n("2497"),a=n("f944");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("4ae2");var r=n("828b"),u=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"c652262e",null,!1,o["a"],void 0);e["default"]=u.exports},2497:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={"u-Form":n("051a").default,uFormItem:n("f521").default,"u-Input":n("eaa2").default,"u-Text":n("5654").default,uButton:n("14ce").default},a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"container"},[o("v-uni-view",{staticStyle:{width:"100%"}},[o("v-uni-image",{staticStyle:{width:"100%",height:"200px","background-color":"#eeeeee"},attrs:{src:n("fdad")}})],1),o("v-uni-view",{staticClass:"title"},[o("h1",[t._v("危化品车辆运单平台")])]),o("v-uni-view",{staticClass:"login"},[o("u--form",{ref:"uForm",staticClass:"form",attrs:{labelPosition:"left",model:t.userInfo}},[o("u-form-item",{ref:"item1",attrs:{label:"账号:",prop:"userInfo.account",borderBottom:!0}},[o("u--input",{attrs:{border:"none",maxlength:"20",placeholder:"请输入账号"},model:{value:t.userInfo.account,callback:function(e){t.$set(t.userInfo,"account",e)},expression:"userInfo.account"}})],1),o("u-form-item",{attrs:{label:"密码:",prop:"userInfo.password",borderBottom:!0}},[o("u--input",{attrs:{border:"none",type:"password",maxlength:"20",placeholder:"请输入密码"},model:{value:t.userInfo.password,callback:function(e){t.$set(t.userInfo,"password",e)},expression:"userInfo.password"}})],1)],1)],1),o("v-uni-view",{staticClass:"register"},[o("u--text",{attrs:{type:"primary",text:"没有账号，前往注册？"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}})],1),o("u-button",{staticClass:"btn",attrs:{type:"primary",text:"登录",shape:"circle"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.login.apply(void 0,arguments)}}})],1)},i=[]},"4ae2":function(t,e,n){"use strict";var o=n("e80b"),a=n.n(o);a.a},bf95:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,".container[data-v-c652262e]{display:flex;flex-direction:column;align-items:center;height:calc(100vh - 50px)}.container .title[data-v-c652262e]{position:fixed;top:110px;color:#fff}.container .login[data-v-c652262e]{padding:20px 0;width:80%}.container .login .form[data-v-c652262e]{height:100px}.container .register[data-v-c652262e]{width:80%;padding-bottom:10px}.container .btn[data-v-c652262e]{width:80%;font-size:24px}",""]),t.exports=e},e80b:function(t,e,n){var o=n("bf95");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("d7647122",o,!0,{sourceMap:!1,shadowMode:!1})},f944:function(t,e,n){"use strict";n.r(e);var o=n("0bd5"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},fdad:function(t,e,n){t.exports=n.p+"static/2021111015193250849.jpg"}}]);