|
|
@@ -2,11 +2,9 @@
|
|
|
<div class="main-container">
|
|
|
<div class="menu-container">
|
|
|
<div class="tab-container-large">
|
|
|
- <div class="tab">
|
|
|
- <template v-for="tab of tabs">
|
|
|
- <icon-link :tab="tab" :key="tab.unicode"></icon-link>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
+ <template v-for="tab of tabs">
|
|
|
+ <icon-link :tab="tab" :key="tab.unicode"></icon-link>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<div class="view-container">
|
|
|
<transition name="fade" mode="out-in">
|
|
|
@@ -20,7 +18,7 @@
|
|
|
|
|
|
<div class="tab-container-small">
|
|
|
<template v-for="tab of tabs">
|
|
|
- <icon-link :tab="tab" :key="tab.name" v-if="tab.name!=='line'"></icon-link>
|
|
|
+ <icon-link :tab="tab" :key="tab.unicode"></icon-link>
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -61,11 +59,15 @@ export default {
|
|
|
// 大屏幕情况
|
|
|
@media (min-width: 600px) {
|
|
|
.tab-container-large {
|
|
|
- padding: 24px 18px 24px 36px;
|
|
|
+ padding: 24px 18px;
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
+ flex-direction: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+
|
|
|
+ .icon-link {
|
|
|
+ margin: 16px 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.view-container {
|
|
|
@@ -93,19 +95,22 @@ export default {
|
|
|
|
|
|
.main-container {
|
|
|
justify-content: unset;
|
|
|
+ min-height: calc(100vh - 54px);
|
|
|
}
|
|
|
|
|
|
.tab-container-small {
|
|
|
+ z-index: 2;
|
|
|
+ backdrop-filter: saturate(180%) blur(20px);
|
|
|
+ background: rgba(255,255,255,0.8);
|
|
|
width: 100%;
|
|
|
position: fixed;
|
|
|
- bottom: 10px;
|
|
|
+ padding: 12px 0;
|
|
|
+ height: 54px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ bottom: 0;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-.tab {
|
|
|
- margin: -12px 0;
|
|
|
-}
|
|
|
</style>
|