diff --git a/components/swiper/community.vue b/components/swiper/community.vue index 33030bf..8e336b5 100644 --- a/components/swiper/community.vue +++ b/components/swiper/community.vue @@ -10,7 +10,9 @@ export default { name: "community", data() { - return {}; + return { + extend_class : '' + }; }, methods: { go_to_community() { diff --git a/components/swiper/exercise.vue b/components/swiper/exercise.vue index a195587..a836fab 100644 --- a/components/swiper/exercise.vue +++ b/components/swiper/exercise.vue @@ -10,7 +10,9 @@ export default { name: "exercise", data() { - return {}; + return { + extend_class : '' + }; }, methods:{ go_to_my_exercise_plan() { diff --git a/components/swiper/puppy_chat.vue b/components/swiper/puppy_chat.vue index 9250a61..04aad6f 100644 --- a/components/swiper/puppy_chat.vue +++ b/components/swiper/puppy_chat.vue @@ -10,13 +10,15 @@ export default { name: "puppy_chat", data() { - return {}; + return { + extend_class : '' + }; }, methods:{ go_go_puppy_chat(){ uni.navigateTo({ - url: '/pages/puppy_chat/puppy_chat' + url: '/pages/homepages/puppy_chat/puppy_chat' }) } } diff --git a/components/swiper/read_center.vue b/components/swiper/read_center.vue index 65c70ab..7e5a303 100644 --- a/components/swiper/read_center.vue +++ b/components/swiper/read_center.vue @@ -10,7 +10,9 @@ export default { name: "read_center", data() { - return {}; + return { + extend_class : '' + }; }, methods:{ go_to_choice_book() { diff --git a/components/tarbar_community/tarbar_community.vue b/components/tarbar_community/tarbar_community.vue index e051ea0..ef0b76b 100644 --- a/components/tarbar_community/tarbar_community.vue +++ b/components/tarbar_community/tarbar_community.vue @@ -53,7 +53,7 @@ export default { data() { return { is_home_picked_up: false, - is_communnity_picked_up: false, + is_community_picked_up: false, is_assistant_picked_up: false, is_user_picked_up: false }; @@ -64,14 +64,14 @@ export default { this.resetPicks(); this.is_home_picked_up = true; uni.reLaunch({ - url: '/pages/homepages/home/home', // 使用 navigateTo + url: '/pages/homepages/homes/home/home', // 使用 navigateTo }); }, pick_up_community() { this.resetPicks(); - this.is_communnity_picked_up = true; + this.is_community_picked_up = true; uni.reLaunch({ - url: '/pages/homepages/community/community', + url: '/pages/homepages/community/community/community', }); }, pick_up_assistant() { @@ -85,12 +85,12 @@ export default { this.resetPicks(); this.is_user_picked_up = true; uni.reLaunch({ - url: '/pages/homepages/user/user', + url: '/pages/homepages/user/user/user', }); }, resetPicks() { this.is_home_picked_up = false; - this.is_communnity_picked_up = false; + this.is_community_picked_up = false; this.is_assistant_picked_up = false; this.is_user_picked_up = false; } @@ -110,14 +110,14 @@ export default { } } .bar_background{ - position: absolute; + position: fixed; width: 95%; /* 宽度占95% */ height: 10%; /* 高度 */ bottom: 1.2%; /* 距离底部2% */ left: 2.5%; /* 左侧2.5% */ background-color: khaki; /* 初始颜色 */ border-radius: 37px; /* 圆角半径,可以根据需要调整 */ - z-index: -1; /* 使背景框在其他元素后面 */ + z-index: 100; /* 使背景框在其他元素后面 */ animation: colorTransition 2s ease forwards; /* 添加颜色渐变动画 */ } @@ -125,19 +125,21 @@ export default { .home, .community, .assistant, .user { - position: absolute; + position: fixed; width: 15%; height: 6%; bottom: 2%; transition: opacity 0.7s ease; /* 添加渐变过渡 */ + z-index: 100; /* 使背景框在其他元素后面 */ } .pick_up_home, .pick_up_community, .pick_up_assistant, .pick_up_user { - position: absolute; + position: fixed; width: 17%; height: 10%; bottom: 2%; transition: opacity 1s ease; /* 添加渐变过渡 */ + z-index: 101; /* 使背景框在其他元素后面 */ } diff --git a/components/tarbar_home/tarbar_home.vue b/components/tarbar_home/tarbar_home.vue index 4954412..74c2fa1 100644 --- a/components/tarbar_home/tarbar_home.vue +++ b/components/tarbar_home/tarbar_home.vue @@ -1,6 +1,5 @@