Browse Source

认证判断bug;

huan-jie 4 years ago
parent
commit
e0454c5eb5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/cert/type/_id.vue

+ 4 - 2
pages/cert/type/_id.vue

@@ -324,10 +324,12 @@ export default {
         let next = '/cert'
         // F2、F3 认证,判断是否已上传图片
         if (this.id === '20' || this.id === '21') {
-          next = encodeURIComponent(`${next}?attachment=${this.certVerifyUrl}`)
-          if (!this.certVerifyUrl) {
+          // 由于不知道后端的状态值,前端均以 btn_name 判断状态
+          if (!this.certVerifyUrl && this.detail.btn_name === '未达标') {
             this.$message.error('请先上传职级证明图片')
             return
+          } else {
+            next = encodeURIComponent(`${next}?attachment=${this.certVerifyUrl}`)
           }
         }
         if (screenWidth > 480) {