|
@@ -11,12 +11,23 @@
|
|
|
</keep-alive>
|
|
|
<router-view class="app-body" v-if="!$route.meta.keepAlive"/>
|
|
|
<div class="tab-nav nav-bar" v-if="$route.meta.showTab">
|
|
|
- <a href="javascript:;" v-for="(i,index) in data.tabs" :key="index" :class="{active:index == data.thatnum}" @click="addClassName(index)">
|
|
|
+ <!-- <a href="javascript:;" v-for="(i,index) in data.tabs" :key="index" :class="{active:index == data.thatnum}" @click="addClassName(index)">
|
|
|
<router-link :to="i.url">
|
|
|
<img v-if="data.thatnum!=index" :src="i.img" class="first weui-tabbar__icon">
|
|
|
<img v-if="data.thatnum==index" :src="i.active" class="last first weui-tabbar__icon">
|
|
|
</router-link>
|
|
|
- </a>
|
|
|
+ </a> -->
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" v-for="(i,index) in data.tabs" :key="index">
|
|
|
+ <a href="javascript:;" :class="{active:index == data.thatnum}" @click="addClassName(index)">
|
|
|
+ <router-link :to="i.url">
|
|
|
+ <img v-if="data.thatnum!=index" :src="i.img" class="first weui-tabbar__icon">
|
|
|
+ <img v-if="data.thatnum==index" :src="i.active" class="last first weui-tabbar__icon">
|
|
|
+ </router-link>
|
|
|
+ </a>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -97,8 +108,10 @@ import login from "./store/module/login";
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
background: #fff;
|
|
|
z-index: 999;
|
|
|
+ // height: 50px;
|
|
|
img{
|
|
|
width: 100%;
|
|
|
+ // height: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -106,6 +119,7 @@ import login from "./store/module/login";
|
|
|
/*margin-top: 45px;*/
|
|
|
/*margin-bottom: 5rem;*/
|
|
|
overflow: hidden;
|
|
|
+ // padding-bottom: 5rem;
|
|
|
}
|
|
|
|
|
|
.bar-nav .title {
|