index.wxml 815 B

123456789101112131415
  1. <view class="img-group">
  2. <view class="img-item" wx:if="{{imgGroup.length}}" wx:for="{{imgGroup}}" wx:key="id">
  3. <view bindtap="remove" class="close" data-idx="{{index}}">
  4. <image class='closeImg' src="../../images/img-close.png"></image>
  5. </view>
  6. <image class="img" bindtap="bigImg" data-list="{{imgGroup}}" data-src="{{item}}" mode="aspectFill" src="{{item}}"></image>
  7. <view class="progress {{progressList[index]===100?'hide-progress':''}}">
  8. <text class="span" style="width: {{progressList[index]}}%;"></text>
  9. </view>
  10. </view>
  11. <view bindtap="addImg" class="img-item img-add" wx:if="{{imgGroup.length<imgMax}}">
  12. <image class="cameraImg" src="../../images/icon-camera.png"></image>
  13. <text>{{imgGroup.length?imgGroup.length+'/'+imgMax:'上传图片'}}</text>
  14. </view>
  15. </view>