Commit 0cc72546 by 李嘉林

横向标签加载修改

parent 751531f7
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<!-- <goods-list class="goodsListItem" :datas="item1"></goods-list> --> <!-- <goods-list class="goodsListItem" :datas="item1"></goods-list> -->
{{index}}------ {{index}}------
<goods-list :class="['goodsListItem','goodsListItemIndex'+index]" :datas="item1" :datasIndex="active" :goodsListIndex="index"></goods-list> <goods-list :class="['goodsListItemIndex'+index,'transverse-label-goodsListItem']" :datas="item1" :datasIndex="active" :goodsListIndex="index"></goods-list>
</div> </div>
<div v-else-if="item1.componentCode == 'area-navigation' && item1.componentInfo.visible == 1"> <div v-else-if="item1.componentCode == 'area-navigation' && item1.componentInfo.visible == 1">
...@@ -447,11 +447,11 @@ export default { ...@@ -447,11 +447,11 @@ export default {
item.getScroll() item.getScroll()
}) })
} }
if(this.$parent.$mp.page.selectAllComponents('.goodsListItem')){ if(this.$parent.$mp.page.selectAllComponents('.transverse-label-goodsListItem')){
// this.$parent.$mp.page.selectAllComponents('.goodsListItem').forEach(v=>{ // this.$parent.$mp.page.selectAllComponents('.transverse-label-goodsListItem').forEach(v=>{
// v.wheatherLazyloading == true // v.wheatherLazyloading == true
// }) // })
// console.log(this.$parent.$mp.page.selectAllComponents('.goodsListItem')[res.target.index].setPageDatas(res.target.index)); // console.log(this.$parent.$mp.page.selectAllComponents('.transverse-label-goodsListItem')[res.target.index].setPageDatas(res.target.index));
// console.log('setDatas'); // console.log('setDatas');
} }
this.active=res.target.index; this.active=res.target.index;
......
...@@ -698,8 +698,15 @@ export default { ...@@ -698,8 +698,15 @@ export default {
this.$mp.page.selectComponent(".getIndexHomePage").getScroll(el); this.$mp.page.selectComponent(".getIndexHomePage").getScroll(el);
} }
if(this.$mp.page && this.$mp.page.selectComponent(".goodsListItem")){ if(this.$mp.page && this.$mp.page.selectComponent(".goodsListItem")){
console.log(this.$mp.page.selectAllComponents(".transverse-label-goodsListItem"),'-this.$mp.page.selectComponent(".goodsListItem")')
this.$mp.page.selectComponent(".goodsListItem").getScroll(el); this.$mp.page.selectComponent(".goodsListItem").getScroll(el);
} }
if(this.$mp.page && this.$mp.page.selectAllComponents(".transverse-label-goodsListItem")){
this.$mp.page.selectAllComponents(".transverse-label-goodsListItem").forEach(item=>{
console.log(item,'-this.$mp.page.selectComponent(".goodsListItem")')
item.getScroll(el)
})
}
}, },
setFooterShow(el){ setFooterShow(el){
// return // return
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
class="goods-item {{'goodsItemIndex'+index}}" class="goods-item {{'goodsItemIndex'+index}}"
style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx" style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx"
> >
+{{testFlag}}+
*{{goodsListIndex}}*
<!-- <goods-item <!-- <goods-item
datas="{{datas}}" datas="{{datas}}"
items="{{goodsList[index]}}" items="{{goodsList[index]}}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment