Calculation.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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">有机质含量 OM:</view>
  6. <input
  7. class="input-field"
  8. type="text"
  9. placeholder="4~6"
  10. value="{{OM}}"
  11. bindinput="onOMChange"
  12. />
  13. </view>
  14. </view>
  15. </view>
  16. <view class="page-body">
  17. <view class="white-box">
  18. <view class="input-row">
  19. <view class="page-section-title">土壤粘粒重量 CL:</view>
  20. <input
  21. class="input-field"
  22. type="text"
  23. placeholder="4~6"
  24. value="{{CL}}"
  25. bindinput="onCLChange"
  26. />
  27. </view>
  28. </view>
  29. </view>
  30. <view class="page-body">
  31. <view class="white-box">
  32. <view class="input-row">
  33. <view class="page-section-title">阳离子交换量 CEC:</view>
  34. <input
  35. class="input-field"
  36. type="text"
  37. placeholder="4~6"
  38. value="{{CEC}}"
  39. bindinput="onCECChange"
  40. />
  41. </view>
  42. </view>
  43. </view>
  44. <view class="page-body">
  45. <view class="white-box">
  46. <view class="input-row">
  47. <view class="page-section-title">氢离子含量 H:</view>
  48. <input
  49. class="input-field"
  50. type="text"
  51. placeholder="4~6"
  52. value="{{H}}"
  53. bindinput="onHChange"
  54. />
  55. </view>
  56. </view>
  57. </view>
  58. <view class="page-body">
  59. <view class="white-box">
  60. <view class="input-row">
  61. <view class="page-section-title">铵离子含量 HN:</view>
  62. <input
  63. class="input-field"
  64. type="text"
  65. placeholder="4~6"
  66. value="{{HN}}"
  67. bindinput="onHNChange"
  68. />
  69. </view>
  70. </view>
  71. </view>
  72. <view class="page-body">
  73. <view class="white-box">
  74. <view class="input-row">
  75. <view class="page-section-title">铝离子含量 Al:</view>
  76. <input
  77. class="input-field"
  78. type="text"
  79. placeholder="4~6"
  80. value="{{Al}}"
  81. bindinput="onAlChange"
  82. />
  83. </view>
  84. </view>
  85. </view>
  86. <view class="page-body">
  87. <view class="white-box">
  88. <view class="input-row">
  89. <view class="page-section-title">游离氧化铝 FA:</view>
  90. <input
  91. class="input-field"
  92. type="text"
  93. placeholder="4~6"
  94. value="{{free_alumina}}"
  95. bindinput="onFreeAluminaChange"
  96. />
  97. </view>
  98. </view>
  99. </view>
  100. <view class="page-body">
  101. <view class="white-box">
  102. <view class="input-row">
  103. <view class="page-section-title">游离氧化铁 FIO:</view>
  104. <input
  105. class="input-field"
  106. type="text"
  107. placeholder="4~6"
  108. value="{{free_iron_oxides}}"
  109. bindinput="onFreeIronOxidesChange"
  110. />
  111. </view>
  112. </view>
  113. </view>
  114. <view class="page-body">
  115. <view class="white-box">
  116. <view class="input-row">
  117. <view class="page-section-title">pH差值:</view>
  118. <input
  119. class="input-field"
  120. type="text"
  121. placeholder="4~6"
  122. value="{{delta_ph}}"
  123. bindinput="onDeltaPhChange"
  124. />
  125. </view>
  126. </view>
  127. </view>
  128. <!-- 弹窗部分 -->
  129. <view wx:if="{{showResultPopup}}" class="modal-overlay">
  130. <view class="modal">
  131. <view class="modal-header">
  132. <text>计算结果</text>
  133. <button class="close-btn" bindtap="closePopup">×</button>
  134. </view>
  135. <view class="modal-body">
  136. <text>{{result}}</text>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="green-btn">
  141. <button class="btn" bindtap="calculate">计算</button>
  142. </view>