require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/presell/index"],{"1ac7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"94dd"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.presellList.length),i=n?t.__map(t.presellList,(function(e,n){var i=t.__get_orig(e),a=e.store_label.length;return{$orig:i,g1:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},o=[]},3633:function(t,e,n){},3735:function(t,e,n){"use strict";var i=n("bf9f"),a=n.n(i);a.a},5993:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("b0fe"),a=n("4d38"),o=t.getWindowInfo().statusBarHeight,l={name:"presell",components:{emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("398a"))}.bind(null,n)).catch(n.oe)},NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("a7d8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{sysHeight:o,presellList:[],timeList:[{name:"未开始",key:0},{name:"正在进行",key:1},{name:"已结束",key:2}],active:1,page:1,limit:8,loading:!1,loadend:!1,loadTitle:"加载更多",picUrl:"",imgHost:a.HTTP_REQUEST_URL,pageScrollStatus:!1}},computed:{headerBg:function(){return"url("+this.imgHost+"/statics/images/product/product_presale_header.png)"},navBg:function(){return"url("+this.imgHost+"/statics/images/product/presell-bg-"+this.active+".png)"}},onPageScroll:function(e){e.scrollTop>130?this.pageScrollStatus=!0:e.scrollTop<130&&(this.pageScrollStatus=!1),t.$emit("scroll")},onLoad:function(){this.getPresellProductList()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{getPresellProductList:function(){var t=this,e={page:t.page,limit:t.limit,time_type:t.active+1};t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,i.getAdvancellList)(e).then((function(e){var n=e.data.list,i=n.length<t.limit;t.presellList=t.$util.SplitArray(n,t.presellList),t.$set(t,"presellList",t.presellList),t.loadend=i,t.loadTitle=i?"没有更多内容啦~":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))},settimeList:function(t){this.active=t,this.loadend=!1,this.page=1,this.presellList=[],this.getPresellProductList()},goDetails:function(e){t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(e.id,"&type=6")})},goBack:function(){t.navigateBack()}},onReachBottom:function(){this.getPresellProductList()},onShareAppMessage:function(){return{title:"尖货预售",path:"/pages/activity/presell/index?spid="+this.$store.state.app.uid,imageUrl:a.HTTP_REQUEST_URL+"/statics/images/product/product_presale_header.png"}},onShareTimeline:function(){return{title:"尖货预售",path:"/pages/activity/presell/index?spid="+ +this.$store.state.app.uid,imageUrl:a.HTTP_REQUEST_URL+"/statics/images/product/product_presale_header.png"}}};e.default=l}).call(this,n("df3c")["default"])},"71f7":function(t,e,n){"use strict";n.r(e);var i=n("1ac7"),a=n("d528");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("3735"),n("f221");var l=n("828b"),r=Object(l["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},bb30:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("f076");i(n("3240"));var a=i(n("71f7"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bf9f:function(t,e,n){},d528:function(t,e,n){"use strict";n.r(e);var i=n("5993"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f221:function(t,e,n){"use strict";var i=n("3633"),a=n.n(i);a.a}},[["bb30","common/runtime","common/vendor"]]]);