chunk-6e2fa50c.7c4d9fcf.js 5.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e2fa50c"],{"0e18":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:"page-container"},[n("header",{staticClass:"head"},[n("i",{staticClass:"iconfont icon-left",on:{click:t.goBack}}),t._m(0)]),n("div",{staticClass:"list"},[n("mt-cell",{attrs:{title:"名称"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("div",{staticClass:"list"},[t.isBiz?t._e():n("mt-cell",{attrs:{title:"登录名"},model:{value:t.loginName,callback:function(e){t.loginName=e},expression:"loginName"}})],1),n("div",{staticClass:"list"},[t.isBiz?n("mt-cell",{attrs:{title:"联系人"},model:{value:t.contactUser,callback:function(e){t.contactUser=e},expression:"contactUser"}}):t._e()],1),n("div",{staticClass:"list"},[n("mt-cell",{attrs:{title:"联系方式"},model:{value:t.contactPhone,callback:function(e){t.contactPhone=e},expression:"contactPhone"}})],1),n("div",{staticClass:"list"},[n("mt-cell",{attrs:{title:"修改密码",to:"updatePassword","is-link":""}})],1)])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"title"},[n("div",[t._v("我的消息")])])}],c=n("24ec"),r=n("5cab"),s={name:"Home",data:function(){return{name:"",loginName:"",contactUser:"",contactPhone:"",isBiz:!1}},mounted:function(){this.isBiz=null!==r["a"].bid(),this.isBiz?this.getBizInfo(r["a"].bid()):this.getUserInfo(r["a"].uid())},methods:{getUserInfo:function(t){var e=this;Object(c["h"])(t).then(function(t){t.data&&(e.name=t.data.truename,e.loginName=t.data.username,e.contactPhone=t.data.phone)})},getBizInfo:function(t){var e=this;console.log(t),Object(c["b"])(t).then(function(t){t.data&&(e.name=t.data.businessName,e.contactUser=t.data.contactUser,e.contactPhone=t.data.contactPhone)})},goBack:function(){this.$router.push("./mine")}}},i=s,u=(n("3cdd"),n("2877")),d=Object(u["a"])(i,a,o,!1,null,"10e8da5b",null);e["default"]=d.exports},"24ec":function(t,e,n){"use strict";n.d(e,"i",function(){return s}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return u}),n.d(e,"j",function(){return d}),n.d(e,"g",function(){return l}),n.d(e,"p",function(){return f}),n.d(e,"m",function(){return h}),n.d(e,"n",function(){return m}),n.d(e,"o",function(){return b}),n.d(e,"a",function(){return g}),n.d(e,"f",function(){return p}),n.d(e,"l",function(){return j}),n.d(e,"k",function(){return O}),n.d(e,"d",function(){return k}),n.d(e,"h",function(){return v}),n.d(e,"b",function(){return w});var a=n("8982"),o="/industryParkApi",c="/wx/user",r="/wx/frameUser";function s(t){return Object(a["a"])({url:o+c+"/login_by_app_main",method:"post",data:t})}function i(t){return Object(a["a"])({url:o+c+"/editMyInformation",method:"post",data:t})}function u(t){return Object(a["a"])({url:o+c+"/changePassword",method:"post",data:t})}function d(t){return Object(a["a"])({url:o+r+"/getById",method:"post",data:t})}function l(t){return Object(a["a"])({url:o+c+"/getById",method:"post",data:t})}function f(t){return Object(a["a"])({url:o+c+"/wechatUnBind",method:"post",data:t})}function h(t){return Object(a["a"])({url:o+c+"/unbound",method:"post",data:t})}function m(t){return Object(a["a"])({url:o+c+"/unbound2",method:"post",data:t})}function b(t){return Object(a["a"])({url:o+c+"/wechatBind",method:"post",data:t})}function g(t){return Object(a["a"])({url:o+c+"/binding",method:"post",data:t})}function p(t){return Object(a["a"])({url:o+r+"/editPassword",method:"post",data:t})}function j(t){return Object(a["a"])({url:o+c+"/send",method:"post",data:t})}function O(t){return Object(a["a"])({url:o+c+"/register_by_account",method:"post",data:t})}function k(t){return Object(a["a"])({url:o+c+"/checkAccount",method:"post",data:t})}function v(t){return Object(a["a"])({url:o+c+"/userInfo/"+t,method:"post"})}function w(t){return Object(a["a"])({url:o+c+"/bizInfo/"+t,method:"post"})}},"3cdd":function(t,e,n){"use strict";var a=n("5250"),o=n.n(a);o.a},5250:function(t,e,n){},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return m});var a=n("795b"),o=n.n(a),c=n("bc3a"),r=n.n(c),s=n("4328"),i=n.n(s),u=n("4360"),d=n("5cab"),l=n("a18c"),f=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:i.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new o.a(function(e,a){r()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(f["Toast"])(n.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["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(f["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(f["Toast"])(e),a(e,n)})})}function m(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 o.a(function(n,a){r.a.defaults.withCredentials=!0,r()(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(f["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["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(f["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(f["Toast"])(e),a(e,n)})})}}}]);