1
0

app-upload-image.wxml 1.2 KB

1
  1. <view class="app-upload-image data-v-097f40ce"><view class="upload-box data-v-097f40ce" style="{{'background:'+(backgroundColor)+';'}}"><view class="flex-wrap data-v-097f40ce"><block wx:for="{{imageList}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="img-box data-v-097f40ce"><view class="remove cross-center main-center data-v-097f40ce" mode="aspectFill" data-event-opts="{{[['tap',[['remove',[index]]]]]}}" bindtap="__e">x</view><image class="img data-v-097f40ce" src="{{item}}" mode="aspectFill" data-event-opts="{{[['tap',[['previewImage',[index]]]]]}}" bindtap="__e"></image></view></block><view data-event-opts="{{[['tap',[['chooseImage',['$event']]]]]}}" bindtap="__e" class="data-v-097f40ce"><block wx:if="{{isAddImg}}"><view class="{{['add-img dir-top-nowrap cross-center main-center data-v-097f40ce',(diy?true:false)?'other-border':'']}}" style="{{'margin:'+(margin+'rpx')+';'}}"><image class="add-img-icon data-v-097f40ce" mode="aspectFill" src="{{defaultImg}}"></image><text class="text data-v-097f40ce">{{text}}</text><block wx:if="{{showNumber}}"><text class="text data-v-097f40ce">{{"(最多"+maxNum+"张)"}}</text></block></view></block></view></view></view></view>