(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-loginoa-loginoa"],{"5af3e":function(t,e,o){"use strict";(function(t){var a=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.login=r,e.getInfo=s,e.logout=i,e.sysloginoa=u;var n=a(o("7ce4"));function r(e){return t.warn(e),(0,n.default)({url:"/user",method:"POST",data:e})}function s(t){return(0,n.default)({url:"/user/GetUserInfo",method:"get",params:{token:t}})}function i(t){return(0,n.default)({url:"/user/logout",method:"get",params:{userid:t}})}function u(e){return t.warn(e),(0,n.default)({url:"/user/sysloginoa",method:"get",params:{usercode:e}})}}).call(this,o("5a52")["default"])},"8fa0":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o("5af3e"),n={data:function(){return{usercode:this.$util.getQuery("userid")}},created:function(){this.syslogin()},methods:{syslogin:function(e){var o=this,n=this.$util.getQuery("userid");t.info("syslogin",n),n?(this.loading=!0,(0,a.sysloginoa)(n).then((function(e){t.info("sysloginoa",e),e.isSuccess?(o.$store.commit("setIsLogin",!0),o.$store.commit("setToken",e.tnToken),o.$store.commit("setAvatar",e.data.avatar),o.$store.commit("setName",e.data.name),o.$store.commit("setIntroduction",e.data.introduction),o.$store.commit("setRoles",e.data.roles),o.$store.commit("setUser",e.data.user),o.$store.commit("setStationName",e.data.stationName),o.$store.commit("setStationCode",e.data.stationCode),o.$store.commit("setDepartmentName",e.data.departmentName),o.$store.commit("setDepartmentCode",e.data.departmentCode),e.data.projectCode&&o.$store.commit("setProjectCode",e.projectCode),t.info("登录页面state:",o.$store.state),uni.setStorage({key:"storage_state",data:o.$store.state,success:function(){t.info("setStorage状态缓存成功"),t.info("storage_state",uni.getStorageSync("storage_state"))},fail:function(){t.error("setStorage状态缓存失败")}}),o.loading=!1,""!==o.$store.state.projectCode?uni.navigateTo({url:"/pages/index/index"}):uni.navigateTo({url:"/pages/SelectProject/SelectProject"})):uni.showModal({title:"提示",content:e.errorMsg,showCancel:!1})})).catch((function(e){t.log(e),o.loading=!1}))):uni.showModal({title:"提示",content:"用户名不能为空",showCancel:!1})}}};e.default=n}).call(this,o("5a52")["default"])},ab52:function(t,e,o){"use strict";o.r(e);var a=o("c98c"),n=o("e703");for(var r in n)"default"!==r&&function(t){o.d(e,t,(function(){return n[t]}))}(r);var s,i=o("f0c5"),u=Object(i["a"])(n["default"],a["b"],a["c"],!1,null,"af7a932e",null,!1,a["a"],s);e["default"]=u.exports},c98c:function(t,e,o){"use strict";var a;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view")},r=[]},e703:function(t,e,o){"use strict";o.r(e);var a=o("8fa0"),n=o.n(a);for(var r in a)"default"!==r&&function(t){o.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a}}]);