店务小程序支持预约标签设置与展示
This commit is contained in:
@@ -63,6 +63,31 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-title">标签设置</view>
|
||||
<view class="card tag-setting-card">
|
||||
<view class="tag-form-row">
|
||||
<input class="tag-input" value="{{tagForm.name}}" bindinput="onTagInput" placeholder="输入标签名称" />
|
||||
<button class="secondary-btn tag-save-btn" loading="{{tagSaving}}" disabled="{{tagSaving || tagsLoading}}" bindtap="saveTag">{{tagForm.id ? '更新' : '新增'}}</button>
|
||||
</view>
|
||||
<view wx:if="{{tagForm.id}}" class="tag-edit-tip">
|
||||
<text>正在编辑“{{tagForm.name}}”</text>
|
||||
<text class="tag-clear" bindtap="clearTagForm">取消</text>
|
||||
</view>
|
||||
<view wx:if="{{tagsLoading}}" class="tag-empty">标签加载中</view>
|
||||
<view wx:elif="{{tagList.length}}" class="tag-list">
|
||||
<view wx:for="{{tagList}}" wx:key="id" class="tag-item">
|
||||
<view class="tag-preview" style="background: {{item.bgColor}}; color: {{item.textColor}}; border-color: {{item.borderColor}};">{{item.name}}</view>
|
||||
<view class="tag-actions">
|
||||
<text data-id="{{item.id}}" bindtap="editTag">编辑</text>
|
||||
<text class="danger" data-id="{{item.id}}" bindtap="deleteTag">删除</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="tag-empty">暂无标签,可用于新建预约时快速选择</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-title">店铺排班</view>
|
||||
<view class="card rule-card">
|
||||
|
||||
Reference in New Issue
Block a user