thres.wxml 777 B

1234567891011121314151617181920212223242526272829303132
  1. <!-- pages/threshold/threshold.wxml -->
  2. <view class="container">
  3. <view class="card">
  4. <text class="title">当前阈值</text>
  5. <block wx:if="{{threshold !== null}}">
  6. <text class="value">{{threshold}}</text>
  7. </block>
  8. <block wx:else>
  9. <text class="value">--</text>
  10. </block>
  11. <view class="input-area">
  12. <input
  13. type="number"
  14. value="{{newThreshold}}"
  15. bindinput="onInput"
  16. placeholder="请输入新阈值"
  17. class="input"
  18. disabled="{{loading}}"
  19. />
  20. <button
  21. type="primary"
  22. bindtap="updateThreshold"
  23. class="button"
  24. disabled="{{loading}}"
  25. >
  26. {{loading ? '加载中...' : '更新阈值'}}
  27. </button>
  28. </view>
  29. </view>
  30. </view>