瀏覽代碼

no message

BF-202210271038\Administrator 2 年之前
父節點
當前提交
86213eee61
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/perfect/sexAndAge.vue

+ 7 - 1
pages/perfect/sexAndAge.vue

@@ -155,7 +155,7 @@ export default {
           this.setFocus(1)
           this.setFocus(1)
         }else {
         }else {
           if(this.ageObj.month!=='' ){
           if(this.ageObj.month!=='' ){
-            if(this.ageObj.month > 12 || this.ageObj.month < 1){
+            if( this.ageObj.month > 12 || this.ageObj.month < 1){
               this.setShake()
               this.setShake()
               this.ageObj.month=''
               this.ageObj.month=''
               this.ageObj.day=''
               this.ageObj.day=''
@@ -170,10 +170,16 @@ export default {
                 }else {
                 }else {
                   this.age=this.ageObj.year+'-'+this.ageObj.month+'-'+this.ageObj.day
                   this.age=this.ageObj.year+'-'+this.ageObj.month+'-'+this.ageObj.day
                 }
                 }
+              }else {
+                this.age=''
               }
               }
             }
             }
+          }else {
+            this.age=''
           }
           }
         }
         }
+      }else {
+        this.age=''
       }
       }
     },
     },
     setShake(){
     setShake(){