新增美甲师页颜色选择抽屉与注册流程按钮样式同步设计稿
This commit is contained in:
@@ -35,8 +35,10 @@
|
||||
</view>
|
||||
<view class="field color-field">
|
||||
<text class="field-label required">日程中排班展示颜色</text>
|
||||
<view class="color-options">
|
||||
<view wx:for="{{employeeColors}}" wx:key="*this" class="color-option {{form.color === item ? 'selected' : ''}}" style="background: {{item}};" data-color="{{item}}" bindtap="selectColor"></view>
|
||||
<view class="color-current">
|
||||
<view class="color-current-chip" style="background: {{form.color}};"></view>
|
||||
<text class="color-current-value">{{form.color}}</text>
|
||||
<view class="color-select-btn" bindtap="openColorSheet">选择颜色<text class="color-select-arrow">›</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -62,6 +64,27 @@
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{colorSheetVisible}}" class="color-sheet-mask" catchtouchmove="stopTouchMove" catchtap="closeColorSheet">
|
||||
<view class="color-sheet" catchtap="stopColorSheetTap">
|
||||
<view class="color-sheet-handle"></view>
|
||||
<text class="color-sheet-title">选择颜色</text>
|
||||
<view class="color-preview" style="background: {{colorDraft}};"></view>
|
||||
<text class="color-section-title">推荐色</text>
|
||||
<view class="color-grid">
|
||||
<view wx:for="{{employeeColors}}" wx:key="*this" class="color-grid-item {{colorDraft === item ? 'selected' : ''}}" style="background: {{item}};" data-color="{{item}}" bindtap="pickDraftColor"></view>
|
||||
</view>
|
||||
<text class="color-section-title">色轮</text>
|
||||
<view class="color-wheel" bindtap="onWheelTap" catchtouchmove="onWheelTouch">
|
||||
<view class="color-wheel-dot" style="left: {{wheelDotX}}rpx; top: {{wheelDotY}}rpx; background: {{colorDraft}};"></view>
|
||||
</view>
|
||||
<text class="color-section-title">自定义色值</text>
|
||||
<view class="color-hex-row">
|
||||
<input class="color-hex-input" value="{{colorHexInput}}" bindinput="onColorHexInput" maxlength="7" placeholder="#8FB89A" />
|
||||
<button class="color-apply-btn" bindtap="applyColorHex">应用</button>
|
||||
</view>
|
||||
<button class="primary-btn color-save-btn" bindtap="saveColorSheet">保存颜色</button>
|
||||
</view>
|
||||
</view>
|
||||
<entity-selector-sheet visible="{{userPickerVisible}}" title="选择微信用户" keyword="{{userKeyword}}" placeholder="搜索昵称或手机号" items="{{userItems}}" selected-id="{{selectedWechatUserId}}" loading="{{userLoading}}" empty-text="暂无未关联的微信用户" action-text="暂不关联" bind:search="onUserSearch" bind:select="selectWechatUser" bind:action="closeUserPicker" bind:close="closeUserPicker" />
|
||||
<entity-selector-sheet visible="{{associationSheetVisible}}" title="关联待审核申请" keyword="{{associationKeyword}}" placeholder="搜索申请昵称、手机号或编号" items="{{associationItems}}" selected-id="{{associationSelectedId}}" loading="{{associationLoading}}" empty-text="暂无可关联申请" action-text="暂不关联,继续" bind:search="onAssociationSearch" bind:select="selectAssociation" bind:action="skipAssociation" bind:close="skipAssociation" />
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user