Calculation.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!-- pages/Calculation/Calculation.wxml -->
  2. <view class="page-body">
  3. <view class="white-box">
  4. <view class="input-row">
  5. <view class="page-section-title">土壤有机质(g/kg):</view>
  6. <input
  7. class="input-field"
  8. type="text"
  9. placeholder="0~30"
  10. value="{{OM}}"
  11. bindinput="onOMChange"
  12. inputmode="decimal"
  13. />
  14. </view>
  15. </view>
  16. </view>
  17. <view class="page-body">
  18. <view class="white-box">
  19. <view class="input-row">
  20. <view class="page-section-title">土壤粘粒(g/kg):</view>
  21. <input
  22. class="input-field"
  23. type="text"
  24. placeholder="50~400"
  25. value="{{CL}}"
  26. bindinput="onCLChange"
  27. inputmode="decimal"
  28. />
  29. </view>
  30. </view>
  31. </view>
  32. <view class="page-body">
  33. <view class="white-box">
  34. <view class="input-row">
  35. <view class="page-section-title">阳离子交换量(cmol/kg):</view>
  36. <input
  37. class="input-field"
  38. type="text"
  39. placeholder="0~15"
  40. value="{{CEC}}"
  41. bindinput="onCECChange"
  42. inputmode="decimal"
  43. />
  44. </view>
  45. </view>
  46. </view>
  47. <view class="page-body">
  48. <view class="white-box">
  49. <view class="input-row">
  50. <view class="page-section-title">交换性氢(cmol/kg):</view>
  51. <input
  52. class="input-field"
  53. type="text"
  54. placeholder="0~1"
  55. value="{{H_plus}}"
  56. bindinput="onH_plusChange"
  57. inputmode="decimal"
  58. />
  59. </view>
  60. </view>
  61. </view>
  62. <view class="page-body">
  63. <view class="white-box">
  64. <view class="input-row">
  65. <view class="page-section-title">水解氮(g/kg):</view>
  66. <input
  67. class="input-field"
  68. type="text"
  69. placeholder="0~0.2"
  70. value="{{N}}"
  71. bindinput="onNChange"
  72. inputmode="decimal"
  73. />
  74. </view>
  75. </view>
  76. </view>
  77. <view class="page-body">
  78. <view class="white-box">
  79. <view class="input-row">
  80. <view class="page-section-title">交换性铝(cmol/kg):</view>
  81. <input
  82. class="input-field"
  83. type="text"
  84. placeholder="0~6"
  85. value="{{Al3_plus}}"
  86. bindinput="onAl3_plusChange"
  87. inputmode="decimal"
  88. />
  89. </view>
  90. </view>
  91. </view>
  92. <!-- 弹窗部分 -->
  93. <view wx:if="{{showResultPopup}}" class="modal-overlay">
  94. <view class="modal">
  95. <view class="modal-header">
  96. <text>ΔPH值</text>
  97. <button class="close-btn" bindtap="closePopup">×</button>
  98. </view>
  99. <view class="modal-body">
  100. <text>{{result}}</text>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="green-btn">
  105. <button class="btn" bindtap="calculate">计算</button>
  106. </view>