<view wx:for="{{productList}}" wx:key="{{xxx}}"> <view> {{index+1}}、{{item.name}} </view> <!--二次嵌套循环--> <view wx:for="{{item.details}}" wx:for-item="detail" wx:key="XXXX"> ----{{detail.name}} </view> </view>