<view class=“close” data-id="{{item.item.id}}" data-deviation="{{item.id}}" bindtap=“deleteImg”></view> 的 deleteImg事件需要获取deviationlist 的item.id,请问怎么操作
<view class=“deviation-box” wx:for="{{deviationlist}}" wx:key="{{item.id}}">
<view class=“deviation_title”>
<span class=“title-left”>{{item.id}}{{item.scoreItemNo}} {{item.scoreItemName}}</span>
<span class=“title-right” id="{{item.id}}" bindtap=“deleteDeviation”></span>
<view class=“page-section”>
<view class=“page-section-title”>偏差描述</view>
<view class=“textarea-wrp”>
<textarea value="{{item.describe}}" data-id="{{item.id}}" bindblur=“bindTextAreaBlur” auto-height bindinput=“saveDescribe” />
</view>
</view>
</view>
<view class=“img_div”>
<view class=“img_list”>
<view class=“camera_box”>
<button class=“camera” data-id="{{item.id}}" bindtap=“choose”>Choose</button>
</view>
<view data-id="{{item.id}}" wx:for="{{item.attachList}}" wx:key="{{item.index}}" class=“option_box”>
<image src="/accessory/download?id={{item.id}}" data-src="/accessory/download?id={{item.id}}" bindtap=‘previewImage’></image>
<view class=“close” data-id="{{item.item.id}}" data-deviation="{{item.id}}" bindtap=“deleteImg”></view>
</view>
</view>
</view>
</view>