From 32ab8f576c92ce0e962ebf29540aefc4fd8d655a Mon Sep 17 00:00:00 2001 From: liuyuan Date: Fri, 7 Mar 2025 11:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E6=89=A3=E5=8A=9F=E8=83=BD+=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=96=87=E5=AD=97=E6=88=AA=E5=8F=96=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 ++-- pages/course/index.vue | 15 ++++++++++++++- pages/mine/mine/index.vue | 8 ++++---- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index ce9c3d7..d2bc917 100644 --- a/manifest.json +++ b/manifest.json @@ -12,8 +12,8 @@ "src" : "图片路径" } ], - "versionName" : "1.0.55", - "versionCode" : 1055, + "versionName" : "1.0.56", + "versionCode" : 1056, "app-plus" : { "nvueCompiler" : "uni-app", "compatible" : { diff --git a/pages/course/index.vue b/pages/course/index.vue index 6d0fc12..18c9cf3 100644 --- a/pages/course/index.vue +++ b/pages/course/index.vue @@ -52,7 +52,7 @@ - {{(v.title).substring(0, 1)}}/ + {{formatContent(v.title)}}/ 免费 ¥{{item.courseCatalogueEntityList[0].halfFee}}/{{item.courseCatalogueEntityList[0].fee}} @@ -207,6 +207,19 @@ export default { }, //方法 methods: { + //判断显示‘上/中/下’ + formatContent(content) { + const keywords = ["上部", "中部", "下部"]; + let result = []; + + // 判断是否包含关键字 + keywords.forEach((keyword) => { + if (content.includes(keyword)) { + result.push(keyword.substring(0, 1)); + } + }); + return result.join(""); + }, //获取国家-一级 getCountryList() { $http.request({ diff --git a/pages/mine/mine/index.vue b/pages/mine/mine/index.vue index 1f06059..867317a 100644 --- a/pages/mine/mine/index.vue +++ b/pages/mine/mine/index.vue @@ -963,19 +963,19 @@ padding: 0 10rpx; background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%); border-radius: 20rpx; - font-size: 20rpx; + font-size: 18rpx; line-height: 40rpx; height: 40rpx; font-weight: bold; color: #fff; - margin-right: 10rpx; + margin-right: 8rpx; } .vip_type_item:last-child{ margin-right: 0; } .vip_type_item image{ - width: 34rpx; - height: 24rpx; + width: 30rpx; + height: 20rpx; } .vip_infor{ padding-left: 20rpx;