Calculation.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <!-- 弹窗部分 -->
  87. <view wx:if="{{showResultPopup}}" class="modal-overlay">
  88. <view class="modal">
  89. <view class="modal-header">
  90. <text>计算结果</text>
  91. <button class="close-btn" bindtap="closePopup">×</button>
  92. </view>
  93. <view class="modal-body">
  94. <text>{{result}}</text>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="green-btn">
  99. <button class="btn" bindtap="calculate">计算</button>
  100. </view>