| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <navigation-bar background="#FFF"></navigation-bar>
- <view wx:if="{{toastText}}" class="page-toast page-toast--{{toastType}}">
- {{toastText}}
- </view>
- <scroll-view class="scrollarea" scroll-y type="list">
- <view class="page-shell">
- <view class="panel control-panel">
- <view class="panel-header panel-header--with-actions">
- <view class="panel-icon icon-control"></view>
- <view class="panel-title">控制指令</view>
- <view class="panel-actions panel-actions--three control-actions">
- <view
- class="panel-action-button {{connectedDevice ? '' : 'is-disabled'}}"
- bindtap="readControlStatus"
- >
- 读取
- </view>
- <view
- wx:for="{{controlActionButtons}}"
- wx:key="key"
- class="panel-action-button {{connectedDevice ? '' : 'is-disabled'}}"
- data-key="{{item.key}}"
- bindtap="onControlButtonTap"
- >
- {{item.name}}
- </view>
- </view>
- </view>
- <view class="param-row input-row">
- <view class="param-main">
- <view class="param-name">{{speedCommand.name}}</view>
- <view class="param-meta {{speedCommand.isDirty ? 'param-meta--dirty' : ''}}">{{speedCommand.addressDisplay}} {{speedCommand.writeValue}}</view>
- </view>
- <view class="input-wrap">
- <input
- class="value-input"
- type="{{speedCommand.unit ? 'text' : 'digit'}}"
- placeholder="--"
- value="{{speedCommand.inputValue}}"
- bindinput="onSpeedCommandInput"
- bindblur="onSpeedCommandBlur"
- />
- </view>
- </view>
- <view class="control-grid">
- <view wx:for="{{controlButtons}}" wx:key="key" class="control-cell control-cell--{{item.key}}">
- <button
- class="control-button control-button--{{item.key}}"
- disabled="{{!connectedDevice}}"
- data-key="{{item.key}}"
- bindtap="onControlButtonTap"
- >
- <text class="control-name">{{item.name}}</text>
- </button>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
|