Browse Source

添加data-index

master
liujiangyong 2 years ago
parent
commit
d1c8a76621
  1. 2
      weapp/package/polling/inspectionRecordDetail/inspectionRecordDetail.wxml

2
weapp/package/polling/inspectionRecordDetail/inspectionRecordDetail.wxml

@ -51,7 +51,7 @@
<view class='title'>巡检图片:</view> <view class='title'>巡检图片:</view>
<view class="img-v weui-uploader__bd" style="overflow:hidden;"> <view class="img-v weui-uploader__bd" style="overflow:hidden;">
<view class='pic' wx:for="{{value.imgs}}" wx:for-item="item" wx:key="*this"> <view class='pic' wx:for="{{value.imgs}}" wx:for-item="item" wx:key="*this">
<image class='weui-uploader__img showImg' src="{{imgUrl + item}}" data-img="{{imgUrl + item}}" data-key="{{key}}" mode="aspectFill" bindtap="previewImg"></image> <image class='weui-uploader__img showImg' src="{{imgUrl + item}}" data-img="{{imgUrl + item}}" data-index="{{index}}" data-key="{{key}}" mode="aspectFill" bindtap="previewImg"></image>
</view> </view>
</view> </view>
</t-collapse-panel> </t-collapse-panel>

Loading…
Cancel
Save