roose 4 năm trước cách đây
mục cha
commit
4c7045d53d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pages/collectInfo/collectInfo.js

+ 1 - 1
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 >= 30) {
+                            if (age <= 30) {
                               let idNumber = 'oldInfo[' + _this.data.activeIndex + '].idNumber'
                               let name = 'oldInfo[' + _this.data.activeIndex + '].name'
                               let nation = 'oldInfo[' + _this.data.activeIndex + '].nation'