소스 검색

xielianghe

lange 5 년 전
부모
커밋
c2f68abde9
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      whepi-ui/templates/home/ribao.ftl
  2. 1 0
      whepi-ui/templates/home/ribao.js

+ 2 - 2
whepi-ui/templates/home/ribao.ftl

@@ -92,14 +92,14 @@
                     <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
                         <div style="color: gray;height: 5vh; line-height: 5vh;margin-right: 2vw;width: 30%;">
                             <button id="ribao_score"  style="height:5vh;" class="weui-btn weui-btn_mini weui-btn_primary">健康评估</button></div>
-                            <input id="js_input_score_rezult" class="weui-input" autofocus="" type="number" maxlength="4" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;" />
+                            <input id="js_input_score_rezult" class="weui-input" autofocus=""  readonly="readonly" style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh;" />
                              <input id="js_input_temperature_score" type="text" hidden="hidden" />
                              <input id="js_input_score_histroy" type="text" hidden="hidden" />
                               <input id="js_input_score" type="text" hidden="hidden"/>
                     </div>
                     <div style="display: flex; justify-content: center;">
                         <div style="width: 70%;color: red; text-align: center;">
-                            大家可以自愿填写病情描述(温度为必填项),根据每天病情变化趋势给出就诊评估建议
+                            自愿填写病情描述(温度为必填项),提交后会根据每天病情描述变化趋势给出更加科学的健康评估建议
                         </div>
                     </div>
                     <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh; margin-bottom: 5vh;">

+ 1 - 0
whepi-ui/templates/home/ribao.js

@@ -830,6 +830,7 @@ $('#ribao_score').on('click', function () {
         $('#js_input_score_rezult').empty();
       }
       else {
+        $('#js_input_score_rezult').empty();
         var ScoreRezult = getScoreRezult(data.scoreRezult);
         $("#js_input_score_rezult").val(ScoreRezult);
         // $("#js_input_temperature_score").val(data.temperatureScore);