hookehuyr

style(views): 统一标签页颜色为#4caf50

...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
74 </div> 74 </div>
75 <!-- 标签页区域 --> 75 <!-- 标签页区域 -->
76 <div class="px-4 py-3 bg-white" style="position: relative;"> 76 <div class="px-4 py-3 bg-white" style="position: relative;">
77 - <van-tabs v-model:active="activeTab" sticky animated swipeable shrink @change="handleTabChange"> 77 + <van-tabs v-model:active="activeTab" sticky animated swipeable shrink color="#4caf50" @change="handleTabChange">
78 <van-tab title="介绍" name="intro"> 78 <van-tab title="介绍" name="intro">
79 </van-tab> 79 </van-tab>
80 <van-tab :title-style="{ 'min-width': '50%' }" name="comments"> 80 <van-tab :title-style="{ 'min-width': '50%' }" name="comments">
...@@ -1087,7 +1087,7 @@ onMounted(async () => { ...@@ -1087,7 +1087,7 @@ onMounted(async () => {
1087 course_lessons.value = detail.data.schedule || []; 1087 course_lessons.value = detail.data.schedule || [];
1088 task_list.value = []; 1088 task_list.value = [];
1089 timeout_task_list.value = []; 1089 timeout_task_list.value = [];
1090 - 1090 +
1091 // 处理task_list数据格式 1091 // 处理task_list数据格式
1092 if (detail.data.task_list) { 1092 if (detail.data.task_list) {
1093 detail.data.task_list.forEach(item => { 1093 detail.data.task_list.forEach(item => {
...@@ -1099,7 +1099,7 @@ onMounted(async () => { ...@@ -1099,7 +1099,7 @@ onMounted(async () => {
1099 }); 1099 });
1100 }); 1100 });
1101 } 1101 }
1102 - 1102 +
1103 // 处理timeout_task_list数据格式 1103 // 处理timeout_task_list数据格式
1104 if (detail.timeout_task_list) { 1104 if (detail.timeout_task_list) {
1105 detail.timeout_task_list.forEach(item => { 1105 detail.timeout_task_list.forEach(item => {
...@@ -1111,7 +1111,7 @@ onMounted(async () => { ...@@ -1111,7 +1111,7 @@ onMounted(async () => {
1111 }); 1111 });
1112 }); 1112 });
1113 } 1113 }
1114 - 1114 +
1115 default_list.value = task_list.value; 1115 default_list.value = task_list.value;
1116 showTaskList.value = true; 1116 showTaskList.value = true;
1117 } 1117 }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
26 </div> 26 </div>
27 27
28 <!-- 学习记录和统计标签页 --> 28 <!-- 学习记录和统计标签页 -->
29 - <van-tabs v-model:active="activeTab" sticky shrink> 29 + <van-tabs v-model:active="activeTab" sticky shrink color="#4caf50">
30 <!-- 学习记录标签 --> 30 <!-- 学习记录标签 -->
31 <van-tab title="学习记录" name="record"> 31 <van-tab title="学习记录" name="record">
32 <div class=" bg-white z-10 px-4 py-3 border-b border-gray-100" style="position: sticky; top: 44px;"> 32 <div class=" bg-white z-10 px-4 py-3 border-b border-gray-100" style="position: sticky; top: 44px;">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2025-06-19 17:12:19 3 * @Date: 2025-06-19 17:12:19
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2025-10-13 10:28:29 5 + * @LastEditTime: 2025-10-28 11:10:00
6 * @FilePath: /mlaj/src/views/teacher/studentPage.vue 6 * @FilePath: /mlaj/src/views/teacher/studentPage.vue
7 * @Description: 学生详情页面 7 * @Description: 学生详情页面
8 --> 8 -->
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
95 <!-- 使用van-sticky包裹van-tabs实现粘性布局 --> 95 <!-- 使用van-sticky包裹van-tabs实现粘性布局 -->
96 <div class="bg-white" style="margin: 1rem;"> 96 <div class="bg-white" style="margin: 1rem;">
97 <van-sticky :offset-top="0"> 97 <van-sticky :offset-top="0">
98 - <van-tabs v-model:active="activeTab" color="#10b981" animated swipeable @change="handleTabChange"> 98 + <van-tabs v-model:active="activeTab" color="#4caf50" animated swipeable @change="handleTabChange">
99 <van-tab title="作业记录" name="homework"></van-tab> 99 <van-tab title="作业记录" name="homework"></van-tab>
100 <van-tab title="班主任点评" name="evaluation"></van-tab> 100 <van-tab title="班主任点评" name="evaluation"></van-tab>
101 <van-tab title="打卡统计" name="statistics"></van-tab> 101 <van-tab title="打卡统计" name="statistics"></van-tab>
......