63 行
2.2 KiB
Plaintext
63 行
2.2 KiB
Plaintext
<view class="container">
|
|
<view class="card">
|
|
<view class="section-title">护理区域</view>
|
|
<view class="region-grid">
|
|
<view wx:for="{{regions}}" wx:key="mask" class="region-item {{item.checked ? 'region-active' : ''}}"
|
|
bindtap="onToggleRegion" data-idx="{{index}}">
|
|
<text>{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="btn-select-all mt-10" bindtap="onSelectAll">全选</view>
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="section-title">波长选择</view>
|
|
<view class="wavelength-list">
|
|
<view wx:for="{{wavelengthOptions}}" wx:key="value"
|
|
class="wavelength-item {{selectedWavelength === item.value ? 'wavelength-active' : ''}}"
|
|
bindtap="onSelectWavelength" data-value="{{item.value}}">
|
|
<text class="wavelength-name">{{item.name}}</text>
|
|
<text class="wavelength-desc">{{item.desc}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="section-title">亮度: {{brightness}}</view>
|
|
<slider min="0" max="255" value="{{brightness}}" bindchange="onBrightnessChange"
|
|
activeColor="#333333" block-size="20" />
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="section-title">护理时长</view>
|
|
<view class="duration-list">
|
|
<view wx:for="{{durationOptions}}" wx:key="value"
|
|
class="duration-item {{selectedDuration === item.value ? 'duration-active' : ''}}"
|
|
bindtap="onSelectDuration" data-value="{{item.value}}">
|
|
{{item.label}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="section-title">护理模式</view>
|
|
<view class="mode-list">
|
|
<view wx:for="{{modeOptions}}" wx:key="value"
|
|
class="mode-item {{selectedMode === item.value ? 'mode-active' : ''}}"
|
|
bindtap="onSelectMode" data-value="{{item.value}}">
|
|
{{item.name}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{error}}" class="card">
|
|
<text class="text-error">{{error}}</text>
|
|
</view>
|
|
|
|
<view class="btn-area-fixed">
|
|
<view class="btn-primary" bindtap="onStart" disabled="{{submitting}}">
|
|
{{submitting ? '启动中...' : '开始护理'}}
|
|
</view>
|
|
</view>
|
|
</view>
|