This commit is contained in:
liuyuan
2025-03-10 15:26:34 +08:00
parent 6e36d6d957
commit a7cc147375
4 changed files with 28 additions and 9 deletions

View File

@@ -30,10 +30,19 @@
</view>
<view class="containerBg" v-if="curriculumData.content && curriculumData.content != ''">
<view class="prof">
<view style="padding: 0 20rpx" @click="isHideCourseInfo = !isHideCourseInfo">
<view :class="`${isHideCourseInfo ? 'hidden2' : ''}`"
style="width: calc(100% - 50rpx)" v-html="curriculumData.content">
<view style="padding: 0 20rpx; position: relative;">
<view :class="`${isHideCourseInfo ? 'hidden2' : ''}`" v-html="curriculumData.content">
</view>
<br/>
<text @click="isHideCourseInfo = !isHideCourseInfo" style="
font-size: 24rpx;
position: absolute;
bottom: 0;
right: 20rpx;
color: #838588;
">
{{ isHideCourseInfo ? "展开" : "收起" }}
</text>
</view>
</view>
</view>
@@ -181,7 +190,7 @@
},
data() {
return {
isHideCourseInfo: true,
isHideCourseInfo: false,
courseList: [],
showGoBuy: true,
protocolShow: false,
@@ -1258,7 +1267,7 @@
.prof {
font-size: 26rpx;
line-height: 50rpx;
line-height: 24px;
padding-bottom: 10rpx;
color: #333;
}
@@ -1324,8 +1333,8 @@
height: 50rpx;
}
.hidden2{
line-height: 20px;
max-height: 40px;
line-height: 24px;
max-height: 48px;
height: auto;
}
</style>