(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/member/organization"],{3967:function(e,t,n){"use strict";n.r(t);var o=n("aabf"),r=n("b471");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("9802");var a=n("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},9802:function(e,t,n){"use strict";var o=n("d2f5"),r=n.n(o);r.a},a3a9:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("7ca3")),i=n("8f59");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var c={components:{memberCustom:function(){n.e("pages/component/member/custom").then(function(){return resolve(n("4c4f"))}.bind(null,n)).catch(n.oe)},carousel:function(){n.e("pages/component/carousel/carousel").then(function(){return resolve(n("b5fc"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,memberId:null,memberInfo:{},carouselList:[],showLogin:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,i.mapState)({themeColor:function(e){return e.app.themeColor},loginImg:function(e){return e.app.loginImg},memberTypeConfig:function(e){return e.app.memberTypeConfig}})),onLoad:function(t){var n=this;this.memberId=t.id,e.getStorageSync("token")?(e.showLoading({title:"加载中"}),this.getMemberInfo((function(){n.loadEnd=!0,e.hideLoading()}))):(this.showLogin=!0,this.$util.verifyLogin(2))},onShareTimeline:function(){return{title:"".concat(this.memberInfo.member_level_name||"","单位").concat(this.memberInfo.organize_name||""),path:"/pages/member/organization?id="+this.memberId,imageUrl:this.memberInfo.organize_logo}},onShareAppMessage:function(){return{title:"".concat(this.memberInfo.member_level_name||"","单位").concat(this.memberInfo.organize_name||""),path:"/pages/member/organization?id="+this.memberId,imageUrl:this.memberInfo.organize_logo}},methods:{getMemberInfo:function(t){var n=this;this.$util.request("member.organization",{id:this.memberId}).then((function(o){t&&t(),1==o.code?(n.memberInfo=o.data,n.carouselList=n.splitImages(o.data.company_carousel_images||"")):e.showToast({title:o.msg,icon:"none"})})).catch((function(e){401==e?n.showLogin=!0:console.error("获取会员详情 ",e)}))},splitImages:function(e){try{return e?e.split(","):[]}catch(t){return[]}},toProductDetails:function(e){this.$util.toPage({mode:1,path:"/pages/member/product/details?id="+e})},toNavigation:function(){var e=JSON.parse(this.memberInfo.address_json||"{}");this.$util.toPage({mode:7,address:e})},onContact:function(){this.$util.toPage({mode:6,phone:this.memberInfo.company_office_number})},toLogin:function(){e.redirectTo({url:"/pages/member/organization?id=".concat(this.memberId)})}}};t.default=c}).call(this,n("df3c")["default"])},a609:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("aa6c");o(n("3240"));var r=o(n("3967"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},aabf:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var o={mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"7717"))}},r=function(){var e=this.$createElement,t=(this._self._c,this.loadEnd?this.carouselList.length:null),n=this.loadEnd?this.memberInfo.company_goods_list&&this.memberInfo.company_goods_list.length:null;this.$mp.data=Object.assign({},{$root:{g0:t,g1:n}})},i=[]},b471:function(e,t,n){"use strict";n.r(t);var o=n("a3a9"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},d2f5:function(e,t,n){}},[["a609","common/runtime","common/vendor"]]]);