1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e41de89"],{2268:function(t,e,a){"use strict";a.d(e,"e",function(){return o}),a.d(e,"a",function(){return c}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return u}),a.d(e,"b",function(){return d});var s=a("8982"),n="/industryParkApi",r="/wx/addressBook";function o(t){return Object(s["a"])({url:n+r+"/list",method:"post",data:t})}function c(t){return Object(s["a"])({url:n+r+"/bizMainList",method:"post",data:t})}function i(t){return Object(s["a"])({url:n+r+"/getWxByName",method:"post",data:t})}function u(t){return Object(s["a"])({url:n+r+"/getCompanyAddressBookById",method:"post",data:t})}function d(t){return Object(s["a"])({url:n+r+"/getById",method:"post",data:t})}},6253: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:"addressBook"},[a("van-tabs",{attrs:{"title-active-color":"#2A3980",color:"#2A3980","title-inactive-color":"#666666"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"物管人员"}},[a("div",{staticClass:"tabs-box"},t._l(t.list0,function(e){return a("div",{staticClass:"white-box"},[a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v(t._s(e.department)+"部门")])]),t._l(e.nameList,function(e){return a("div",{staticClass:"cell-item",on:{click:function(a){return t.goNavigator("addressBookProperty-propertyManagement-app",{id:e.id})}}},[a("p",{staticClass:"label"},[t._v(t._s(e.name))]),a("p",{staticClass:"tit"},[t._v(t._s(e.post))])])})],2)}),0)])],1)],1)},n=[],r=(a("ac6a"),a("2268")),o={data:function(){return{active:0,list0:[],params:{}}},mounted:function(){this.initAddressList()},methods:{getTips:function(t){this.tip=t.value},initAddressList:function(){var t=this;Object(r["e"])(t.params).then(function(e){console.log(e),e.length>0&&e.forEach(function(e){"2"===e.type&&(t.list0=e.unitList)})})}}},c=o,i=(a("f855"),a("2877")),u=Object(i["a"])(c,s,n,!1,null,"8e0e5144",null);e["default"]=u.exports},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return f}),a.d(e,"b",function(){return p});var s=a("795b"),n=a.n(s),r=a("bc3a"),o=a.n(r),c=a("4328"),i=a.n(c),u=a("4360"),d=a("5cab"),l=a("a18c"),h=a("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url,data:i.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new n.a(function(e,s){o()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["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(h["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(h["Toast"])(e),s(e,a)})})}function p(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 n.a(function(a,s){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(h["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["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(h["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(h["Toast"])(e),s(e,a)})})}},ad57:function(t,e,a){},f855:function(t,e,a){"use strict";var s=a("ad57"),n=a.n(s);n.a}}]);
|