<view class="platform-filter">
<block wx:for="{{productSummary.platformFilter.range}}" wx:key="id" wx:for-item="pl">
<view class="platform {{productSummary.platformFilter.selected === index ? 'active' : ''}}" data-index="{{index}}" bindtap="onPlatformChange">{{pl.label}}</view>
</block>
</view>
渲染wxml页面如下图,为什么两个元素的index都为0呢?
看看后端返回数据