顶部菜单的盲盒根据配置显示隐藏

This commit is contained in:
cebgcontract 2022-04-23 20:53:42 +08:00
parent d6343ec8c6
commit e43be13019

View File

@ -25,7 +25,7 @@
<div class="active-bottom" v-if="currentTab==='market'"></div>
</div>
</a>
<a class="menu-item" href="/mysteryboxes" >
<a class="menu-item" href="/mysteryboxes" v-if="!hidePart" >
<div class="item " :class="{'active': currentTab==='mystery'}">
MysteryBoxes
<div class="active-bottom" v-if="currentTab==='mystery'"></div>
@ -77,7 +77,7 @@
<a class="navItem" href="/">Home</a>
<a class="navItem" href="/official" >Official Shop</a>
<a class="navItem dash" href="/market">Marketplace</a>
<a class="navItem dash" href="/mysteryboxes">MysteryBoxes</a>
<a class="navItem dash" href="/mysteryboxes" v-if="!hidePart" >MysteryBoxes</a>
<a class="navItem" href="/mynft" v-if="logined">MyNFT</a>
<label v-if="!logined" class="navItem" @click="collectToWallet">Connect Wallet</label>
<button v-if="!logined" class="general-btn connectButton mobile" @click="collectToWallet">
@ -135,6 +135,10 @@ export default class extends Vue {
await this.chainManager.init()
}
get hidePart() {
return !!process.env.VUE_APP_PART_CLOSE
}
get logined() {
return this.chainManager.isLogined
}