Support lv6 plus (#3203)

This commit is contained in:
the1812 2022-05-01 20:41:48 +08:00
parent 660dcdbb32
commit d4a4e4933c
3 changed files with 44 additions and 14 deletions

View File

@ -147,23 +147,29 @@ body.fixed-navbar {
// &:not(.fill) .custom-navbar-iconfont {
// color: var(--theme-color);
// }
path {
fill: var(--navbar-foreground);
}
svg.stroke {
&,
svg.inherit-color {
path {
fill: transparent;
stroke: var(--navbar-foreground);
fill: var(--navbar-foreground);
}
}
&.fill:not(.transparent) path {
fill: var(--foreground-color-d);
svg.stroke {
&.stroke {
&,
path {
fill: transparent;
stroke: var(--navbar-foreground-d);
stroke: var(--navbar-foreground);
}
}
}
&.fill:not(.transparent) {
svg.inherit-color {
path {
fill: var(--foreground-color-d);
}
&.stroke {
&,
path {
fill: transparent;
stroke: var(--navbar-foreground-d);
}
}
}
}

View File

@ -11,7 +11,7 @@
target="_blank"
href="https://account.bilibili.com/account/big"
>{{ userType }}</a>
<div v-if="userInfo.vipStatus ===1 && userInfo.vipType === 2" class="privileges row">
<div v-if="userInfo.vipStatus === 1 && userInfo.vipType === 2" class="privileges row">
<div
class="b-coin"
:class="{ received: privileges.bCoin.received }"
@ -37,9 +37,17 @@
class="level"
>
<VIcon
v-if="userInfo.is_senior_member"
:icon="'lv' + userInfo.level_info.current_level + '-plus'"
colored
:size="30"
class="level-icon plus"
/>
<VIcon
v-else
:icon="'lv' + userInfo.level_info.current_level"
class="level-icon"
></VIcon>
/>
</a>
<span
class="level-progress-label"
@ -209,6 +217,18 @@ export default Vue.extend({
}
},
computed: {
level() {
const baseLevel = `lv${this.userInfo.level_info.current_level}`
if (this.userInfo.is_senior_member) {
return {
icon: `${baseLevel}-plus`,
colored: true,
}
}
return {
icon: baseLevel,
}
},
userType() {
if (!this.userInfo.isLogin) {
return '未登录'
@ -486,6 +506,9 @@ export default Vue.extend({
background: rgba(255, 255, 255, 0.1);
}
}
.level-icon.plus {
max-height: 24px;
}
.level-progress-thumb {
width: 100%;
height: 100%;

View File

@ -0,0 +1 @@
<svg t="1641541042505" viewBox="0 0 2633 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3185" width="200" height="200" class="icon"><path d="M169.545143 163.181714h2248.923428v707.364572H169.545143z" fill="#FFFFFF" p-id="3186"></path><path d="M2510.994286 73.142857c22.747429 0 45.494857 20.772571 44.397714 43.300572l-0.950857 6.144v747.446857c0 22.381714-15.36 44.909714-41.472 48.786285l-8.118857 0.585143H144.676571a48.859429 48.859429 0 0 1-49.005714-41.252571l-0.512-8.118857V209.042286c0-22.454857 15.36-44.982857 41.398857-48.859429l8.118857-0.585143h1021.805715v-37.010285c0-22.454857 15.36-44.982857 41.472-48.859429l8.045714-0.585143h1295.067429zM2170.88 174.518857l-272.310857 370.614857a27.867429 27.867429 0 0 0 22.528 44.397715h176.713143l-30.427429 210.944c-4.169143 28.745143 32.914286 43.958857 50.176 20.48l272.237714-370.541715a27.940571 27.940571 0 0 0-22.528-44.470857h-176.713142l30.427428-210.870857c4.169143-28.818286-32.914286-43.958857-50.102857-20.553143z m-484.059429 3.584h-384c-18.505143 0-37.010286 18.578286-37.010285 37.083429v574.464c0 18.578286 18.505143 37.083429 37.083428 37.083428h384c18.505143 0 37.083429-18.505143 37.083429-37.083428V474.624c0-18.505143-18.578286-37.010286-37.156572-37.010286h-297.179428V301.714286h297.179428c18.578286 0 37.156571-18.578286 37.156572-37.083429v-49.444571c0-18.505143-18.578286-37.083429-37.156572-37.083429zM733.037714 264.630857h-49.517714c-18.578286 0-37.156571 18.505143-37.156571 37.083429v302.665143c0 16.822857 0 31.817143 6.217142 37.083428l173.348572 172.909714c12.434286 12.361143 43.373714 12.361143 43.373714 12.361143s30.939429 0 43.373714-12.361143l185.782858-172.909714c6.144-6.217143 6.144-18.578286 6.144-30.866286V307.858286c0-18.505143-18.578286-37.010286-37.156572-37.010286h-49.444571c-18.651429 0-37.229714 18.505143-37.229715 37.010286V585.874286l-105.325714 104.96L770.194286 585.874286V301.714286c0-18.578286-18.578286-37.083429-37.156572-37.083429z m-445.878857 0h-49.590857c-16.530286 0-32.987429 14.628571-36.498286 30.939429l-0.658285 6.144v488.009143c0 16.457143 14.628571 32.914286 31.012571 36.352l6.144 0.658285h297.252571c16.530286 0 33.060571-14.628571 36.571429-30.866285l0.585143-6.144v-49.444572c0-16.530286-14.628571-32.914286-30.939429-36.425143l-6.217143-0.658285H324.315429V301.714286c0-18.578286-18.578286-37.083429-37.156572-37.083429z m1312.914286 296.521143v142.043429h-210.505143V561.152h210.432z" fill="#FF0000" p-id="3187" class="bg"></path></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB