tanyanfei 4 년 전
부모
커밋
b642e49440
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      pages/upload/upload.js

+ 10 - 0
pages/upload/upload.js

@@ -100,6 +100,16 @@ Page({
       })
       return false
     }
+    if (this.data.train_type == '换证' || this.data.train_type == '复审') {
+      if (!formData.oldcard_img){
+        wx.showToast({
+          title: '换证/复审证件照不存在!',
+          icon: 'none',
+          duration: 2000
+        })
+        return false
+      }     
+    }
     wx.showLoading({
       title: '',
     })