图谱居中,最大宽度适配

This commit is contained in:
yanwenlong
2023-12-04 23:16:50 +08:00
parent c04a69ba88
commit 1b6a64d3e6
2 changed files with 13 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ import { data } from 'jquery';
this.booksetpage = 1
this.yianList = []
}
if(this.contentShow == 2){
if(this.contentShow == 1){
httpurl = "book/bookMedicalRecords/userEbookBuyList"
} else {
httpurl = "book/bookMedicalRecords/recommendBookList"

View File

@@ -150,8 +150,16 @@
this.$http
.post('book/bookMedicalRecords/getById?medicalRecordsId=' + this.medicalRecordsId )
.then(res => {
console.log(res,'res')
// console.log(res,'res')
this.productInfo = res.entity
// console.log('cursor: nwse-resize', this.productInfo.content.includes('cursor: nwse-resize'))
// if(this.productInfo.content.includes('cursor: nwse-resize')){
// // this.productInfo.content = this.productInfo.content.replaceAll('cursor: nwse-resize;', 'cursor: nwse-resize;max-width:100%;')
// }else{
this.productInfo.content = this.productInfo.content.replaceAll('img src', 'img style="max-width:100%;" src')
// }
// console.log(this.productInfo.content,'res')
uni.hideLoading();
}).catch((e)=>{
console.log(e,'e')
@@ -305,6 +313,9 @@
</script>
<style lang="scss" scoped>
/deep/.ql-align-center{
text-align: center;
}
.addPl{padding-top: 0rpx; margin-bottom: 0rpx;}
.pinglunMain{
.pl-item{