Преглед изворни кода

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

zweizhao пре 7 година
родитељ
комит
340762fb1f
2 измењених фајлова са 2 додато и 2 уклоњено
  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: {
   computed: {
     isDeath() {
     isDeath() {
-      return this.detail.status === '1'
+      return this.detail.status === '1' || !this.detail.can_click
     },
     },
     isLogin() {
     isLogin() {
       return this.detail.user_info
       return this.detail.user_info

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

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