Explorar el Código

认证判断bug;

huan-jie hace 4 años
padre
commit
3e5cde66d7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pages/cert/type/_id.vue

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

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