调整预约款式图片排列
This commit is contained in:
@@ -103,14 +103,16 @@
|
||||
</view>
|
||||
<view class="manual-style-images">
|
||||
<view class="manual-style-image-heading"><text>款式图片</text><text class="manual-style-image-count">{{form.manualProductImages.length}} / 9</text></view>
|
||||
<view class="manual-style-image-grid">
|
||||
<view wx:for="{{form.manualProductImages}}" wx:key="fileId" class="manual-style-image-tile">
|
||||
<image src="{{item.previewUrl || item.fileUrl}}" mode="aspectFill" data-index="{{index}}" binderror="onManualProductImageError"></image>
|
||||
<text wx:if="{{index === 0}}" class="manual-style-image-cover">封面</text>
|
||||
<button class="manual-style-image-remove" data-index="{{index}}" disabled="{{manualImageUploading}}" catchtap="removeManualProductImage" aria-label="移除图片">×</button>
|
||||
<scroll-view class="manual-style-image-scroll" scroll-x="true" enhanced="true" show-scrollbar="false">
|
||||
<view class="manual-style-image-grid">
|
||||
<view wx:for="{{form.manualProductImages}}" wx:key="fileId" class="manual-style-image-tile">
|
||||
<image src="{{item.previewUrl || item.fileUrl}}" mode="aspectFill" data-index="{{index}}" binderror="onManualProductImageError"></image>
|
||||
<text wx:if="{{index === 0}}" class="manual-style-image-cover">封面</text>
|
||||
<button class="manual-style-image-remove" data-index="{{index}}" disabled="{{manualImageUploading}}" catchtap="removeManualProductImage" aria-label="移除图片">×</button>
|
||||
</view>
|
||||
<button wx:if="{{form.manualProductImages.length < 9}}" class="manual-style-add-image" bindtap="chooseManualProductImage" loading="{{manualImageUploading}}" disabled="{{manualImageUploading}}"><text class="manual-style-add-icon">+</text><text>点击添加图片</text></button>
|
||||
</view>
|
||||
<button wx:if="{{form.manualProductImages.length < 9}}" class="manual-style-add-image" bindtap="chooseManualProductImage" loading="{{manualImageUploading}}" disabled="{{manualImageUploading}}"><text class="manual-style-add-icon">+</text><text>点击添加图片</text></button>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<text class="manual-style-image-tip">第一张图片会作为款式封面</text>
|
||||
</view>
|
||||
<view class="manual-style-description-field">
|
||||
|
||||
Reference in New Issue
Block a user