提交 4b03c2ea authored 作者: ling's avatar ling

Add tabber

上级 84113a2f
...@@ -4,20 +4,12 @@ ...@@ -4,20 +4,12 @@
<a href="http://chzb8.tv"> <a href="http://chzb8.tv">
<img src="~/assets/images/logo.png" /> <img src="~/assets/images/logo.png" />
</a> </a>
<!-- <el-menu
:default-active="activeIndex"
router
class="el-menu-demo"
mode="horizontal"
>
<el-menu-item index="/">即时比分</el-menu-item>
<el-menu-item index="/schedule">赛程</el-menu-item>
</el-menu> -->
</div> </div>
<van-tabs class="tab" color="#ff976a" v-model="activeIndex">
<van-tab title="即时比分" to="/"></van-tab> <van-tabbar route active-color="#646566">
<van-tab title="赛程" to="/schedule"></van-tab> <van-tabbar-item to="/" name="/" icon="home-o" >即时比分</van-tabbar-item>
</van-tabs> <van-tabbar-item to="/schedule" name="/schedule" icon="notes-o">赛程</van-tabbar-item>
</van-tabbar>
<Nuxt /> <Nuxt />
</div> </div>
</template> </template>
...@@ -28,7 +20,6 @@ export default { ...@@ -28,7 +20,6 @@ export default {
name: "DefaultItem", name: "DefaultItem",
data() { data() {
return { return {
activeIndex: "/",
}; };
}, },
created() { created() {
......
...@@ -158,6 +158,7 @@ export default { ...@@ -158,6 +158,7 @@ export default {
"-" + "-" +
(new Date().getDate() + 3), (new Date().getDate() + 3),
matchType: 0, matchType: 0,
matchText: "",
list: [], list: [],
football: [], football: [],
footballCount: "", footballCount: "",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论