循环出来的,前面18条数都能进这个showHide,最后倒数第二条,点5次能进3次,最后一条,怎么也不近。我这个可是循环出来的啊,为什么啊。
<view class=‘container-wrap’>
<view wx:for="{{content}}" wx:key=’{{item.id}}’>
<view class=‘item-li’ data-changeid="{{item.id}}" bindtap='showHide’>
<view class=‘item-title’ >
<text>{{item.name}}</text>
</view>
<view class=‘item-content’ wx:if="{{item.shows}}">
<block wx:for="{{item.shoppingInfoList}}" wx:key=’{{item.id}}’>
<view wx:if="{{item.click}}" class=‘clicked’ style=“background:#EE6A50” bindtap=‘shoppingItemUnClick’ data-id="{{item.id}}" data-type="{{item.type}}">
<text>{{item.name}}</text>
</view>
<view wx:else class=‘unclick’ bindtap=‘shoppingItemClick’ data-id="{{item.id}}" data-type="{{item.type}}">
<text>{{item.name}}</text>
</view>
</block>
</view>
</view>
</view>
</view>
</view>