You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
682 B
33 lines
682 B
<template> |
|
<view class="lxwm ql-editor" v-html="jiexi"> |
|
|
|
</view> |
|
</template> |
|
|
|
<script> |
|
import {progressioncontactUs} from '@/api/user.js' |
|
import {ref} from 'vue' |
|
export default { |
|
setup() { |
|
let jiexi=ref('<h2 style="color:#ffffff;text-align: center;">联系我们</h2>') |
|
progressioncontactUs({}).then(res=>{ |
|
jiexi.value=res.data[0].content |
|
let richtext = jiexi.value |
|
let regex = new RegExp('<img', 'gi'); |
|
richtext = richtext.replace(regex, '<img style="max-width: 100%;"'); |
|
jiexi.value = richtext |
|
}) |
|
return { |
|
jiexi |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
.lxwm{ |
|
width: 100%; |
|
padding: 20upx 30upx; |
|
box-sizing: border-box; |
|
} |
|
</style>
|
|
|