代码: 遍历 modelList 数组套数组
<view class=‘modelitem‘ wx:for="{{modelList}}" data-order=‘{{item.name}}‘ wx:key> <view class=‘modelitemTitle‘ bindtap=‘modelitemTitle‘ data-index="{{index}}">{{item.name}}</view> <block wx:if="{{item.shows}}"> <view class=‘modelitem_item‘ bindtap=‘modelitem_item‘ data-name=‘{{itemTwo.name}}‘ data-model=‘{{itemTwo.id}}‘ wx:for="{{item.shopTruckModelEntityList}}" wx:key wx:for-item="itemTwo"> {{itemTwo.name}} </view> </block> </view>