chunk-6413de69.67335ee3.js 5.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6413de69"],{"24ec":function(t,e,n){"use strict";n.d(e,"i",function(){return c}),n.d(e,"e",function(){return u}),n.d(e,"c",function(){return i}),n.d(e,"j",function(){return d}),n.d(e,"g",function(){return f}),n.d(e,"p",function(){return l}),n.d(e,"m",function(){return h}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return m}),n.d(e,"a",function(){return p}),n.d(e,"f",function(){return v}),n.d(e,"l",function(){return g}),n.d(e,"k",function(){return j}),n.d(e,"d",function(){return O}),n.d(e,"h",function(){return C}),n.d(e,"b",function(){return _});var a=n("8982"),s="/industryParkApi",r="/wx/user",o="/wx/frameUser";function c(t){return Object(a["a"])({url:s+r+"/login_by_app_main",method:"post",data:t})}function u(t){return Object(a["a"])({url:s+r+"/editMyInformation",method:"post",data:t})}function i(t){return Object(a["a"])({url:s+r+"/changePassword",method:"post",data:t})}function d(t){return Object(a["a"])({url:s+o+"/getById",method:"post",data:t})}function f(t){return Object(a["a"])({url:s+r+"/getById",method:"post",data:t})}function l(t){return Object(a["a"])({url:s+r+"/wechatUnBind",method:"post",data:t})}function h(t){return Object(a["a"])({url:s+r+"/unbound",method:"post",data:t})}function b(t){return Object(a["a"])({url:s+r+"/unbound2",method:"post",data:t})}function m(t){return Object(a["a"])({url:s+r+"/wechatBind",method:"post",data:t})}function p(t){return Object(a["a"])({url:s+r+"/binding",method:"post",data:t})}function v(t){return Object(a["a"])({url:s+o+"/editPassword",method:"post",data:t})}function g(t){return Object(a["a"])({url:s+r+"/send",method:"post",data:t})}function j(t){return Object(a["a"])({url:s+r+"/register_by_account",method:"post",data:t})}function O(t){return Object(a["a"])({url:s+r+"/checkAccount",method:"post",data:t})}function C(t){return Object(a["a"])({url:s+r+"/userInfo/"+t,method:"post"})}function _(t){return Object(a["a"])({url:s+r+"/bizInfo/"+t,method:"post"})}},"646d":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mine-box"},[n("div",{staticClass:"mine-body"},[n("div",{staticClass:"form-list-box"},[n("div",{staticClass:"info-box"},[n("div",{staticClass:"label"},[t._v("所属公司")]),n("div",{staticClass:"input-box"},[n("span",[t._v(t._s(t.userInfo.companyName))])])]),n("div",{staticClass:"info-box"},[n("div",{staticClass:"label"},[t._v("所在部门")]),n("div",{staticClass:"input-box"},[n("span",[t._v(t._s(t.userInfo.deptName))])])]),n("div",{staticClass:"info-box"},[n("div",{staticClass:"label"},[t._v("职位")]),n("div",{staticClass:"input-box"},[n("span",[t._v(t._s(t.userInfo.roleName))])])]),n("div",{staticClass:"info-box"},[n("div",{staticClass:"label"},[t._v("电话")]),n("div",{staticClass:"input-box"},[n("span",[t._v(t._s(t.userInfo.phone))])])]),n("div",{staticClass:"info-box"},[n("div",{staticClass:"label"},[t._v("邮箱")]),n("div",{staticClass:"input-box"},[n("span",[t._v(t._s(t.userInfo.email))])])])])])])},s=[],r=n("24ec"),o=n("5cab"),c={name:"MyInfo",data:function(){return{userInfo:""}},created:function(){},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;Object(r["j"])({id:o["a"].currUser().id}).then(function(e){e.data&&(t.userInfo=e.data)})}}},u=c,i=(n("b220"),n("2877")),d=Object(i["a"])(u,a,s,!1,null,"bee0bdd4",null);e["default"]=d.exports},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return b});var a=n("795b"),s=n.n(a),r=n("bc3a"),o=n.n(r),c=n("4328"),u=n.n(c),i=n("4360"),d=n("5cab"),f=n("a18c"),l=n("3089");function h(t,e){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var n={method:t.method,url:t.url,data:u.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new s.a(function(e,a){o()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(l["Toast"])(n.errmsg),setTimeout(function(){i["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(l["Toast"])(n.errmsg),a(n.errmsg);break}e(n)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),a(e,n)})})}function b(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new s.a(function(n,a){o.a.defaults.withCredentials=!0,o()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(l["Toast"])(e.errmsg),setTimeout(function(){i["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(l["Toast"])(e.errmsg),a(e.errmsg);break}n(e)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),a(e,n)})})}},b220:function(t,e,n){"use strict";var a=n("c943"),s=n.n(a);s.a},c943:function(t,e,n){}}]);