roose пре 4 година
родитељ
комит
8a149fad27
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      pages/collectInfo/collectInfo.js

+ 2 - 2
pages/collectInfo/collectInfo.js

@@ -760,7 +760,7 @@ Page({
                             if (e.data.words_result['公民身份号码'].words.substring(10, 12) < month || e.data.words_result['公民身份号码'].words.substring(10, 12) == month && e.data.words_result['公民身份号码'].words.substring(12, 14) <= day) {
                               age++;
                             }
-                            if (age >= 10) {
+                            if (age >= 60) {
                               let idNumber = 'oldInfo[' + _this.data.activeIndex + '].idNumber'
                               let name = 'oldInfo[' + _this.data.activeIndex + '].name'
                               let nation = 'oldInfo[' + _this.data.activeIndex + '].nation'
@@ -1548,7 +1548,7 @@ Page({
     if (this.data.oldInfo[this.data.activeIndex].sickTypeValue.length != 0) {
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
-        majorDiseases: e.detail.value
+        majorDiseases: JSON.stringify(e.detail.value)
       })
     }
   },