小程序依据条件进行判断
<view class=‘item’ wx:for="{{itemList}}" wx:key=“content” wx:for-index=“key”>
<view class='item-list {{ item.id==0?“item-list1”:""
||item.id==1?“item-list2”:""
||item.id==2?“item-list3”:""}}’
>
</view>
</view>