This commit is contained in:
曹辉 2023-04-26 14:03:22 +08:00
parent adf43d4575
commit 0ba28ae2cc
4 changed files with 71 additions and 8 deletions

View File

@ -23,6 +23,10 @@
info() { info() {
selectNurseAppletPersonTrainingItemDetailsList(this.trainingItemId, this.nurseStationPersonId).then( selectNurseAppletPersonTrainingItemDetailsList(this.trainingItemId, this.nurseStationPersonId).then(
res => { res => {
res.data.trainingItemContent = res.data.trainingItemContent.replace(/\<img/gi,
"<br/> <img class='richPic'")
res.data.trainingItemContent = res.data.trainingItemContent.replace(/\<p/gi,
"<p class='ptext'")
this.list = res.data this.list = res.data
}) })
}, },
@ -45,8 +49,34 @@
background-color: #fff; background-color: #fff;
} }
.u-content { /deep/ .ptext {
margin-top: 20rpx;
}
/deep/ .ptext:nth-child(1) {
text-indent: 2em;
}
/deep/ .ql-size-small {
font-size: 20rpx;
}
/deep/ .ql-size-large {
font-size: 36rpx;
}
/deep/ .ql-size-huge {
font-size: 46rpx;
}
/deep/ .richPic {
width: 100% !important;
height: 100% !important;
}
.u-content {
margin: 15rpx auto;
width: 96%;
text-indent: 2em; text-indent: 2em;
margin-top: 15rpx;
} }
</style> </style>

View File

@ -29,7 +29,7 @@
开始播放 开始播放
</view> </view>
<view class="play" @tap='videoplay(item)' <view class="play" @tap='videoplay(item)'
:style="item.itemDirectoryWatchStatus=='WATCHED'?'background-color: #4271B9;color:#3D7DCA':''" :style="item.itemDirectoryWatchStatus=='WATCHED'?'background-color: #E3EAF5;color:#3D7DCA':''"
v-if="item.itemDirectoryWatchStatus=='WATCHED'"> v-if="item.itemDirectoryWatchStatus=='WATCHED'">
继续播放 继续播放
</view> </view>

View File

@ -1,3 +1,4 @@
page { page {
background-color: #fff; background-color: #fff;
} }
@ -12,11 +13,38 @@ page {
} }
.content { .content {
padding: 30rpx 15rpx 200rpx; width: 96%;
background-color: #fff; margin: 0 auto;
// padding: 30rpx 15rpx 200rpx;
// background-color: #fff;
// text-indent: 2em;
}
/deep/ .ptext {
margin-top: 20rpx;
}
/deep/ .ptext:nth-child(1) {
text-indent: 2em; text-indent: 2em;
} }
/deep/ .ql-size-small {
font-size: 20rpx;
}
/deep/ .ql-size-large {
font-size: 36rpx;
}
/deep/ .ql-size-huge {
font-size: 46rpx;
}
/deep/ .richPic {
width: 100% !important;
height: 100% !important;
}
.directory { .directory {
padding-bottom: 200rpx; padding-bottom: 200rpx;
background-color: #fff; background-color: #fff;
@ -128,6 +156,7 @@ page {
background-color: #fff; background-color: #fff;
margin: 0 auto; margin: 0 auto;
padding-bottom: 40rpx; padding-bottom: 40rpx;
.toptitle { .toptitle {
font-weight: 600; font-weight: 600;
font-size: 38rpx; font-size: 38rpx;

View File

@ -211,6 +211,10 @@
// //
infos() { infos() {
selectNurseAppletPersonTrainingParent(this.trainingParentId, this.nurseStationPersonId).then(res => { selectNurseAppletPersonTrainingParent(this.trainingParentId, this.nurseStationPersonId).then(res => {
res.rows[0].trainingItemContent = res.rows[0].trainingItemContent.replace(/\<img/gi,
"<br/> <img class='richPic'")
res.rows[0].trainingItemContent = res.rows[0].trainingItemContent.replace(/\<p/gi,
"<p class='ptext'")
this.infoslist = res.rows[0] this.infoslist = res.rows[0]
}) })
}, },