瀏覽代碼

修改认领显示逻辑

master
王饶冀 2 年之前
父節點
當前提交
b0a9f72c90
共有 1 個文件被更改,包括 13 次插入8 次删除
  1. 13
    8
      digital-park-web/digital-park/src/views/park-enterprises/Detail.vue

+ 13
- 8
digital-park-web/digital-park/src/views/park-enterprises/Detail.vue 查看文件

@@ -72,11 +72,7 @@
</template>
<span
class="pointer"
v-if="
!canEdit &&
companyInfo.claimState.text === '未认领' &&
!(currentAccount && currentAccount.claimCompany)
"
v-if="isShowSetClaim()"
@click="setClaimDialog"
>
<img src="@assets/image/company/icon_claim.png" alt="认领" />
@@ -256,7 +252,16 @@ export default {
});
// location.href = `#content${this.activeTab}`;
},

// 是否显示认领按钮
isShowSetClaim(){
// 默认不显示
let flag = false;
// console.log(this.currentAccount, "this.currentAccount");
if(this.companyInfo && this.companyInfo.claimState && this.companyInfo.claimState.text == '未认领'){
flag = true;
}
return flag;
},
getData() {
let params = {
companyId: this.companyId,
@@ -282,7 +287,7 @@ export default {
},
setClaimDialog() {
// 是否登录
console.log(this.currentAccount, "this.currentAccount");
// console.log(this.currentAccount, "this.currentAccount");
if (!this.currentAccount) {
this.$router.push("/login");
}
@@ -324,7 +329,7 @@ export default {
},
//生命周期 - 挂载完成(可以访问DOM元素)
mounted() {
console.log(this.currentAccount, "this.currentAccount");
// console.log(this.currentAccount, "this.currentAccount");
},
};
</script>

Loading…
取消
儲存