require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goodsDiscover/index"],{"1d8f":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.contentList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},"6b47":function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("89cc")),a=e("eb8a"),c=e("0f73"),s={data:function(){return{contentList:[],loading:!1,params:{page:1,limit:20,product_id:""},storeInfo:{},count:0}},components:{waterfallsFlow:function(){e.e("components/discoverWaterfall/WaterfallsFlow").then(function(){return resolve(e("831d"))}.bind(null,e)).catch(e.oe)},emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("398a"))}.bind(null,e)).catch(e.oe)}},mixins:[o.default],provide:function(){return{flowLike:this.flowLike}},onPageScroll:function(n){t.$emit("scroll")},onLoad:function(t){this.params.product_id=t.id||"",this.getProductInfo(t.id),this.getList()},methods:{getProductInfo:function(t){var n=this;(0,c.getProductDetail)(t,{promotions_type:0}).then((function(t){n.storeInfo=t.data.storeInfo}))},getList:function(){var t=this;this.loading||(this.loading=!0,(0,a.communityElegantListApi)(this.params).then((function(n){var e=n.data.list;t.count=n.data.count;var i=e.length<t.params.limit;t.contentList=t.contentList.concat(e),t.params.page++,t.loading=i})))},flowLike:function(t){var n=this.contentList.findIndex((function(n){return t.id==n.id}));this.contentList[n].is_like=t.status,1==t.status?this.contentList[n].like_num++:this.contentList[n].like_num--}},onReachBottom:function(){this.getList()}};n.default=s}).call(this,e("df3c")["default"])},9713:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("f076");i(e("3240"));var o=i(e("eeed"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},af14:function(t,n,e){"use strict";e.r(n);var i=e("6b47"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},cae1:function(t,n,e){},ed26:function(t,n,e){"use strict";var i=e("cae1"),o=e.n(i);o.a},eeed:function(t,n,e){"use strict";e.r(n);var i=e("1d8f"),o=e("af14");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("ed26");var c=e("828b"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports}},[["9713","common/runtime","common/vendor"]]]);