<view class="dt-upload-wrap"><block wx:for="{{imgList}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><block><block wx:if="{{idx<max}}"><view class="upload-item"><image class="file-image" mode="aspectFit" src="{{item.path}}" data-event-opts="{{[['tap',[['previewImgs',['$0','$1'],[[['imgList','',idx]],'imgList']]]]]}}" catchtap="__e"></image><image class="remove-img" src="http://139.9.103.171:1888/img/image/del.png" mode="widthFix" data-event-opts="{{[['tap',[['remove',['$0',idx],[[['imgList','',idx]]]]]]]}}" catchtap="__e"></image><block wx:if="{{status[idx]}}"><view class="{{['loading-wrap',status]}}"><block wx:if="{{status[idx]=='loading'}}"><image class="loading" src="http://139.9.103.171:1888/img/image/loading.gif" mode="widthFix"></image></block><block wx:if="{{status[idx]=='success'}}"><text>上传成功</text></block><block wx:else><block wx:if="{{status[idx]=='failed'}}"><text>上传失败</text></block><block wx:else><block wx:if="{{status[idx]=='loading'}}"><text>上传中...</text></block></block></block></view></block></view></block></block></block><block wx:if="{{imgList.length<max}}"><view data-event-opts="{{[['tap',[['chooseImgs',['$event']]]]]}}" class="upload-item" bindtap="__e"><image class="camera" src="http://139.9.103.171:1888/img/image/camera.png" mode="widthFix"></image><view class="title">{{title}}</view></view></block></view>