From 48009d8f908c4fae6bc5fc60e1140e8363c9c71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 4 Sep 2025 11:23:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=87=E7=AD=BE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +-- src/components/course-item/course-item.vue | 7 ++- src/pages/course/index.vue | 50 ++++++++++++++++++---- 3 files changed, 51 insertions(+), 12 deletions(-) diff --git a/.env.development b/.env.development index 9518d451..0b7218c4 100644 --- a/.env.development +++ b/.env.development @@ -27,15 +27,15 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' # 任东 -# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' -# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' +VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' +VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' # 张建成 # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.144:9602' # 王洋洋 -VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' +# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' # 于嘉文 # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604' # 孙宇 diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index 40e24717..a0b4dba4 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -9,7 +9,7 @@ {{itemInfo.crsName}} - {{item.tagName}} + {{item.tagName}} 更新:{{itemInfo.mtTime}} @@ -135,6 +135,11 @@ text-overflow: ellipsis; max-width: 200rpx; box-sizing: border-box; + &.active-tag{ + background-color: #ffa150; + color: #fff; + border: 2rpx solid #ffa150; + } } } } diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 25652b4a..814c4127 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -48,21 +48,23 @@ @@ -556,13 +558,45 @@ import { onShow } from "@dcloudio/uni-app" .tags-view{ height: 84rpx; display: block; - padding: 20rpx 120rpx 20rpx 20rpx; + padding: 15rpx 120rpx 15rpx 20rpx; box-sizing: border-box; white-space: nowrap; border-bottom: 2rpx solid #eee; .tags-item{ margin-right: 30rpx; display: inline-block; + &.active-tags-item{ + position: relative; + overflow: hidden; + border-radius: 4rpx; + overflow: hidden; + &::before{ + content: ''; + display: block; + width: 40rpx; + height: 40rpx; + position: absolute; + right: -20rpx; + bottom: -20rpx; + transform: rotateZ(-45deg); + background-color: #06f; + overflow: hidden; + z-index: 10; + } + &::after{ + content: ''; + display: block; + width: 8rpx; + height: 4rpx; + position: absolute; + right: 3rpx; + bottom: 8rpx; + transform: rotateZ(-45deg); + border-left: 1px solid #fff; + border-bottom: 1px solid #fff; + z-index: 11; + } + } ::v-deep .uv-tags{ padding: 0 20rpx; .uv-tags__text{