(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/WaterfallsFlow/WaterfallsFlow"],{"240b":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s={components:{WaterfallsFlowItem:function(){e.e("components/WaterfallsFlow/WaterfallsFlowItem").then(function(){return resolve(e("10f0"))}.bind(null,e)).catch(e.oe)}},props:{wfList:{type:Array,require:!0},updateNum:{type:Number,default:10},type:{type:Number,default:0},isStore:{type:[String,Number],default:"1"},recommend:{type:Boolean,default:!1},showCart:{type:Boolean,default:!0},isMerchant:{type:Boolean,default:!1}},data:function(){return{allList:[],leftList:[],rightList:[],mark:0,boxHeight:[]}},watch:{wfList:{handler:function(t,i){var e=this;(!this.wfList.length||this.wfList.length===this.updateNum&&this.wfList.length<=this.allList.length)&&(this.allList=[],this.leftList=[],this.rightList=[],this.boxHeight=[],this.mark=0),this.wfList.length&&(this.allList=this.wfList,this.leftList=[],this.rightList=[],this.boxHeight=[],this.allList.forEach((function(t,i){(e.allList.length<3||e.allList.length<=7&&e.allList.length-i>1||e.allList.length>7&&e.allList.length-i>2)&&(i%2?e.rightList.push(t):e.leftList.push(t))})),this.allList.length<3?this.mark=this.allList.length+1:this.allList.length<=7?this.mark=this.allList.length-1:this.mark=this.allList.length-2,this.mark<this.allList.length&&this.waterFall())},immediate:!0,deep:!0},mounted:function(){},mark:function(){var t=this.allList.length;this.mark<t&&0!==this.mark&&this.boxHeight.length&&this.waterFall()}},methods:{waterFall:function(){var t=this.mark;if(0==t)this.leftList.push(this.allList[t]),this.getViewHeight(0);else if(1==t)this.rightList.push(this.allList[t]),this.getViewHeight(1);else{if(this.boxHeight.length){var i=this.boxHeight[0]>this.boxHeight[1]?1:0;i?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length<this.leftList.length?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t]);this.getViewHeight()}},getViewHeight:function(){var i=this;this.$nextTick((function(){setTimeout((function(){t.createSelectorQuery().in(i).select("#right").boundingClientRect((function(e){e&&(i.boxHeight[1]=e.height),t.createSelectorQuery().in(i).select("#left").boundingClientRect((function(t){t&&(i.boxHeight[0]=t.height),i.mark=i.mark+1})).exec()})).exec()}),100)}))},itemTap:function(t){this.$emit("itemTap",t)},goShop:function(t){this.$emit("goShop",t)}}};i.default=s}).call(this,e("df3c")["default"])},"33ab":function(t,i,e){"use strict";e.r(i);var s=e("90e1"),l=e("b6aa");for(var h in l)["default"].indexOf(h)<0&&function(t){e.d(i,t,(function(){return l[t]}))}(h);e("cd19");var n=e("828b"),a=Object(n["a"])(l["default"],s["b"],s["c"],!1,null,"b458908a",null,!1,s["a"],void 0);i["default"]=a.exports},"90e1":function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return l})),e.d(i,"a",(function(){}));var s=function(){var t=this.$createElement,i=(this._self._c,this.leftList.length),e=this.rightList.length;this.$mp.data=Object.assign({},{$root:{g0:i,g1:e}})},l=[]},aadf:function(t,i,e){},b6aa:function(t,i,e){"use strict";e.r(i);var s=e("240b"),l=e.n(s);for(var h in s)["default"].indexOf(h)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(h);i["default"]=l.a},cd19:function(t,i,e){"use strict";var s=e("aadf"),l=e.n(s);l.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/WaterfallsFlow/WaterfallsFlow-create-component',
    {
        'components/WaterfallsFlow/WaterfallsFlow-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("33ab"))
        })
    },
    [['components/WaterfallsFlow/WaterfallsFlow-create-component']]
]);
