(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesM/pages/goods_list"],{"0c2b":function(t,e,n){"use strict";n.r(e);var o=n("62ed"),i=n("ebb1");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("934a");var r,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"6b786dea",null,!1,o["a"],r);e["default"]=c.exports},"1b57":function(t,e,n){},"62ed":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},"74c8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("a34a"));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n,o,i,a,r){try{var s=t[a](r),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(o,i)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function s(t){a(r,o,i,s,c,"next",t)}function c(t){a(r,o,i,s,c,"throw",t)}s(void 0)}))}}var s=function(){n.e("pagesM/comps/dt_goods_list").then(function(){return resolve(n("dcae"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("pagesM/comps/dt_empty").then(function(){return resolve(n("fe70"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("pagesM/comps/dt_no_more").then(function(){return resolve(n("a46f"))}.bind(null,n)).catch(n.oe)},d=function(){n.e("pagesM/comps/dt_custom_bar").then(function(){return resolve(n("e286"))}.bind(null,n)).catch(n.oe)},f=function(){n.e("pagesM/comps/dt_goods_list_hot").then(function(){return resolve(n("78b4"))}.bind(null,n)).catch(n.oe)},h={components:{DtGoodsList:s,DtEmpty:c,DtNoMore:u,DtCustomBar:d,DtGoodsListHot:f},data:function(){return{path:"",theme:1,hideTop:!1,memberId:"",productCategoryId:"",paramsList:[],dataList:[],curActive:0,typeList:{0:null,1:{k:"sales",t:3,v:1},2:{k:"price",t:3,v:1}},dt_custom_bar:"#000000",dt_custom_bgcolor:"transparent",winHeight:""}},onReady:function(){this.getElementHeight(".swiper-wrapper")},computed:{swiperHeight:function(){return"height:"+this.winHeight+"px;"}},methods:{onReachLower:function(t){this.onReachBottomPage()},imgload:function(){this.getElementHeight(".swiper-wrapper")},getElementHeight:function(e){var n=this,o=0;t.getSystemInfo({success:function(t){o=t.windowHeight}}),setTimeout((function(){var i=t.createSelectorQuery().in(n);i.selectAll(e).boundingClientRect(),i.exec((function(t){t?n.winHeight=o-t[0][0].top:n.getElementHeight()}))}),20)},tapActive:function(t){if(this.curActive=t,1==t||2==t){var e=this.typeList;1==e[t].v?e[t].v=-1:e[t].v=1,this.typeList=e}this.isNoMore=!1,this.pageIndex=0,this.dataList.length=0,this.queryDataList()},getParams:function(){var t=this.typeList[this.curActive],e=this.paramsList.slice(0);return console.log(96,e),this.productCategoryId&&e.unshift({k:"productCategoryId",t:1,v:this.productCategoryId}),console.log(104,e,t),t&&e.unshift(t),console.log(108,e),e},queryDataList:function(){var t=this;return r(o.default.mark((function e(){var n,i,a;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.getParams(),console.log(112,n),e.next=4,t.$api.searchProduct({_isShowLoading:!0,pageNo:t.pageIndex,pageSize:t.pageSize,memberId:t.memberId,params:n});case 4:i=e.sent,a=t.getDataList(i),t.dataList=t.dataList.concat(a);case 7:case"end":return e.stop()}}),e)})))()},onLoadPage:function(e){wx.hideShareMenu(),console.log(e),this.isLoad&&(this.memberId=this.$auth.getMemberId(),this.paramsList=e.params?JSON.parse(e.params):[],this.productCategoryId=e.id?e.id:"",e.name&&t.setNavigationBarTitle({title:e.name}),e.hideTop?(this.hideTop=e.hideTop,this.dt_custom_bar="#ffffff"):this.dt_custom_bgcolor="#ffffff",e.theme&&(this.theme=e.theme),e.path&&(this.path=e.path)),this.queryDataList()}},onReachBottom:function(){this.onReachBottomPage()}};e.default=h}).call(this,n("543d")["default"])},"934a":function(t,e,n){"use strict";var o=n("1b57"),i=n.n(o);i.a},b217:function(t,e,n){"use strict";(function(t){n("4518");o(n("66fd"));var e=o(n("0c2b"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},ebb1:function(t,e,n){"use strict";n.r(e);var o=n("74c8"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}},[["b217","common/runtime","common/vendor"]]]);