|
|
@@ -0,0 +1,172 @@
|
|
|
+<template>
|
|
|
+ <div class="tab-container">
|
|
|
+ <div class="tab-home-btn">
|
|
|
+ <img src="@/assets/tab-icons/to_home_icon.png" alt="返回首页">
|
|
|
+ </div>
|
|
|
+ <div class="tab-menu-list">
|
|
|
+ <nav>
|
|
|
+ <router-link to="/">
|
|
|
+ <div class="tab-item">
|
|
|
+ <img src="@/assets/tab-icons/tab-1-select.jpg" />
|
|
|
+ <span>本周食谱</span>
|
|
|
+ </div>
|
|
|
+ </router-link>
|
|
|
+ <router-link to="/about">
|
|
|
+ <div class="tab-item">
|
|
|
+ <img src="@/assets/tab-icons/tab-2.jpg" />
|
|
|
+ <span>我的健康</span>
|
|
|
+ </div>
|
|
|
+ </router-link>
|
|
|
+ <router-link to="/health">
|
|
|
+ <div class="tab-item">
|
|
|
+ <img src="@/assets/tab-icons/tab-3.jpg" />
|
|
|
+ <span>我是营养师</span>
|
|
|
+ </div>
|
|
|
+ </router-link>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ <div class="tab-child">
|
|
|
+ <div class="child-box">
|
|
|
+ <img src="https://img.yzcdn.cn/vant/cat.jpeg" alt="">
|
|
|
+ <div class="BMI">
|
|
|
+ <img src="@/assets/tab-icons/pepole.png" alt="">
|
|
|
+ <div class="BMI-text">BMI未知</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="child-info">
|
|
|
+ <span class="child-name">张晨晨</span>
|
|
|
+ <span class="le">五年级(2)班</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tab-exit">
|
|
|
+ <img src="@/assets/tab-icons/exit.png" alt="">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ name: "BottomTab"
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ .tab-exit{
|
|
|
+ width: 7vw;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+ .tab-exit img{
|
|
|
+ opacity: 0.54;
|
|
|
+ width: 2.5vw;
|
|
|
+ height: 3vw;
|
|
|
+ }
|
|
|
+ .child-info{
|
|
|
+ position: absolute;
|
|
|
+ bottom: 10px;
|
|
|
+ }
|
|
|
+ .child-name{
|
|
|
+ font-size: 2.3vw;
|
|
|
+ font-weight: 600;
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
+ .le{
|
|
|
+ font-size: 2vw;
|
|
|
+ font-weight: 300;
|
|
|
+ }
|
|
|
+.BMI{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ border: 0.5px solid rgba(0,0,0,0.38);
|
|
|
+ width: 100% ;
|
|
|
+ border-radius: 50px;
|
|
|
+ position: relative;
|
|
|
+ top: -25px;
|
|
|
+ left: -2px;
|
|
|
+ background-color: white;
|
|
|
+ padding: 2px 2px;
|
|
|
+
|
|
|
+}
|
|
|
+.BMI img {
|
|
|
+ opacity: 0.5;
|
|
|
+ width: 16px !important;
|
|
|
+ height: 18px !important;
|
|
|
+}
|
|
|
+.BMI-text{
|
|
|
+ opacity: 0.5;
|
|
|
+ flex: 1;
|
|
|
+ font-size: 0.7em !important;
|
|
|
+}
|
|
|
+.tab-container{
|
|
|
+ min-height: 13vh;
|
|
|
+ max-height: 20vh;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-top: 1px solid #88888822;
|
|
|
+}
|
|
|
+.tab-home-btn img{
|
|
|
+ width: 6vw;
|
|
|
+}
|
|
|
+.tab-home-btn{
|
|
|
+ width: 10vw;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ border-right: 1px solid #88888822;
|
|
|
+}
|
|
|
+.tab-menu-list{
|
|
|
+ flex: 1;
|
|
|
+ height: 80%;
|
|
|
+ border-right: 1px solid #88888822;
|
|
|
+}
|
|
|
+.tab-menu-list nav {
|
|
|
+ display: flex;
|
|
|
+ padding-left: 10px;
|
|
|
+}
|
|
|
+nav{
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+nav a.router-link-exact-active {
|
|
|
+ text-decoration: none !important;
|
|
|
+ color: #000000DE;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+nav a{
|
|
|
+ text-decoration: none !important;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 0.7em;
|
|
|
+ color: #0000008A;
|
|
|
+}
|
|
|
+.tab-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ height: 100%;
|
|
|
+ width: 15vw;
|
|
|
+}
|
|
|
+.tab-item span {
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
+.tab-item img{
|
|
|
+ width: 13vw;
|
|
|
+}
|
|
|
+ .tab-child{
|
|
|
+ width: 22vw;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ border-right: 1px solid #88888822;
|
|
|
+ }
|
|
|
+ .child-box img{
|
|
|
+ position: relative;
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ border-radius: 50%;
|
|
|
+ }
|
|
|
+</style>
|