require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/small_page/index"],{"029e":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7eb4")),a=o(n("ee10")),r=n("3c22"),c=n("8f59"),s=getApp(),d={data:function(){return{theme:s.globalData.theme,isSmallPage:!0,styleConfig:[],bgPic:"",bgTabVal:"",isFixed:!0,storeHeight:0,smallPage:!1,sortList:[],sortMarTop:0,showCateNav:!1,cateNavData:{},navIndex:0,pageStyle:null,cateNavActive:0,categoryId:0,diyId:0,isNoCommodity:!1,showHomeComb:!1,showHeaderSerch:!1,domOffsetTop:50,isScrolled:!1,merId:0,bgInfo:{colorPicker:"#f5f5f5",isBgColor:1},isLoading:!1,regionIds:"",componentData:{}}},components:{diyComponent:function(){Promise.all([n.e("common/vendor"),n.e("components/homeIndex/diyComponent")]).then(function(){return resolve(n("b0bc"))}.bind(null,n)).catch(n.oe)}},computed:(0,c.mapGetters)(["bottomNavigationIsCustom","merchantAPPInfo"]),watch:{regionIds:{handler:function(t,e){t&&t!==e&&this.getDiyData(this.diyId)},immediate:!0}},onShow:function(){this.initRegionIds(),this.$nextTick((function(){t.$emit("locationChanged")}))},onLoad:function(t){if(t.scene){var e=this.$util.getUrlParams(decodeURIComponent(t.scene));e.id&&(this.diyId=Number(e.id)),e.merId&&(this.merId=Number(e.merId))}t.id&&(this.diyId=Number(t.id)),t.merId&&(this.merId=Number(t.merId)),this.getDiyData(this.diyId)},onPageScroll:function(e){var n=this;t.$emit("scroll"),e.scrollTop>this.domOffsetTop&&(this.isScrolled=!0),e.scrollTop<this.domOffsetTop&&this.$nextTick((function(){n.isScrolled=!1}))},methods:{initRegionIds:function(){try{var e=t.getStorageSync("areas_info")||[];Array.isArray(e)&&e.length>0?this.regionIds=e.filter((function(t){return t.id})).map((function(t){return t.id})).join(","):this.regionIds=""}catch(n){this.regionIds=""}},getDiyData:function(e){var n=this;return(0,a.default)(i.default.mark((function o(){var a,c;return i.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return n.componentData=null,n.styleConfig=[],t.showLoading({title:"加载中..."}),o.prev=3,o.next=6,(0,r.getDiy)({id:e,circleIds:n.regionIds});case 6:a=o.sent,c=a.data,n.componentData=c,t.setNavigationBarTitle({title:c.title}),t.setNavigationBarColor({frontColor:c.titleColor,backgroundColor:c.titleBgColor.toString().toLowerCase()}),t.hideLoading(),n.pageStyle={"background-color":1===c.isBgColor?c.colorPicker:"","background-image":1===c.isBgPic?"url(".concat(c.bgPic,")"):"","background-repeat":1===c.bgTabVal?"repeat-y":"no-repeat","background-size":2===c.bgTabVal?"cover":"contain"},setTimeout((function(){n.isNodes++}),100),o.next=20;break;case 16:return o.prev=16,o.t0=o["catch"](3),t.hideLoading(),o.abrupt("return",n.$util.Tips({title:o.t0}));case 20:case"end":return o.stop()}}),o,null,[[3,16]])})))()}},onReachBottom:function(){this.$refs.diyComponentRef.getRecommend()}};e.default=d}).call(this,n("df3c")["default"])},"3afc":function(t,e,n){},"7e94":function(t,e,n){"use strict";var o=n("3afc"),i=n.n(o);i.a},"978d":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("1d3c");o(n("3240"));var i=o(n("d98d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a7c6:function(t,e,n){"use strict";n.r(e);var o=n("029e"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},bfaa:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.__get_style([this.pageStyle]));this.$mp.data=Object.assign({},{$root:{s0:e}})},i=[]},d98d:function(t,e,n){"use strict";n.r(e);var o=n("bfaa"),i=n("a7c6");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("7e94");var r=n("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"390706d2",null,!1,o["a"],void 0);e["default"]=c.exports}},[["978d","common/runtime","common/vendor"]]]);