1234567891011121314151617181920212223242526272829303132 |
- <!-- pages/threshold/threshold.wxml -->
- <view class="container">
- <view class="card">
- <text class="title">当前阈值</text>
-
- <block wx:if="{{threshold !== null}}">
- <text class="value">{{threshold}}</text>
- </block>
- <block wx:else>
- <text class="value">--</text>
- </block>
- <view class="input-area">
- <input
- type="number"
- value="{{newThreshold}}"
- bindinput="onInput"
- placeholder="请输入新阈值"
- class="input"
- disabled="{{loading}}"
- />
- <button
- type="primary"
- bindtap="updateThreshold"
- class="button"
- disabled="{{loading}}"
- >
- {{loading ? '加载中...' : '更新阈值'}}
- </button>
- </view>
- </view>
- </view>
|