修改图片超出内容问题

master
mahe 2023-12-18 15:35:20 +08:00
parent 053279f60d
commit 195ea35798
2 changed files with 18 additions and 3 deletions

View File

@ -26,9 +26,11 @@
<Button type="primary" @click='currentIndex = 0' <Button type="primary" @click='currentIndex = 0'
v-if="storeDisable === 'REFUSED' && currentIndex === 3">重新申请</Button> v-if="storeDisable === 'REFUSED' && currentIndex === 3">重新申请</Button>
</div> </div>
<Modal title="店铺入驻协议" v-model="showAgreement" width="1200" :closable="false" :mask-closable="false"> <Modal title="店铺入驻协议" v-model="showAgreement" width="1200" :closable="false" :mask-closable="false">
<div class="agreeent-con" v-html="agreementCon"></div> <Scroll :on-reach-bottom="handleReachBottom">
<div class="agreeent-con" v-html="agreementCon"></div>
</Scroll>
<div slot="footer" style="text-align: center"> <div slot="footer" style="text-align: center">
<p> <p>
@ -69,6 +71,9 @@ export default {
agreement().then((res) => { agreement().then((res) => {
this.agreementCon = res.result.content; this.agreementCon = res.result.content;
}); });
},
handleReachBottom(){
}, },
getData(status) { getData(status) {
// //
@ -173,6 +178,10 @@ export default {
} }
.agreeent-con { .agreeent-con {
max-height: 500px; max-height: 500px;
::v-deep img{
max-width: 100%;
max-height: 200px;
}
} }
.success-page { .success-page {
height: 500px; height: 500px;

View File

@ -2,7 +2,7 @@
<div> <div>
<Modal v-model="noticeFlage" :title="noticesDetail.title"> <Modal v-model="noticeFlage" :title="noticesDetail.title">
<div v-if="noticesDetail" v-html="noticesDetail.content"> <div v-if="noticesDetail" class="noticesDetail" v-html="noticesDetail.content">
</div> </div>
</Modal> </Modal>
@ -294,4 +294,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./home.scss"; @import "./home.scss";
.noticesDetail{
/deep/ img{
max-width: 100%;
max-height: 200px;
}
}
</style> </style>