(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_company-auth-login"],{"4ec7":function(n,t,e){"use strict";var o=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.login=r,t.getUserInfo=s,t.getQrImg=c;var a=o(e("9bb2")),i=(new a.default).http;function r(n){return i("/app/companyUser/login",n,"POST","application/json;charset=UTF-8")}function s(n){return i("/app/companyUser/getUserInfo",n,"GET","application/json;charset=UTF-8")}function c(n){return i("/app/companyUser/getQrImg",n,"GET","application/json;charset=UTF-8")}},"53de":function(n,t,e){var o=e("5a4f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var a=e("4f06").default;a("845bf8d4",o,!0,{sourceMap:!1,shadowMode:!1})},"5a4f":function(n,t,e){var o=e("24fb");t=o(!1),t.push([n.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-14ecbde1]{height:100%}.content[data-v-14ecbde1]{display:flex;flex-direction:column;justify-content:space-between}.content .inner[data-v-14ecbde1]{padding:%?20?%}.content .inner .form-box[data-v-14ecbde1]{padding:0 %?30?%;background:#fff;border-radius:%?16?%}.content .inner .form-box .form-item[data-v-14ecbde1]{padding:%?30?% 0;display:flex;align-items:flex-start;border-bottom:1px solid #f1f1f1}.content .inner .form-box .form-item[data-v-14ecbde1]:last-child{border-bottom:none}.content .inner .form-box .form-item .label[data-v-14ecbde1]{width:%?150?%;text-align:left;font-size:%?30?%;line-height:%?44?%;font-family:PingFang SC;font-weight:500;color:#222;flex-shrink:0}.content .inner .form-box .form-item uni-input[data-v-14ecbde1]{text-align:left}.content .inner .form-box .form-item .form-input[data-v-14ecbde1]{font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#999;text-align:left}.content .btn-box[data-v-14ecbde1]{height:%?120?%;padding:0 %?30?%;display:flex;align-items:center;justify-content:center}.content .btn-box .sub-btn[data-v-14ecbde1]{width:100%;height:%?88?%;line-height:%?88?%;text-align:center;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff;background:#2bc7b9;border-radius:%?44?%}',""]),n.exports=t},6603:function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"inner"},[e("v-uni-view",{staticClass:"form-box"},[e("v-uni-view",{staticClass:"form-item"},[e("v-uni-text",{staticClass:"label"},[n._v("员工帐号")]),e("v-uni-input",{attrs:{type:"text",placeholder:"登录帐号","placeholder-class":"form-input"},model:{value:n.form.userName,callback:function(t){n.$set(n.form,"userName",t)},expression:"form.userName"}})],1),e("v-uni-view",{staticClass:"form-item"},[e("v-uni-text",{staticClass:"label"},[n._v("员工密码")]),e("v-uni-input",{attrs:{type:"password",placeholder:"登录密码","placeholder-class":"form-input"},model:{value:n.form.password,callback:function(t){n.$set(n.form,"password",t)},expression:"form.password"}})],1)],1)],1),e("v-uni-view",{staticClass:"btn-box"},[e("v-uni-view",{staticClass:"sub-btn",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.submit()}}},[n._v("员工登录")])],1)],1)},i=[]},"67d2":function(n,t,e){"use strict";e.r(t);var o=e("6603"),a=e("c97e");for(var i in a)"default"!==i&&function(n){e.d(t,n,(function(){return a[n]}))}(i);e("deab");var r,s=e("f0c5"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"14ecbde1",null,!1,o["a"],r);t["default"]=c.exports},a78d:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("4ec7"),a={data:function(){return{form:{userName:null,password:null}}},computed:{},onLoad:function(){},onHide:function(){},onUnload:function(){},mounted:function(){},methods:{submit:function(){(0,o.login)(this.form).then((function(n){200==n.code?(uni.showToast({icon:"success",title:"登录成功"}),uni.setStorageSync("CompanyUserToken",n.companyUserToken),uni.navigateBack({delta:1}),uni.navigateTo({url:"/pages_company/index"})):uni.showToast({icon:"none",title:n.msg})}),(function(n){}))}}};t.default=a},c97e:function(n,t,e){"use strict";e.r(t);var o=e("a78d"),a=e.n(o);for(var i in o)"default"!==i&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=a.a},deab:function(n,t,e){"use strict";var o=e("53de"),a=e.n(o);a.a}}]);