| | |
| | | </template> |
| | | </van-tabbar-item> |
| | | |
| | | <van-tabbar-item name="STO" to="/ICO/ico"> |
| | | <span :class="[active === 'STO' ? 'active' : '']">STO</span> |
| | | <van-tabbar-item name="ICO" to="/ICO/ico"> |
| | | <span :class="[active === 'ICO' ? 'active' : '']">ICO</span> |
| | | <template #icon="props"> |
| | | <img :src="props.active ? icon.sto.active : icon.sto.inactive" /> |
| | | <img :src="props.active ? icon.ICO.active : icon.ICO.inactive" /> |
| | | </template> |
| | | </van-tabbar-item> |
| | | |
| | |
| | | } else if (route.path == "/documentation/index") { |
| | | active.value = 'documentation' |
| | | } else if (route.path == "/ICO/ico") { |
| | | active.value = 'sto' |
| | | active.value = 'ICO' |
| | | } |
| | | let quotesStore = useQuotesStore() |
| | | |
| | |
| | | } else if (route.path == "/documentation/index") { |
| | | active.value = 'documentation' |
| | | } else if (route.path == "/ICO/ico") { |
| | | active.value = 'sto' |
| | | active.value = 'ICO' |
| | | } |
| | | }) |
| | | // 底部列表 |
| | |
| | | // active: new URL('@/assets/imgs/footer/news-active.png', import.meta.url), |
| | | // inactive: new URL('@/assets/imgs/footer/news.png', import.meta.url), |
| | | // }, |
| | | sto: { |
| | | ICO: { |
| | | active: new URL('@/assets/imgs/footer/sto-active.png', import.meta.url), |
| | | inactive: new URL('@/assets/imgs/footer/sto.png', import.meta.url), |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import '@/assets/theme/index.scss'; |
| | | |
| | | :deep(.van-tabbar-item__text) { |
| | | font-size: 12px; |
| | | color: #7f7f7f; |
| | | } |
| | | |
| | | :deep(.van-tabbar-item--active) { |
| | | background-color: $white; |
| | | @include themify() { |
| | | background-color: themed("footer_background"); |
| | | } |
| | | } |
| | | |
| | | .van-tabbar--fixed { |
| | | z-index: 10; |
| | | padding-bottom: constant(safe-area-inset-bottom); |
| | | padding-bottom: env(safe-area-inset-bottom); |
| | | background-color: $white; |
| | | @include themify() { |
| | | background-color: themed("footer_background"); |
| | | } |
| | | } |
| | | |
| | | .van-tabbar--fixed::after { |
| | | border-color: $white; |
| | | @include themify() { |
| | | border-color: themed("footer_background"); |
| | | } |
| | | } |
| | | |
| | | // .blue { |
| | |
| | | // } |
| | | |
| | | .active { |
| | | color: #292929 !important; |
| | | @include themify() { |
| | | color: themed("text_color3") !important; |
| | | } |
| | | } |
| | | |
| | | .footer { |