Explorar el Código

认证判断bug;

huan-jie hace 4 años
padre
commit
e0454c5eb5
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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) {