(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/diy/index"],{"0442":function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("aa6c");n(a("3240"));var i=n(a("348e"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},"2ca1":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=(t._self._c,t.loadEnd&&t.diyData&&t.diyData.page&&t.diyData.page.style&&t.diyData.page.style.backgroundImage?t.getImagePath(t.diyData.page.style.backgroundImage):null);t.$mp.data=Object.assign({},{$root:{m0:a}})},i=[]},"348e":function(t,e,a){"use strict";a.r(e);var n=a("2ca1"),i=a("84ef");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("7dcf");var o=a("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"3cab":function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("7ca3")),r=a("8f59");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}var c={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,pageId:null,diyData:null,shareData:{},spaceHeight:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){(0,i.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},(0,r.mapState)({shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(e){var a=this;this.pageId=e.page_id,t.showLoading({title:"加载中"}),this.getDiyData((function(){t.hideLoading(),a.loadEnd=!0}))},onShow:function(){this.loadEnd&&this.getDiyData()},onPullDownRefresh:function(){this.getDiyData((function(){t.stopPullDownRefresh()}))},onShareAppMessage:function(t){return"button"==t.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(e){var a=this;this.$util.request("main.diyData",{page_id:this.pageId}).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;t.setNavigationBarColor({frontColor:"white"===o.style.titleTextColor?"#ffffff":"#000000",backgroundColor:o.style.titleBackgroundColor||""}),t.setNavigationBarTitle({title:o.params.title||""})}if(a.loadEnd&&a.$refs.diyMode.updateData(),e&&e(),null!==(i=n.data)&&void 0!==i&&null!==(r=i.items)&&void 0!==r&&r.length){var c=n.data.items.some((function(t){return"memberMapDiy"==t.type}));c&&setTimeout((function(){try{var e,n,i=t.createSelectorQuery().in(a);i.select(".container-header").boundingClientRect((function(t){e=(null===t||void 0===t?void 0:t.height)||0})).select(".container-footer").boundingClientRect((function(t){n=(null===t||void 0===t?void 0:t.height)||0})).exec((function(){a.spaceHeight=Number(Number(e)+Number(n))}))}catch(r){a.spaceHeight=0}}),200)}}else e&&e(),t.showToast({title:n.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取自定义数据 ",t)}))},getImagePath:function(t){return t.indexOf("http")>-1?t:this.diyData.domain+t},setShareData:function(t){this.shareData=t}}};e.default=c}).call(this,a("df3c")["default"])},"7dcf":function(t,e,a){"use strict";var n=a("f6ba"),i=a.n(n);i.a},"84ef":function(t,e,a){"use strict";a.r(e);var n=a("3cab"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},f6ba:function(t,e,a){}},[["0442","common/runtime","common/vendor"]]]);