require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_combination/index"],{15638:function(t,n,i){"use strict";i.r(n);var e=i("8856"),a=i("ff6f");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("d3ed");var c=i("828b"),r=Object(c["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=r.exports},"33ef":function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("f076");e(i("3240"));var a=e(i("15638"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},8856:function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}));var e={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"94dd"))}},a=function(){var t=this.$createElement,n=(this._self._c,this.combinationList.length),i=this.combinationList.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},o=[]},cf2d:function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i("b0fe"),a=i("7391"),o=i("4d38"),c=(getApp(),{data:function(){return{pinkPeople:[],pinkCount:0,bannerList:[],circular:!0,autoplay:!0,interval:3e3,duration:500,combinationList:[],limit:10,page:1,loading:!1,loadend:!1,isBanner:!1,pageScrollStatus:!1}},components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)},NavBar:function(){i.e("components/NavBar").then(function(){return resolve(i("a7d8"))}.bind(null,i)).catch(i.oe)}},computed:{headerBg:function(){return"url("+o.HTTP_REQUEST_URL+"/statics/images/product/combination_header.png)"}},onPageScroll:function(n){n.scrollTop>130?this.pageScrollStatus=!0:n.scrollTop<130&&(this.pageScrollStatus=!1),t.$emit("scroll")},onLoad:function(){t.setNavigationBarTitle({title:"拼团列表"}),this.getCombinationList(),this.getBannerList(),this.getPink()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{getPink:function(){var t=this;(0,e.getPink)({type:2}).then((function(n){t.pinkPeople=n.data.avatars,t.pinkCount=n.data.pink_count}))},getBannerList:function(){var t=this;(0,e.getCombinationBannerList)().then((function(n){t.bannerList=n.data,t.isBanner=!0}))},goDetail:function(t){var n=t.link;this.$util.JumpPath(n)},openSubcribe:function(n){t.showLoading({title:"正在加载"}),(0,a.openPinkSubscribe)().then((function(i){t.hideLoading(),t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(n.id,"&type=3")})})).catch((function(){t.hideLoading()}))},getCombinationList:function(){var t=this;if(!t.loadend&&!t.loading){var n={page:t.page,limit:t.limit};this.loading=!0,(0,e.getCombinationList)(n).then((function(n){var i=t.combinationList,e=t.limit;t.page++,t.loadend=e>n.data.length,t.combinationList=i.concat(n.data),t.page=t.data.page,t.loading=!1})).catch((function(){t.loading=!1}))}},backPage:function(){t.navigateBack()}},onReachBottom:function(){this.getCombinationList()},onShareAppMessage:function(){return{title:"拼团列表",path:"/pages/activity/goods_combination/index?spid="+this.$store.state.app.uid,imageUrl:o.HTTP_REQUEST_URL+"/statics/images/product/combination_header.png"}},onShareTimeline:function(){return{title:"拼团列表",path:"/pages/activity/goods_combination/index?spid="+ +this.$store.state.app.uid,imageUrl:o.HTTP_REQUEST_URL+"/statics/images/product/combination_header.png"}}});n.default=c}).call(this,i("df3c")["default"])},d3ed:function(t,n,i){"use strict";var e=i("f655"),a=i.n(e);a.a},f655:function(t,n,i){},ff6f:function(t,n,i){"use strict";i.r(n);var e=i("cf2d"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a}},[["33ef","common/runtime","common/vendor"]]]);