thres.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- pages/threshold/threshold.wxml -->
  2. <view class="container">
  3. <!-- 反酸阈值卡片 -->
  4. <view class="card">
  5. <text class="title">当前反酸模型阈值</text>
  6. <block wx:if="{{refluxThreshold !== null}}">
  7. <text class="value">{{refluxThreshold}}</text>
  8. </block>
  9. <block wx:else>
  10. <text class="value">--</text>
  11. </block>
  12. <view class="input-area">
  13. <input
  14. type="number"
  15. value="{{newReflux}}"
  16. bindinput="onInput"
  17. data-type="reflux"
  18. placeholder="请输入新阈值"
  19. class="input"
  20. disabled="{{loading}}"
  21. />
  22. <button
  23. type="primary"
  24. bindtap="updateThreshold"
  25. data-type="reflux"
  26. class="button"
  27. disabled="{{loading}}"
  28. >
  29. {{loading ? '加载中...' : '更新阈值'}}
  30. </button>
  31. </view>
  32. </view>
  33. <!-- 降酸阈值卡片 -->
  34. <view class="card">
  35. <text class="title">当前降酸模型阈值</text>
  36. <block wx:if="{{reduceThreshold !== null}}">
  37. <text class="value">{{reduceThreshold}}</text>
  38. </block>
  39. <block wx:else>
  40. <text class="value">--</text>
  41. </block>
  42. <view class="input-area">
  43. <input
  44. type="number"
  45. value="{{newReduce}}"
  46. bindinput="onInput"
  47. data-type="reduce"
  48. placeholder="请输入新阈值"
  49. class="input"
  50. disabled="{{loading}}"
  51. />
  52. <button
  53. type="primary"
  54. bindtap="updateThreshold"
  55. data-type="reduce"
  56. class="button"
  57. disabled="{{loading}}"
  58. >
  59. {{loading ? '加载中...' : '更新阈值'}}
  60. </button>
  61. </view>
  62. </view>
  63. </view>