优化预约内容填写弹窗

This commit is contained in:
2026-07-21 19:09:43 +08:00
parent df6eccda0f
commit e3f5ad1ba1
3 changed files with 223 additions and 33 deletions
@@ -32,8 +32,8 @@
</view>
<view class="field">
<text class="field-label required">选择作品</text>
<view class="field-value product-value" bindtap="openProductModal">
<text>{{form.manualProductTitle || selectedProduct.title || '请选择作品'}}</text>
<view class="field-value product-value {{form.customerName ? '' : 'disabled'}}" bindtap="openProductModal">
<text>{{form.customerName ? (form.manualProductTitle || selectedProduct.title || '请选择作品') : '请先填写客户姓名'}}</text>
</view>
</view>
<view wx:if="{{form.productId || form.manualProductTitle}}" class="field">
@@ -78,7 +78,7 @@
</view>
<view class="field textarea-field">
<text class="field-label">备注</text>
<textarea value="{{form.remark}}" data-field="remark" bindinput="onInput" placeholder="客户偏好、款式说明" />
<textarea value="{{form.remark}}" data-field="remark" bindinput="onInput" auto-height placeholder="客户偏好、款式说明" />
</view>
</view>
@@ -100,27 +100,25 @@
<view wx:if="{{manualProductPanelVisible}}" class="manual-mask" catchtap="stopTap">
<view class="manual-sheet" catchtap="stopTap">
<view class="manual-sheet-head">
<text class="manual-sheet-title">选择作品</text>
<text class="manual-sheet-title">预约内容填写</text>
<view class="modal-close" bindtap="closeManualProductPanel">×</view>
</view>
<view class="manual-grid">
<input value="{{form.manualProductTitle}}" data-field="manualProductTitle" bindinput="onInput" placeholder="作品名称" />
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" type="digit" placeholder="价格" />
</view>
<input class="manual-input-full" value="{{form.manualProductDescription}}" data-field="manualProductDescription" bindinput="onInput" placeholder="作品描述(选填)" />
<view class="manual-grid single">
<picker range="{{tagOptions}}" range-key="name" value="{{tagPickerIndex}}" bindchange="onManualTagChange" disabled="{{tagOptions.length === 0}}">
<view class="manual-picker {{form.manualProductTags ? '' : 'placeholder'}}">
<text>{{form.manualProductTags || (tagOptions.length ? '请选择标签' : '暂无标签')}}</text>
<text class="manual-picker-arrow">›</text>
<view class="manual-field-row">
<view class="manual-field">
<text class="manual-field-label required-label">名称</text>
<input value="{{form.manualProductTitle}}" data-field="manualProductTitle" bindinput="onInput" placeholder="作品名称" />
</view>
<view class="manual-field manual-price-field">
<text class="manual-field-label required-label">价格</text>
<view class="manual-price-input">
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" type="digit" placeholder="价格" />
<text>元</text>
</view>
</picker>
<input value="{{form.manualProductPrecautions}}" data-field="manualProductPrecautions" bindinput="onInput" placeholder="注意事项(选填)" />
</view>
</view>
<view wx:if="{{tagError}}" class="manual-tag-error">{{tagError}}</view>
<view class="manual-image-section">
<view class="manual-image-head">
<text class="manual-image-title">作品图片</text>
<text class="manual-image-title required-label">作品图片</text>
</view>
<view class="manual-image-list">
<view wx:for="{{manualProductImageUrls}}" wx:for-item="imageUrl" wx:key="*this" class="manual-image-item">
@@ -132,8 +130,24 @@
</view>
</view>
</view>
<button class="secondary-btn manual-btn" bindtap="useManualProduct">保存内容</button>
<button class="secondary-btn template-entry-btn" bindtap="openProductTemplateSheet">使用已有作品模板</button>
<view class="manual-field manual-field-full">
<text class="manual-field-label">标签</text>
<picker range="{{tagOptions}}" range-key="name" value="{{tagPickerIndex}}" bindchange="onManualTagChange" disabled="{{tagOptions.length === 0}}">
<view class="manual-picker {{form.manualProductTags ? '' : 'placeholder'}}">
<text>{{form.manualProductTags || (tagOptions.length ? '请选择标签' : '暂无标签')}}</text>
<text class="manual-picker-arrow">›</text>
</view>
</picker>
</view>
<view wx:if="{{tagError}}" class="manual-tag-error">{{tagError}}</view>
<view class="manual-field manual-field-full manual-remark-field">
<text class="manual-field-label">备注</text>
<textarea value="{{form.manualProductPrecautions}}" data-field="manualProductPrecautions" bindinput="onInput" auto-height placeholder="备注(选填)" />
</view>
<view class="manual-action-row">
<button class="secondary-btn template-entry-btn" bindtap="openProductTemplateSheet">作品库</button>
<button class="primary-btn manual-btn" bindtap="useManualProduct">确认</button>
</view>
</view>
</view>