纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
1.1 KiB

<view class="cu-form-group">
<view class="grid col-{{column}} grid-square flex-sub">
<view class="image-reader-item {{item.status == -1 ? 'solid-red' : ''}}" wx:for="{{fileList}}" wx:key="index" bindtap="viewImage" data-index="{{index}}">
<video wx:if="{{item.videoUrl}}" src="{{item.videoUrl}}" style="width:{{loadingWidth}}rpx;height:{{loadingWidth}}rpx" show-center-play-btn="{{false}}" controls="{{false}}"/>
<image wx:else src="{{item.cover || item.path || item.url}}" mode="aspectFill"></image>
<view class="cu-tag bg-red" style="padding:12rpx" catchtap="deleteFile" data-index="{{index}}" wx:if="{{!disabled}}">
<text class="cuIcon-close {{item.status == -1 ? 'text-red' : 'text-white'}}"></text>
</view>
<view class="md-load load-spinner text-white" wx:if="{{item.status == 1}}" />
</view>
<view class="solids" bindtap="chooseFile" wx:if="{{fileList.length < count && !disabled}}">
<text class="cuIcon-cameraadd"></text>
</view>
</view>
</view>
<wux-cropper wx:if="{{visible}}" bindclose="closeCallback" srcList="{{srcList}}" bindcroped="cropCallback"></wux-cropper>