(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/association"],{"3d2a":function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7ca3")),a=e("8f59");function r(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}var c={data:function(){return{loadEnd:!1,titleBarHeight:0,pageTitle:"",selectMenu:1,associationInfo:{}}},computed:function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(Object(e),!0).forEach((function(n){(0,i.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},(0,a.mapState)({themeColor:function(t){return t.app.themeColor},organize:function(t){return t.app.organize},menuList:function(t){return[{id:1,name:t.app.organize+"介绍"},{id:2,name:t.app.organize+"荣誉"},{id:3,name:t.app.organize+"章程"},{id:4,name:"联系我们"}]}})),mounted:function(){var n=t.getSystemInfoSync().statusBarHeight,e=t.getMenuButtonBoundingClientRect();this.titleBarHeight=n+2*(e.top-n)+e.height},onLoad:function(){var n=this;t.showLoading({title:"加载中"}),this.getIntroduce((function(){n.loadEnd=!0,t.hideLoading()}))},onReady:function(){this.pageTitle=this.organize+"介绍"},onShareAppMessage:function(){return{title:this.associationInfo.name,imageUrl:this.associationInfo.logo}},onShareTimeline:function(){return{title:this.associationInfo.name,imageUrl:this.associationInfo.logo}},methods:{getIntroduce:function(n){var e=this;this.$util.request("main.association").then((function(o){n&&n(),1==o.code?e.associationInfo=o.data:t.showToast({title:o.msg,icon:"none"})})).catch((function(t){n&&n(),console.error("获取商会介绍 ",t)}))},changeMenu:function(t,n){this.selectMenu=t,this.pageTitle=n},onContact:function(t){var n={};if(1==t)n={mode:6,phone:this.associationInfo.phone};else if(2==t)n={mode:7,address:{latitude:this.associationInfo.lat,longitude:this.associationInfo.lng,address:this.associationInfo.address}};else if(3==t)n={mode:8,content:this.associationInfo.mailbox};else if(4==t){if(!this.associationInfo.qr_code_jump_link)return;n={mode:4,path:this.associationInfo.qr_code_jump_link}}this.$util.toPage(n)}}};n.default=c}).call(this,e("df3c")["default"])},"4ed5":function(t,n,e){},5996:function(t,n,e){"use strict";e.r(n);var o=e("d0fa"),i=e("c2b7");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("c0fb");var r=e("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},b7dc:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("aa6c");o(e("3240"));var i=o(e("5996"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},c0fb:function(t,n,e){"use strict";var o=e("4ed5"),i=e.n(o);i.a},c2b7:function(t,n,e){"use strict";e.r(n);var o=e("3d2a"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},d0fa:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={mpHtml:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(e.bind(null,"7717"))}},i=function(){var t=this.$createElement;this._self._c},a=[]}},[["b7dc","common/runtime","common/vendor"]]]);