style(CourseReviewsPage): 调整评分组件样式以增强可读性
将评分组件的尺寸、颜色和图标样式统一调整为更显眼和一致的外观,提升用户体验
Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-03-21 11:33:26 | 2 | * @Date: 2025-03-21 11:33:26 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-03-21 11:33:27 | 4 | + * @LastEditTime: 2025-03-21 16:02:21 |
| 5 | * @FilePath: /mlaj/src/views/courses/CourseReviewsPage.vue | 5 | * @FilePath: /mlaj/src/views/courses/CourseReviewsPage.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
| 12 | <div class="flex items-center justify-between mb-4"> | 12 | <div class="flex items-center justify-between mb-4"> |
| 13 | <div class="flex items-center"> | 13 | <div class="flex items-center"> |
| 14 | <div class="text-2xl font-bold mr-2">4.9</div> | 14 | <div class="text-2xl font-bold mr-2">4.9</div> |
| 15 | - <van-rate v-model="overallRating" readonly allow-half /> | 15 | + <van-rate v-model="overallRating" readonly :size="20" color="#ffd21e" void-icon="star" void-color="#eee" /> |
| 16 | </div> | 16 | </div> |
| 17 | <div class="text-gray-500 text-sm">126条评论</div> | 17 | <div class="text-gray-500 text-sm">126条评论</div> |
| 18 | </div> | 18 | </div> |
| ... | @@ -31,7 +31,7 @@ | ... | @@ -31,7 +31,7 @@ |
| 31 | <span class="font-medium text-sm block">{{ review.username }}</span> | 31 | <span class="font-medium text-sm block">{{ review.username }}</span> |
| 32 | </div> | 32 | </div> |
| 33 | </div> | 33 | </div> |
| 34 | - <van-rate v-model="review.rating" readonly allow-half class="scale-75 -mr-2 flex-shrink-0" /> | 34 | + <van-rate v-model="review.rating" readonly :size="20" color="#ffd21e" void-icon="star" void-color="#eee" /> |
| 35 | </div> | 35 | </div> |
| 36 | <p class="text-gray-600 text-sm mb-2">{{ review.content }}</p> | 36 | <p class="text-gray-600 text-sm mb-2">{{ review.content }}</p> |
| 37 | <div class="text-gray-400 text-xs">{{ review.date }}</div> | 37 | <div class="text-gray-400 text-xs">{{ review.date }}</div> | ... | ... |
-
Please register or login to post a comment