Explorar el Código

认证申请页-下架隐藏:应该允许访问、按钮显示应和“暂停认证”一致

zweizhao hace 7 años
padre
commit
340762fb1f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      pages/index/cert/freelancer.vue
  2. 1 1
      pages/index/cert/index.vue

+ 1 - 1
pages/index/cert/freelancer.vue

@@ -60,7 +60,7 @@ export default {
   },
   computed: {
     isDeath() {
-      return this.detail.status === '1'
+      return this.detail.status === '1' || !this.detail.can_click
     },
     isLogin() {
       return this.detail.user_info

+ 1 - 1
pages/index/cert/index.vue

@@ -58,7 +58,7 @@ export default {
       })
     },
     btnDisabled(item) {
-      return item.btn_name !== "申请认证"
+      return item.btn_name !== "申请认证" || !item.can_click
     },
     async getList() {
       let res = await this.$post('/api/cert/getList', {page})