123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <!-- pages/Calculation/Calculation.wxml -->
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">有机质含量 OM:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{OM}}"
- bindinput="onOMChange"
- />
- </view>
- </view>
- </view>
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">土壤粘粒重量 CL:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{CL}}"
- bindinput="onCLChange"
- />
- </view>
- </view>
- </view>
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">阳离子交换量 CEC:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{CEC}}"
- bindinput="onCECChange"
- />
- </view>
- </view>
- </view>
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">氢离子含量 H:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{H}}"
- bindinput="onHChange"
- />
- </view>
- </view>
- </view>
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">铵离子含量 HN:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{HN}}"
- bindinput="onHNChange"
- />
- </view>
- </view>
- </view>
- <view class="page-body">
- <view class="white-box">
- <view class="input-row">
- <view class="page-section-title">铝离子含量 Al:</view>
- <input
- class="input-field"
- type="text"
- placeholder="4~6"
- value="{{Al}}"
- bindinput="onAlChange"
- />
- </view>
- </view>
- </view>
- <!-- 弹窗部分 -->
- <view wx:if="{{showResultPopup}}" class="modal-overlay">
- <view class="modal">
- <view class="modal-header">
- <text>计算结果</text>
- <button class="close-btn" bindtap="closePopup">×</button>
- </view>
- <view class="modal-body">
- <text>{{result}}</text>
- </view>
- </view>
- </view>
- <view class="green-btn">
- <button class="btn" bindtap="calculate">计算</button>
- </view>
|