fix telegram link

This commit is contained in:
liangping 2022-08-25 16:33:25 +08:00
parent c0062be2de
commit c40164aae0

View File

@ -6,10 +6,7 @@
<h2 class="font-weight-bold"> <h2 class="font-weight-bold">
{{ coinInfo.name }} <span class="text-uppercase">({{ coinInfo.symbol }})</span> {{ coinInfo.name }} <span class="text-uppercase">({{ coinInfo.symbol }})</span>
</h2> </h2>
<span <span>Coingecko Rank: <b-badge variant="light-danger">
v-b-tooltip.hover.v-danger
title="Coingecko Rank"
>Coingecko Rank: <b-badge variant="light-danger">
#{{ coinInfo.coingecko_rank }} #{{ coinInfo.coingecko_rank }}
</b-badge></span> </b-badge></span>
</div> </div>
@ -97,13 +94,13 @@
size="sm" size="sm"
> >
<b-button <b-button
:variant="type==='prices'? 'primary': 'outline-primary'" :variant="type==='prices'? 'secondary': 'outline-secondary'"
@click="selectChart('prices')" @click="selectChart('prices')"
> >
Price Price
</b-button> </b-button>
<b-button <b-button
:variant="type !== 'prices'? 'primary': 'outline-primary'" :variant="type !== 'prices'? 'secondary': 'outline-secondary'"
@click="selectChart('total_volumes')" @click="selectChart('total_volumes')"
> >
Volume Volume
@ -114,19 +111,19 @@
size="sm" size="sm"
> >
<b-button <b-button
:variant="days===1? 'primary': 'outline-primary'" :variant="days===1? 'secondary': 'outline-secondary'"
@click="selectDays(1)" @click="selectDays(1)"
> >
Daily Daily
</b-button> </b-button>
<b-button <b-button
:variant="days===7? 'primary': 'outline-primary'" :variant="days===7? 'secondary': 'outline-secondary'"
@click="selectDays(7)" @click="selectDays(7)"
> >
Weekly Weekly
</b-button> </b-button>
<b-button <b-button
:variant="days===30? 'primary': 'outline-primary'" :variant="days===30? 'secondary': 'outline-secondary'"
@click="selectDays(30)" @click="selectDays(30)"
> >
Monthly Monthly
@ -153,7 +150,7 @@
<b-button <b-button
:href="homepage" :href="homepage"
class="mr-1" class="mr-1"
variant="outline-primary" variant="outline-secondary"
size="sm" size="sm"
> >
<feather-icon icon="CastIcon" /> Webwite <feather-icon icon="CastIcon" /> Webwite
@ -161,7 +158,7 @@
<b-button <b-button
:href="twitter" :href="twitter"
class="mr-1" class="mr-1"
variant="outline-primary" variant="outline-secondary"
size="sm" size="sm"
> >
<feather-icon icon="TwitterIcon" /> Twitter <feather-icon icon="TwitterIcon" /> Twitter
@ -169,7 +166,7 @@
<b-button <b-button
:href="github" :href="github"
class="mr-1" class="mr-1"
variant="outline-primary" variant="outline-secondary"
size="sm" size="sm"
> >
<feather-icon icon="GithubIcon" /> Github <feather-icon icon="GithubIcon" /> Github
@ -177,7 +174,7 @@
<b-button <b-button
:href="telegram" :href="telegram"
class="mr-1" class="mr-1"
variant="outline-primary" variant="outline-secondary"
size="sm" size="sm"
> >
<feather-icon icon="SendIcon" /> Telegram <feather-icon icon="SendIcon" /> Telegram
@ -187,7 +184,7 @@
id="dropdown-2" id="dropdown-2"
size="sm" size="sm"
text="Explorers" text="Explorers"
variant="outline-primary" variant="outline-secondary"
> >
<b-dropdown-item <b-dropdown-item
v-for="site in coinInfo.links.blockchain_site.filter(x => x)" v-for="site in coinInfo.links.blockchain_site.filter(x => x)"
@ -364,7 +361,7 @@ export default {
}, },
telegram() { telegram() {
if (this.coinInfo.links) { if (this.coinInfo.links) {
return this.coinInfo.links.telegram_channel_identifier ? `https://twitter.com/${this.coinInfo.links.telegram_channel_identifier}` : '#' return this.coinInfo.links.telegram_channel_identifier ? `https://t.me/${this.coinInfo.links.telegram_channel_identifier}` : '#'
} }
return '#' return '#'
}, },