Commit 2ea9721a by hxx

轮播滑动 bug 修复

parent bd5ce047
...@@ -149,16 +149,19 @@ ...@@ -149,16 +149,19 @@
<view class="goods-heap-Item" wx:if="{{datas.componentData.style==='heap'}}"> <view class="goods-heap-Item" wx:if="{{datas.componentData.style==='heap'}}">
<heap-item datas="{{datas}}"></heap-item> <heap-item datas="{{datas}}"></heap-item>
</view> </view>
<!-- 轮播滑动 -->
<view wx:if="{{datas.componentData.style === 'swipe'}}"> <view wx:if="{{datas.componentData.style === 'swipe'}}">
<swiper bindchange="handleSwipeChange"> <swiper bindchange="handleSwipeChange">
<block wx:for="{{swipeInfo}}"> <block wx:for="{{swipeInfo}}">
<swiper-item style="display: grid;gap:{{datas.componentData.proGap*2}}rpx;grid-template-columns:repeat({{datas.componentData.columnNum}}, 1fr)"> <swiper-item>
<view wx:for="{{item}}" wx:for-index="indey"> <view style="display: grid;gap:{{datas.componentData.proGap*2}}rpx;grid-template-columns:repeat({{datas.componentData.columnNum}}, 1fr)">
<goods-item <view wx:for="{{item}}" wx:for-index="indey">
datas="{{datas}}" <goods-item
items="{{datas.componentData.goodsList[index * datas.componentData.columnNum + indey]}}" datas="{{datas}}"
indexs="{{index}}" items="{{datas.componentData.goodsList[index * datas.componentData.columnNum + indey]}}"
></goods-item> indexs="{{index}}"
></goods-item>
</view>
</view> </view>
</swiper-item> </swiper-item>
</block> </block>
......
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