chunk-54c58344.56b9803c.js 4.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54c58344"],{"08cf":function(t,e,a){},2268:function(t,e,a){"use strict";a.d(e,"e",function(){return i}),a.d(e,"a",function(){return o}),a.d(e,"d",function(){return r}),a.d(e,"c",function(){return l}),a.d(e,"b",function(){return u});var s=a("8982"),n="/industryParkApi",c="/wx/addressBook";function i(t){return Object(s["a"])({url:n+c+"/list",method:"post",data:t})}function o(t){return Object(s["a"])({url:n+c+"/bizMainList",method:"post",data:t})}function r(t){return Object(s["a"])({url:n+c+"/getWxByName",method:"post",data:t})}function l(t){return Object(s["a"])({url:n+c+"/getCompanyAddressBookById",method:"post",data:t})}function u(t){return Object(s["a"])({url:n+c+"/getById",method:"post",data:t})}},"7d76":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"convenient-tel-box"},[a("div",{staticClass:"page-content"},[a("div",{staticClass:"white-box page-1"},[a("span",[t._v(t._s(t.name))])]),t._l(t.list,function(e){return a("div",{staticClass:"page-2 white-box"},[a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("联系人")]),a("div",{staticClass:"tit"},[t._v(t._s(e.name))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("职能")]),a("div",{staticClass:"tit"},[t._v(t._s(e.post))])]),a("div",{staticClass:"cell-item flex-item"},[a("p",{staticClass:"label"},[t._v("公电话")]),a("div",{staticClass:"tit tel-box"},[a("span",[t._v(t._s(e.officeTelephone))]),a("TelNum",{attrs:{num:e.officeTelephone,showTel:!1}})],1)]),a("div",{staticClass:"cell-item flex-item"},[a("p",{staticClass:"label"},[t._v("手机号")]),a("div",{staticClass:"tit tel-box"},[a("span",[t._v(t._s(e.phone))]),a("TelNum",{attrs:{num:e.phone,showTel:!1}})],1)]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("邮箱")]),a("div",{staticClass:"tit"},[t._v(t._s(e.email))])])])})],2)])},n=[],c=(a("7f7f"),a("f7eb")),i=a("2268"),o={components:{TelNum:c["a"]},data:function(){return{list:[],name:""}},mounted:function(){this.name=this.$route.params.name,this.selectById()},methods:{selectById:function(){var t=this;Object(i["d"])({name:t.name}).then(function(e){var a=e.data;t.list=a})}}},r=o,l=(a("b6e5"),a("2877")),u=Object(l["a"])(r,s,n,!1,null,"1180aa54",null);e["default"]=u.exports},"7f7f":function(t,e,a){var s=a("86cc").f,n=Function.prototype,c=/^\s*function ([^ (]*)/,i="name";i in n||a("9e1e")&&s(n,i,{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(t){return""}}})},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return h}),a.d(e,"b",function(){return m});var s=a("795b"),n=a.n(s),c=a("bc3a"),i=a.n(c),o=a("4328"),r=a.n(o),l=a("4360"),u=a("5cab"),d=a("a18c"),f=a("3089");function h(t,e){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var a={method:t.method,url:t.url,data:r.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new n.a(function(e,s){i()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),s(a.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"])(a.errmsg),s(a.errmsg);break}e(a)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}function m(t){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["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 n.a(function(a,s){i.a.defaults.withCredentials=!0,i()(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(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),s(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),s(e.errmsg);break}a(e)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}},b6e5:function(t,e,a){"use strict";var s=a("08cf"),n=a.n(s);n.a}}]);