소스 검색

认证判断bug;

huan-jie 4 년 전
부모
커밋
3e5cde66d7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 {