You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.6 KiB
Plaintext

4 weeks ago
<view class="upload"><view style="width:0px;height:0px;overflow:hidden;"><canvas style="{{'width:'+(imageWidth+'px')+';'+('height:'+(imageHeight+'px')+';')}}" id="canone" canvas-id="canone"></canvas></view><view class="upload__preview"><block wx:for="{{lists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['upload__preview--item',(both)?'both-width':'',(!both)?'third-width':'']}}"><view class="{{['upload__preview--imagebox',(both)?'both':'',(!both)?'third':'']}}"><image class="upload__preview--image" src="{{item.fileUrl}}" data-event-opts="{{[['tap',[['previewImage',[index]]]]]}}" bindtap="__e"></image><block wx:if="{{!detail}}"><u-icon class="upload__preview--close" vue-id="{{'37befa50-1-'+index}}" name="close-circle-fill" color="#666666" size="20" data-event-opts="{{[['^click',[['deleteImageList',[index]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block></view><block wx:if="{{desc}}"><view class="{{['upload__up--desc','u-line-1',(both)?'both':'',(!both)?'third':'']}}" style="{{'color:'+(descColor)+';'}}">{{''+desc+''}}</view></block></view></block><block wx:if="{{$root.g0}}"><view class="{{['upload__up',(both)?'both-width':'',(!both)?'third-width':'']}}"><view data-event-opts="{{[['tap',[['selectFile',['$event']]]]]}}" class="{{['upload__up--btn',(both)?'both-border both':'',(!both)?'third':'']}}" bindtap="__e"><u-icon vue-id="37befa50-2" name="plus" size="50" bind:__l="__l"></u-icon></view><block wx:if="{{desc}}"><view class="{{['upload__up--desc','u-line-1',(both)?'both':'',(!both)?'third':'']}}" style="{{'color:'+(descColor)+';'}}">{{''+desc+''}}</view></block></view></block></view></view>