优化店务预约作品快照与图片维护
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</view>
|
||||
<view class="detail-actions">
|
||||
<text class="tag">{{appointment.statusText}}</text>
|
||||
<button class="small-action" bindtap="goTransfer">改派</button>
|
||||
<button wx:if="{{canTransferAppointment && appointment.canEdit}}" class="small-action" bindtap="goTransfer">改派</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail-grid">
|
||||
@@ -38,6 +38,25 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!loadError}}" class="section">
|
||||
<view class="section-head">
|
||||
<view class="section-title">作品图片</view>
|
||||
<button class="text-btn image-action" loading="{{imageUploading}}" disabled="{{imageUploading}}" bindtap="replaceAppointmentImages">{{productImageUrls.length ? '重新上传' : '上传图片'}}</button>
|
||||
</view>
|
||||
<view class="card image-card">
|
||||
<view wx:if="{{productImageUrls.length}}" class="detail-image-list">
|
||||
<view wx:for="{{productImageUrls}}" wx:key="*this" class="detail-image-item">
|
||||
<image class="detail-image" src="{{item}}" mode="aspectFill" data-index="{{index}}" bindtap="previewProductImage"></image>
|
||||
<view class="detail-image-remove" data-index="{{index}}" catchtap="removeAppointmentImage">×</view>
|
||||
</view>
|
||||
<view wx:if="{{productImageUrls.length < 9}}" class="detail-image-add {{imageUploading ? 'disabled' : ''}}" bindtap="chooseAppointmentImages">
|
||||
<text>{{imageUploading ? '...' : '+'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="detail-image-empty">暂无图片</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!loadError}}" class="section">
|
||||
<view class="section-title">备注</view>
|
||||
<view class="card note-card">{{appointment.remark || '暂无备注'}}</view>
|
||||
|
||||
Reference in New Issue
Block a user