js:
this.data.ne.forEach((item) => {
console.log("item",item)
if(item.name == dishId){
item.status = !item.status || false
}
})
wxml:
<view class="content flex-item">
<block wx:for="{{dishesList}}" wx:key="kong">
<view class="dish flex-wrap flex-direction-row" catchtap="checkboxChange" data-dish="{{item.name}}">
<image class="gallery-img tui-fl" src="{{item.imgFileID}}"></image>
<view class="flex-item">
<text class="title">{{item.name}}</text>
</view>
<view class="add-btn">
<view class="add-btn"><icon type="{{item.status ? 'success' : 'circle'}}" color="orange" size="30"></icon></view>
</view>
</view>
</block>
</view>
</view>

