This commit is contained in:
曹辉 2023-02-24 14:40:34 +08:00
parent 2eb77a91f2
commit 08d819c522
3 changed files with 30 additions and 12 deletions

View File

@ -7,7 +7,6 @@
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
@ -19,13 +18,38 @@
this.item = JSON.parse(decodeURIComponent(options.item)) this.item = JSON.parse(decodeURIComponent(options.item))
this.item.informationContent = this.item.informationContent.replace(/\<img/gi, this.item.informationContent = this.item.informationContent.replace(/\<img/gi,
"<br/> <img class='richPic'") "<br/> <img class='richPic'")
this.item.informationContent = this.item.informationContent.replace(/\<p/gi,
"<p class='ptext'")
// this.item.informationContent = this.item.informationContent.replace(/\<span/,
// "<span class='ql-size-small'")
// atch = match.replace(/class="ql-size-large"/gi, 'max-width:100%;')
// console.log(this.item.informationContent)
}, },
onReady() { // onReady() {}, //
},
} }
</script> </script>
<style lang="scss"> <style lang="scss">
/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;
}
.title { .title {
padding-left: 3%; padding-left: 3%;
font-size: 38rpx; font-size: 38rpx;

View File

@ -119,7 +119,7 @@
.Healthknowledge { .Healthknowledge {
width: 94%; width: 94%;
margin: 20rpx auto; margin: 20rpx auto;
padding: 0 50rpx 50rpx; padding: 0 30rpx 50rpx;
background-color: #fff; background-color: #fff;
position: relative; position: relative;
line-height: 46rpx; line-height: 46rpx;
@ -156,11 +156,8 @@
position: absolute; position: absolute;
top: 20rpx; top: 20rpx;
left: 0; left: 0;
width: 50%; width: 60%;
font-size: 30rpx; font-size: 30rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }

View File

@ -367,11 +367,8 @@
position: absolute; position: absolute;
top: 20rpx; top: 20rpx;
left: 0; left: 0;
width: 50%; width: 65%;
font-size: 30rpx; font-size: 30rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }