You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
3.7 KiB
10 lines
3.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/WaterfallsFlow/WaterfallsFlow"],{"0fbf":function(t,i,e){},4975:function(t,i,e){"use strict";e.r(i);var s=e("55fd"),l=e("756b");for(var h in l)["default"].indexOf(h)<0&&function(t){e.d(i,t,(function(){return l[t]}))}(h);e("b8dc");var n=e("828b"),a=Object(n["a"])(l["default"],s["b"],s["c"],!1,null,"19682972",null,!1,s["a"],void 0);i["default"]=a.exports},"55fd":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=[]},"756b":function(t,i,e){"use strict";e.r(i);var s=e("a6e5"),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},a6e5: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("7705"))}.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}},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"])},b8dc:function(t,i,e){"use strict";var s=e("0fbf"),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__("4975"))
|
|
})
|
|
},
|
|
[['components/WaterfallsFlow/WaterfallsFlow-create-component']]
|
|
]);
|
|
|