(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/bargain/index/index"],{"34dd":function(e,t,n){"use strict";n.r(t);var o=n("5b90"),a=n("ea18");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("af5a");var r,u=n("f0c5"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"4d50139e",null,!1,o["a"],r);t["default"]=c.exports},"450f":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("2f62");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){n.e("components/page-component/app-swiper/app-swiper").then(function(){return resolve(n("336e"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("plugins/bargain/common-buttom").then(function(){return resolve(n("851f"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/basic-component/app-iphone-x/app-iphone-x").then(function(){return resolve(n("5e0d"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/basic-component/app-empty-bottom/app-empty-bottom").then(function(){return resolve(n("c2f3"))}.bind(null,n)).catch(n.oe)},p={name:"index",components:{appSwiper:u,commonButtom:c,appEmptyBottom:l,appIphoneX:s},computed:i(i({},(0,o.mapGetters)("mallConfig",{getVideo:"getVideo",getTheme:"getTheme"})),(0,o.mapState)({appImg:function(e){return e.mallConfig.__wxapp_img.mall},appSetting:function(e){return e.mallConfig.mall.setting}})),data:function(){return{list:null,args:!1,page:1,load:!1,banner_list:null,title:"砍价"}},onShareAppMessage:function(){return this.$shareAppMessage({title:this.title,path:"/plugins/bargain/index/index",params:{}})},onShareTimeline:function(){return this.$shareTimeline({title:this.title,query:{}})},onLoad:function(){var e=this;e.$request({url:e.$api.bargain.banner}).then((function(t){0===t.code&&(e.banner_list=t.data.list)})),wx.showShareMenu({menus:["shareAppMessage","shareTimeline"]})},onShow:function(){var e=this;e.$showLoading(),e.$request({url:e.$api.bargain.goods_list}).then((function(t){e.$hideLoading(),0===t.code&&(e.list=t.data.list),e.args=!1,e.page=1})).catch((function(t){e.$hideLoading()}))},onReachBottom:function(){var e=this;if(!e.args&&!e.load){e.load=!0;var t=e.page+1;e.$request({url:e.$api.bargain.goods_list,data:{page:t}}).then((function(n){if(0===n.code){var o=[t,0===n.data.list.length,e.list.concat(n.data.list)];e.page=o[0],e.args=o[1],e.list=o[2]}e.load=!1}))}},methods:{goods:function(t){e.navigateTo({url:"/plugins/bargain/goods/goods?goods_id="+t.goods_id})}}};t.default=p}).call(this,n("543d")["default"])},4576:function(e,t,n){},"5b90":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=function(){var e=this,t=e.$createElement;e._self._c},i=[]},af5a:function(e,t,n){"use strict";var o=n("4576"),a=n.n(o);a.a},ea18:function(e,t,n){"use strict";n.r(t);var o=n("450f"),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a},f145:function(e,t,n){"use strict";(function(e){n("b8bc");o(n("66fd"));var t=o(n("34dd"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["f145","common/runtime","common/vendor"]]]);