修改课程详情页样式,修复me页修改出来的bug

This commit is contained in:
田岩
2025-11-24 16:32:42 +08:00
parent dba4d2a0a7
commit 88b234e98d
6 changed files with 33 additions and 25 deletions
+3 -1
View File
@@ -111,7 +111,9 @@
width: 100%;
height: 100%;
}
.color-666{
color: #666666;
}
.fl1 {
flex: 1;
}
+28 -22
View File
@@ -2,8 +2,8 @@
<view class="course-info">
<view class="info-top font_pf">
<view class="top-left font_pf">
<view class="fz-30 fw-400 mb-8">课程类别</view>
<view class="fz-30 fw-400">{{ modelValue.catalogName }}</view>
<view class="fz-30 fw-600 mb-8">课程类别</view>
<view class="fz-30 fw-400 color-666">{{ modelValue.catalogName }}</view>
</view>
<view class="top-right font_pf">
<view class="rate-text mb-4">评分</view>
@@ -11,13 +11,13 @@
</view>
</view>
<view class="info-middle font_pf">
<view class="fz-30 fw-400 mb-8">更新日期</view>
<view class="fz-30 fw-400">{{ (modelValue.mtTime || '').substr(0, 16) }}</view>
<view class="fz-30 fw-600 mb-8">更新时间</view>
<view class="fz-30 fw-400 color-666">{{ (modelValue.mtTime || '').substr(0, 16) }}</view>
</view>
<view class="info-bottom">
<view class="bottom-left">
<view class="mb-64">
<view class="fz-30 font_pf fw-400 mb-18">标签</view>
<view class="fz-30 font_pf fw-600 mb-18">标签</view>
<view class="label" v-if="modelValue.tagCataList">
<text class="label-item font_pf" v-for="item in modelValue.tagCataList" :key="item.tagId">
{{ item.tagName }}
@@ -25,22 +25,21 @@
</view>
</view>
<view class="mb-64">
<view class="fz-30 fw-400 font_pf mb-4">创建人</view>
<view class="fz-30 font_pf fw-400">{{ modelValue.ctUserName }}</view>
<view class="fz-30 fw-600 font_pf mb-4">创建人</view>
<view class="fz-30 font_pf fw-400 color-666">{{ modelValue.ctUserName }}</view>
</view>
<view class="mb-64">
<view class="fz-30 font_pf fw-400 mb-4">归属部门</view>
<view class="fz-30 font_pf fw-400">{{ modelValue.belgOrgName }}</view>
<view class="fz-30 font_pf fw-600 mb-4">归属部门</view>
<view class="fz-30 font_pf fw-400 color-666">{{ modelValue.belgOrgName }}</view>
</view>
</view>
<view class="bottom-right">
<image src="/src/static/images/courseDetail/ditu.png" class="right-img" mode="widthFix"></image>
</view>
</view>
<view class="mb-64">
<view class="fz-30 font_pf fw-400 mb-4">课程核心</view>
<view class="examination_core">
<view class="fz-30 font_pf fw-600 mb-4">课程核心</view>
<view class="examination_core color-666">
{{ modelValue.crsCore }}
</view>
</view>
@@ -70,11 +69,11 @@
</script>
<style lang="scss" scoped>
.examination_core {
padding: 0 15rpx 0 0;
line-height: 50rpx;
font-size: 30rpx;
color: #333;
padding-bottom: 20rpx;
}
@@ -95,7 +94,6 @@
justify-content: space-between;
margin-bottom: 62rpx;
padding-right: 36rpx;
.top-right {
.rate-text {
text-align: right;
@@ -116,12 +114,15 @@
.info-middle {
margin-bottom: 35rpx;
padding-right: 36rpx;
}
.info-bottom {
// background-color: #0066ff;
display: flex;
justify-content: space-between;
width: 100%;
position: relative;
}
.bottom-left {
@@ -131,27 +132,30 @@
flex: 1;
.label {
width: 100%;
width: 50%;
display: flex;
flex-wrap: wrap;
}
.label-item {
text-align: left;
border-radius: 22rpx;
padding: 2rpx 14rpx;
padding: 0rpx 16rpx;
font-size: 22rpx;
margin-right: 14rpx;
background-color: #f1f3f8;
margin-top: 6rpx;
border-radius: 8rpx;
border: 2rpx solid #FFA150;
font-weight: 500;
font-size: 24rpx;
color: #FFA150;
}
}
.bottom-right {
width: 50%;
position: absolute;
top: -40rpx;
right: 20rpx;
.right-img {
width: 100%;
width: 380rpx;
height: auto;
object-fit: cover;
}
@@ -161,4 +165,6 @@
padding-top: 12rpx;
color: #06f;
}
</style>
+1 -1
View File
@@ -70,7 +70,7 @@
@change="tabSwitch"
:scrollable="false"
line-color="#0066FF"
:active-style="{ color: '#323E57', 'font-weight': 600, 'font-size': '30rpx' }"
:active-style="{ color: '#0066FF', 'font-weight': 600, 'font-size': '30rpx' }"
:inactive-style="{ color: '#666666', 'font-size': '30rpx' }"
></uv-tabs>
</view>
+1 -1
View File
@@ -261,7 +261,7 @@
try {
const time_now = Date.now();
let points_data = common.getValue('points_data') || {};
if (time_now - this.request_time > 300 && status) {
if (time_now - this.request_time > 300 || status) {
this.request_time = time_now;
// 获取最新数据
const res = await queryCurrentStatus();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB