保存款式录入页面微调
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view wx:if="{{showManualAction}}" class="product-selector-footer"><button class="product-selector-action" bindtap="openManual">+ 手动录入作品</button></view>
|
||||
<view wx:if="{{showManualAction}}" class="product-selector-footer"><button class="product-selector-action" bindtap="openManual">返回手动录入</button></view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<scroll-view class="product-selector-scroll manual" scroll-y enhanced show-scrollbar="{{false}}">
|
||||
|
||||
@@ -85,9 +85,12 @@
|
||||
<view class="modal-head"><view><text class="modal-title">{{form.productId ? '调整预约款式' : '录入本次美甲款式'}}</text><text class="modal-subtitle">{{form.productId ? '可调整本次价格和预计时长' : '名称或图片至少填写一项 · 可添加多张图片'}}</text></view><view class="modal-close" bindtap="closeManualProduct" aria-label="关闭款式录入"></view></view>
|
||||
<scroll-view class="manual-style-content" scroll-y enhanced show-scrollbar="{{false}}">
|
||||
<view class="manual-style-name-field">
|
||||
<view class="manual-style-field-heading"><text>名称</text><text class="manual-style-character-count">{{manualProductTitleLength}} / 100</text></view>
|
||||
<view class="manual-style-field-heading"><text>名称</text><text class="manual-style-character-count">
|
||||
{{manualProductTitleLength}} / 100</text></view>
|
||||
<input class="manual-style-title-input" value="{{form.productId ? selectedProduct.title : form.manualProductTitle}}" maxlength="100" disabled="{{form.productId}}" bindinput="onStyleTitleInput" placeholder="留空时默认使用客户姓名" />
|
||||
</view>
|
||||
<text class="manual-style-hint">没有填写名称时,会使用客户姓名;没有选择客户时,会采取散客预约模式,名称采用“散客款式”。</text>
|
||||
|
||||
<view class="manual-style-price-duration-row">
|
||||
<view class="manual-style-compact-field">
|
||||
<text class="manual-style-field-label">价格</text>
|
||||
@@ -98,10 +101,6 @@
|
||||
<view class="manual-style-input-wrap"><input type="number" value="{{form.durationMinutes}}" data-field="durationMinutes" bindinput="onInput" placeholder="60" /><text>分钟</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="manual-style-description-field">
|
||||
<text class="manual-style-field-label">款式描述 / 备注</text>
|
||||
<textarea value="{{unifiedStyleDescription}}" bindinput="onUnifiedStyleDescriptionInput" placeholder="可填写颜色、工艺、特殊要求等(选填)" maxlength="500" />
|
||||
</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">
|
||||
@@ -110,19 +109,22 @@
|
||||
<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>
|
||||
<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>
|
||||
<text class="manual-style-image-tip">第一张图片会作为款式封面,后续图片可展示细节或顾客实拍。</text>
|
||||
<text class="manual-style-image-tip">第一张图片会作为款式封面</text>
|
||||
</view>
|
||||
<view class="manual-style-description-field">
|
||||
<text class="manual-style-field-label">款式描述 / 备注(选填)</text>
|
||||
<textarea value="{{unifiedStyleDescription}}" bindinput="onUnifiedStyleDescriptionInput" placeholder="可填写颜色、工艺、特殊要求等备注" maxlength="500" />
|
||||
</view>
|
||||
<view class="manual-style-more">
|
||||
<view class="manual-style-more-toggle" bindtap="toggleManualProductMore"><text>更多款式信息(选填)</text><text class="manual-style-more-arrow">{{manualProductMoreVisible ? '⌃' : '⌄'}}</text></view>
|
||||
<view class="manual-style-more-toggle" bindtap="toggleManualProductMore"><text>点击展开补充信息</text><text class="manual-style-more-arrow">{{manualProductMoreVisible ? '⌃' : '⌄'}}</text></view>
|
||||
<view wx:if="{{manualProductMoreVisible}}" class="manual-style-more-fields">
|
||||
<input value="{{form.manualProductTags}}" data-field="manualProductTags" bindinput="onInput" placeholder="标签,多个用逗号分隔" />
|
||||
<input value="{{form.manualProductTargetAudience}}" data-field="manualProductTargetAudience" bindinput="onInput" placeholder="适合人群" />
|
||||
<input value="{{form.manualProductPrecautions}}" data-field="manualProductPrecautions" bindinput="onInput" placeholder="注意事项" />
|
||||
</view>
|
||||
</view>
|
||||
<text class="manual-style-hint">没有填写名称时,会使用客户姓名;散客预约会使用“散客款式”。</text>
|
||||
</scroll-view>
|
||||
<view class="manual-style-footer"><button class="manual-style-confirm" bindtap="confirmManualProduct">用于本次预约</button><button class="manual-style-library-link" bindtap="openProductModal">从款式库中选择</button></view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user