require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_group/index"],{"10fd":function(t,e,n){"use strict";n.r(e);var o=n("1c6a"),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},"1c6a":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("9592"),a=n("41da"),r=n("8f59"),c=o(n("7951")),u=o(n("486b")),l=(getApp(),{mixins:[c.default,u.default],computed:(0,r.mapGetters)(["isLogin","uid","globalData"]),components:{navBar:function(){n.e("components/navBar").then(function(){return resolve(n("820c"))}.bind(null,n)).catch(n.oe)},priceStyle:function(){n.e("components/priceStyle").then(function(){return resolve(n("e5a3"))}.bind(null,n)).catch(n.oe)},easyLoadimage:function(){Promise.all([n.e("common/vendor"),n.e("components/base/easy-loadimage")]).then(function(){return resolve(n("0dff"))}.bind(null,n)).catch(n.oe)},emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("a342"))}.bind(null,n)).catch(n.oe)}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),theme:this.$Cache.get("theme"),backgroundColor:"transparent",isBackgroundColor:!1,listZindex:99,where:{page:1,limit:10,merId:""},loadend:!1,loading:!1,loadTitle:"加载更多",groupGood:[],merId:0,title:"拼团列表"}},onLoad:function(t){(0,i.getUserSpread)(t),t.merId&&(this.merId=Number(t.merId),this.where.merId=this.merId),this.getGroupList()},onShow:function(){(0,i.silenceBindingSpread)(this.isLogin,this.globalData.spread)},onPageScroll:function(e){e.scrollTop>200?this.pageScrollStatus=!0:e.scrollTop<200&&(this.pageScrollStatus=!1),t.$emit("scroll")},methods:{touchStart:function(){this.$refs.navBarRef.currentPage=!1},getGroupList:function(){var t=this;this.loadend||this.loading||(this.loading=!0,0!=this.merId?(0,a.groupbuyMerchantListApi)(this.where).then((function(e){var n=e.data.list,o=t.where.limit;t.where.page++,t.loadend=o>n.length,t.groupGood=t.groupGood.concat(n),t.loading=!1,t.loadTitle=t.loadend?"没有更多内容啦~":"加载更多"})).catch((function(e){return t.loading=!1,t.loadTitle="加载更多",t.$util.Tips({title:e})})):(0,a.groupBuySkuListApi)(this.where).then((function(e){var n=e.data,o=t.where.limit;t.where.page++,t.loadend=o>n.length,t.groupGood=t.groupGood.concat(n),t.loading=!1,t.loadTitle=t.loadend?"没有更多内容啦~":"加载更多"})).catch((function(e){return t.loading=!1,t.loadTitle="加载更多",t.$util.Tips({title:e})})))},toGroupDeatil:function(e){t.navigateTo({url:"/pages/goods/goods_details/index?id=".concat(e.productId,"&mt=2&gd=").concat(e.groupActivityId)})},onReachBottom:function(){this.getGroupList()}}});e.default=l}).call(this,n("df3c")["default"])},"26b1":function(t,e,n){"use strict";var o=n("359c"),i=n.n(o);i.a},"30e5":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("1d3c");o(n("3240"));var i=o(n("f709"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"359c":function(t,e,n){},f312: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.groupGood.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},f709:function(t,e,n){"use strict";n.r(e);var o=n("f312"),i=n("10fd");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("26b1");var r=n("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"0f5f905f",null,!1,o["a"],void 0);e["default"]=c.exports}},[["30e5","common/runtime","common/vendor"]]]);