Skip to content

Commit 9213923

Browse files
authored
Merge pull request #1195 from AlisProject/add_wiz
Add pr item to bcg ranking.
2 parents 64b0996 + 699e33b commit 9213923

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

app/components/molecules/BcgRankingList.vue

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
<tbody v-else class="bcg-ranking-body">
3131
<tr v-for="(bcgInfo, index) in rankingInfo" :key="bcgInfo.key">
3232
<td class="bcg-index" @click="toTag(`/tag/${bcgInfo.tag_name}`)">
33-
{{ index + 1 }}
33+
<span v-if="index === 0" class="bcg-ranking-pr">PR</span>
34+
<span v-else>{{ index }}</span>
3435
</td>
3536
<td class="bcg-name" @click="toTag(`/tag/${bcgInfo.tag_name}`)">
3637
<img
@@ -68,9 +69,23 @@ export default {
6869
required: true
6970
}
7071
},
72+
data() {
73+
return {
74+
prGameKey: 'wizardia'
75+
}
76+
},
7177
computed: {
78+
sortedRankingInfo() {
79+
const prItem = this.bcgRankingInfo.filter((item) => item.key === this.prGameKey)
80+
const tmpItems = this.bcgRankingInfo.filter((item) => item.key !== this.prGameKey)
81+
if (prItem.length === 1) {
82+
tmpItems.unshift(prItem[0])
83+
return tmpItems
84+
}
85+
return this.bcgRankingInfo
86+
},
7287
rankingInfo() {
73-
return this.bcgRankingInfo.slice(0, this.indexCount)
88+
return this.sortedRankingInfo.slice(0, this.indexCount)
7489
},
7590
...mapGetters('user', ['loggedIn', 'currentUser']),
7691
...mapGetters('article', ['bcgRankingInfo'])
@@ -184,6 +199,10 @@ export default {
184199
text-align: center;
185200
}
186201
202+
.bcg-ranking-pr {
203+
font-size: 10px;
204+
}
205+
187206
.bcg-name {
188207
color: #333;
189208
text-align: left;

app/components/pages/Campaigns.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ export default {
3030
data() {
3131
return {
3232
campaigns: [
33-
// {
34-
// imageSrc: 'kryptomon.png',
35-
// articleUrl: '/ALIS-official/articles/aEOb7YZm6wk6',
36-
// description: 'ポケモンやたまごっち、クリプトキティを融合させたようなPlay-to-Earn型のNFT。' +
37-
// '今なら卵やルートボックスをゲットできるコラボ実施中!'
38-
// },
33+
{
34+
imageSrc: 'wizardia.png',
35+
articleUrl: '/ALIS-official/articles/3VjvxJzJggWD',
36+
description: '誰でももらえる!WizardiaのNFTとトークンをゲットできるコラボ実施中!'
37+
},
3938
{
4039
imageSrc: 'lok.png',
4140
articleUrl: '/ALIS-official/articles/365Rb1VZYWkw',

0 commit comments

Comments
 (0)