调整
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user