<!--component/uploadImg/uploadImg.wxml-->
<view class="page-upload-img">
  <view class="flex-wrp" style="padding-bottom:{{pics.length >= 4 ? '100px;' : '0px'}};">
    <view class="flex-item bc_green image-preview"  wx:for="{{pics}}" wx:key="{{index}}">
      <icon size="16" type="clear" catchtap="deleteImage" data-index="{{index}}" />
      <image class="item-img" src="{{item}}"></image>
    </view>
    <view class="flex-item bc_green">
      <view class="upload-wrap" bindtap="uploadImg" wx:if="{{pics.length < 5}}">
        <view class="upload-text">+图片</view>
      </view>
    </view>
  </view>
</view>


