20 lines
601 B
Plaintext
20 lines
601 B
Plaintext
<view class="page">
|
|
<view wx:if="{{items.length}}" class="photo-grid">
|
|
<view wx:for="{{items}}" wx:key="key" class="photo-tile">
|
|
<image
|
|
class="photo-img"
|
|
src="{{item.url}}"
|
|
mode="aspectFill"
|
|
data-url="{{item.url}}"
|
|
bindtap="onPreview"
|
|
/>
|
|
<view class="photo-actions">
|
|
<view class="photo-btn" data-id="{{item.id}}" catchtap="onDelete">
|
|
<image class="photo-icon" src="/assets/icon-trash.png" mode="aspectFit" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:else class="empty">暂无截图</view>
|
|
</view>
|