28 lines
1.5 KiB
Plaintext
28 lines
1.5 KiB
Plaintext
<view class="page no-tab">
|
|
<view class="card color-preview" style="background: {{selected}};">{{selected}}</view>
|
|
<view class="section-title">推荐色</view>
|
|
<view class="palette recommended-palette">
|
|
<view wx:for="{{recommendedColors}}" wx:key="*this" class="color-swatch recommended {{selected === item ? 'active' : ''}}" style="background: {{item}};" data-color="{{item}}" bindtap="select"></view>
|
|
</view>
|
|
<view class="section-title">色盘选择</view>
|
|
<view class="card color-wheel-card">
|
|
<view class="color-wheel-wrap">
|
|
<view class="color-wheel">
|
|
<view wx:for="{{wheelColors}}" wx:key="*this" class="wheel-hit hit-{{index}}" data-color="{{item}}" bindtap="selectWheelColor"></view>
|
|
<view class="wheel-center" style="background: {{selected}};">
|
|
<text>{{selected}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="palette-grid compact">
|
|
<view wx:for="{{paletteColors}}" wx:key="*this" class="palette-dot {{selected === item ? 'active' : ''}}" style="background: {{item}};" data-color="{{item}}" bindtap="select"></view>
|
|
</view>
|
|
</view>
|
|
<view class="card custom-color-card">
|
|
<view class="custom-color-preview" style="background: {{customColor}};"></view>
|
|
<input class="custom-color-input" value="{{customColor}}" maxlength="7" placeholder="#7BA7C7" bindinput="onCustomInput" />
|
|
<button class="small-action" bindtap="applyCustomColor">应用</button>
|
|
</view>
|
|
<view class="fixed-bottom"><button class="primary-btn" bindtap="save">保存颜色</button></view>
|
|
</view>
|