duanshenglang 5 mēneši atpakaļ
vecāks
revīzija
9e6295184d
1 mainītis faili ar 20 papildinājumiem un 13 dzēšanām
  1. 20 13
      lottery/lottery.html

+ 20 - 13
lottery/lottery.html

@@ -894,19 +894,21 @@
               })
               return
             }
-            if (!this.getInfoForm.city) {
-              this.$message({
-                message: '请选择城市',
-                type: 'warning'
-              })
-              return
-            }
-            if (!this.getInfoForm.intenModel) {
-              this.$message({
-                message: '请选择意向车型',
-                type: 'warning'
-              })
-              return
+            if (!this.preOnlyPhone) {
+              if (!this.getInfoForm.city) {
+                this.$message({
+                  message: '请选择城市',
+                  type: 'warning'
+                })
+                return
+              }
+              if (!this.getInfoForm.intenModel) {
+                this.$message({
+                  message: '请选择意向车型',
+                  type: 'warning'
+                })
+                return
+              }
             }
             this.getInfoForm.buyCar = null
             this.getInfoForm.car = ''
@@ -956,6 +958,11 @@
                 type: 'success'
               })
               this.showTipDialog = false
+            } else {
+              this.$message({
+                message: msg,
+                type:'warning'
+              }) 
             }
           })
         },