(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"25e8":function(e,t,a){"use strict";a.r(t);var n=a("b74e"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"41e6":function(e,t,a){},4433:function(e,t,a){"use strict";a.r(t);var n=a("8943"),i=a("25e8");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("e164");var o=a("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=c.exports},8943:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=(e._self._c,e.loadEnd&&e.diyData&&e.diyData.page&&e.diyData.page.style&&e.diyData.page.style.backgroundImage?e.getImagePath(e.diyData.page.style.backgroundImage):null);e.$mp.data=Object.assign({},{$root:{m0:a}})},i=[]},b74e:function(e,t,a){"use strict";(function(e){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("7eb4")),r=n(a("ee10")),o=n(a("7ca3")),c=a("8f59");function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}var l={components:{diyMode:function(){a.e("pages/component/diy/index").then(function(){return resolve(a("3f72"))}.bind(null,a)).catch(a.oe)}},data:function(){return{loadEnd:!1,diyData:null,shareData:{},spaceHeight:0}},computed:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,o.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},(0,c.mapState)({themeColor:function(e){return e.app.themeColor},appletName:function(e){return e.app.appletName},shareImage:function(e){return e.app.shareImage},shareTitle:function(e){return e.app.shareTitle}})),onLoad:function(t){var a=this;return(0,r.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,a.$onLaunched;case 2:t.scene&&e.setStorageSync("parentWechatId",t.scene||""),e.showLoading({title:"加载中"}),a.getDiyData((function(){e.hideLoading(),a.loadEnd=!0}));case 5:case"end":return n.stop()}}),n)})))()},onShow:function(){this.loadEnd&&this.getDiyData()},onPullDownRefresh:function(){this.getDiyData((function(){e.stopPullDownRefresh()}))},onShareAppMessage:function(e){return"button"==e.from?{title:this.shareData.title,path:this.shareData.path,imageUrl:this.shareData.imageUrl||this.shareImage}:{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{getDiyData:function(t){var a=this;this.$util.request("main.diyData").then((function(n){if(1==n.code){var i,r;if(a.diyData=n.data,n.data&&n.data.page){var o=n.data.page;e.setNavigationBarColor({frontColor:"white"===o.style.titleTextColor?"#ffffff":"#000000",backgroundColor:o.style.titleBackgroundColor||""}),e.setNavigationBarTitle({title:o.params.title||a.appletName||""})}else e.setNavigationBarTitle({title:a.appletName||""});if(a.loadEnd&&a.$refs.diyMode.updateData(),t&&t(),null!==(i=n.data)&&void 0!==i&&null!==(r=i.items)&&void 0!==r&&r.length){var c=n.data.items.some((function(e){return"memberMapDiy"==e.type}));c&&setTimeout((function(){try{var t,n,i=e.createSelectorQuery().in(a);i.select(".container-header").boundingClientRect((function(e){t=(null===e||void 0===e?void 0:e.height)||0})).select(".container-footer").boundingClientRect((function(e){n=(null===e||void 0===e?void 0:e.height)||0})).exec((function(){a.spaceHeight=Number(Number(t)+Number(n))}))}catch(r){a.spaceHeight=0}}),200)}}else t&&t(),e.showToast({title:n.msg,icon:"none"})})).catch((function(e){t&&t(),console.error("获取自定义数据 ",e)}))},getImagePath:function(e){return e.indexOf("http")>-1?e:this.diyData.domain+e},setShareData:function(e){this.shareData=e}}};t.default=l}).call(this,a("df3c")["default"])},e164:function(e,t,a){"use strict";var n=a("41e6"),i=a.n(n);i.a},f224:function(e,t,a){"use strict";(function(e,t){var n=a("47a9");a("aa6c");n(a("3240"));var i=n(a("4433"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])}},[["f224","common/runtime","common/vendor"]]]);