

<view class="img-list" hidden="{{!isShow}}">
  <block wx:for="{{imgUrls}}" wx:key="*this">
    <view class='img-item' style="width: calc({{1 / countInRow * 100}}% - 20px); height: {{imageHeight}}px;">
      <image data-index="{{index}}" class="img-item-pic" bindtap="doImage" src="{{item}}" binderror="doPhotoErr" mode="aspectFill"/>
      <image wx:if='{{isShowDeleteList[index] && !isShowHintList[index]}}' class="img-item-close" bindtap="doDeleteImage" src="/assets/img/icon/close.png" mode="aspectFill" data-index='{{index}}' />
      <view wx:if='{{isShowHintList[index]}}' class='hint-view'>
        <text class='hint-text'>上传中...</text>
        <progress percent="{{progress}}"/>
      </view>
    </view>
  </block>

  <block wx:if='{{imgUrls.length < maxNumber && !isOnlyShow}}'>
    <view class='img-item default-item' style="width: calc({{1 / countInRow * 100}}% - 20px); height: {{imageHeight}}px;" bindtap="doUploadImg">
      <image src="{{addImgUrl}}" mode="aspectFill" />
      <view wx:if='{{isShowNumberHint}}' class='default-hint-view'>可上传{{maxNumber}}张图</view>
    </view>
  </block>
</view>