(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/bargain/index/index"],{"37a9":function(e,n,t){"use strict";t.r(n);var o=t("69b2"),a=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=a.a},"69b2":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("2f62");function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=function(){t.e("components/page-component/app-swiper/app-swiper").then(function(){return resolve(t("de77"))}.bind(null,t)).catch(t.oe)},u=function(){Promise.all([t.e("common/vendor"),t.e("plugins/bargain/common-buttom")]).then(function(){return resolve(t("5baa"))}.bind(null,t)).catch(t.oe)},s=function(){Promise.all([t.e("common/vendor"),t.e("components/basic-component/app-iphone-x/app-iphone-x")]).then(function(){return resolve(t("bd7b"))}.bind(null,t)).catch(t.oe)},l=function(){Promise.all([t.e("common/vendor"),t.e("components/basic-component/app-empty-bottom/app-empty-bottom")]).then(function(){return resolve(t("51dc"))}.bind(null,t)).catch(t.oe)},p={name:"index",components:{appSwiper:c,commonButtom:u,appEmptyBottom:l,appIphoneX:s},computed:r({},(0,o.mapGetters)("mallConfig",{getVideo:"getVideo"})),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:{}})},onLoad:function(e){var n=this;n.$request({url:n.$api.bargain.banner}).then((function(e){0===e.code&&(n.banner_list=e.data.list)}))},onShow:function(){var e=this;e.$showLoading(),e.$request({url:e.$api.bargain.goods_list}).then((function(n){e.$hideLoading(),0===n.code&&(e.list=n.data.list),e.args=!1,e.page=1})).catch((function(n){e.$hideLoading()}))},onReachBottom:function(){var e=this;if(!e.args&&!e.load){e.load=!0;var n=e.page+1;e.$request({url:e.$api.bargain.goods_list,data:{page:n}}).then((function(t){if(0===t.code){var o=[n,0===t.data.list.length,e.list.concat(t.data.list)];e.page=o[0],e.args=o[1],e.list=o[2]}e.load=!1}))}},methods:{goods:function(n){e.navigateTo({url:"/plugins/bargain/goods/goods?goods_id="+n.goods_id})}}};n.default=p}).call(this,t("543d")["default"])},a12c:function(e,n,t){"use strict";t.r(n);var o=t("e670"),a=t("37a9");for(var r in a)"default"!==r&&function(e){t.d(n,e,(function(){return a[e]}))}(r);t("e8d8");var i,c=t("f0c5"),u=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"4c5a25ee",null,!1,o["a"],i);n["default"]=u.exports},c5f3:function(e,n,t){},d222:function(e,n,t){"use strict";(function(e){t("8748");o(t("66fd"));var n=o(t("a12c"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},e670:function(e,n,t){"use strict";var o,a=function(){var e=this,n=e.$createElement;e._self._c},r=[];t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}))},e8d8:function(e,n,t){"use strict";var o=t("c5f3"),a=t.n(o);a.a}},[["d222","common/runtime","common/vendor"]]]);