diff --git a/pages/yian/yian.vue b/pages/yian/yian.vue index f8b4a93..6d70105 100644 --- a/pages/yian/yian.vue +++ b/pages/yian/yian.vue @@ -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" diff --git a/pages/yian/yianDetail.vue b/pages/yian/yianDetail.vue index df302a5..96bae24 100644 --- a/pages/yian/yianDetail.vue +++ b/pages/yian/yianDetail.vue @@ -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 @@