(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesM/comps/dt_category_goods_list_new"],{2762:function(t,e,n){"use strict";n.r(e);var o=n("ddcd"),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},3798:function(t,e,n){"use strict";var o=n("575e"),i=n.n(o);i.a},"575e":function(t,e,n){},"5fe8":function(t,e,n){"use strict";n.r(e);var o=n("badf"),i=n("2762");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3798");var r,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"0e045447",null,!1,o["a"],r);e["default"]=c.exports},badf: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=[]},ddcd: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={components:{DtGoodsList:s,DtEmpty:c,DtNoMore:u},data:function(){return{white:"white",memberId:"",productCategoryId:"",paramsList:[],dataList:[],curActive:0,typeList:{0:null,1:{k:"sales",t:3,v:1},2:{k:"price",t:3,v:1}},scrollViewHeight:0,show:"block",isTapSelect:!1,rightHeight:0}},props:{menuList:{type:Array,default:[]},adsList:{type:Array,default:[]}},created:function(){this.memberId=this.$auth.getMemberId()},methods:{tapNav:function(e){var n=e.type;if([0,"0"].includes(n)&&e.content)t.navigateTo({url:"/pagesM/pages/common/ad_textView?content="+e.content});else if([1,"1"].includes(n)&&e.productId)t.navigateTo({url:"/pagesM/pages/goods_des?id="+e.productId});else if([2,"2"].include(n)&&e.url){var o=e.url;this.memberId&&(o+=this.memberId,console.log("banner 链接 = "+o),t.navigateTo({url:"/pagesM/pages/common/webview?url="+encodeURIComponent(o)}))}},getswipHeight:function(e){var n=t.getSystemInfoSync(),o=n.windowHeight,i=n.windowWidth,a=750/i,r=o*a-105,s=(t.upx2px(r),o*a);e.length>0?this.rightHeight=t.upx2px(s)-26:this.rightHeight=t.upx2px(s),this.scrollViewHeight=this.rightHeight+"px"},tapSelect:function(){this.isTapSelect=!this.isTapSelect},onLoadPage:function(){this.queryDataList()},jumpGoodsDes:function(e){console.log(e),t.navigateTo({url:"/pagesM/pages/goods_des?id="+e})},tapActive:function(t,e){console.log(e),this.curActive=t,this.productCategoryId=e.id,this.isNoMore=!1,this.pageIndex=0,this.dataList.length=0,this.queryDataList(),this.isTapSelect=!1},getParams:function(){var t=this.typeList[this.curActive],e=this.paramsList.slice(0);return console.log(96,e),this.productCategoryId&&e.unshift({k:"productCategory.id",t:1,v:this.productCategoryId}),console.log(104,e,t),t&&e.unshift(t),console.log(108,e),e},queryDataList:function(){var e=this;return r(o.default.mark((function n(){var i,a,r,s;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.getParams(),console.log(112,i),n.next=4,e.$api.searchProduct({_isShowLoading:!0,pageNo:e.pageIndex,pageSize:e.pageSize,memberId:e.memberId,params:i});case 4:a=n.sent,r=e.getDataList(a),e.dataList=e.dataList.concat(r),s=t.createSelectorQuery().in(e),s.select("#menuLists").boundingClientRect((function(t){console.log("打印高度",t);var n=e.rightHeight-t.height;e.scrollViewHeight=n+"px"})).exec(),0==e.emptyType?e.show="block":e.show="none";case 10:case"end":return n.stop()}}),n)})))()},onScrolltolower:function(){this.onReachBottomPage()}}};e.default=d}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pagesM/comps/dt_category_goods_list_new-create-component',
    {
        'pagesM/comps/dt_category_goods_list_new-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("5fe8"))
        })
    },
    [['pagesM/comps/dt_category_goods_list_new-create-component']]
]);
