37 lines
1.1 KiB
Vue
37 lines
1.1 KiB
Vue
<template>
|
|
<view class="introduce" v-if='loaded'>
|
|
<rich-text :nodes="content" class="richTxt" />
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import {
|
|
fwbDetail
|
|
} from '@/apis/interfaces/index.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
loaded:false,
|
|
content: '<p><img src=\"https://douhuo-storage.oss-cn-beijing.aliyuncs.com/uploads/images/2022/12/26/2aa1387f7bf0eac7ae861c9ca69a730a.png\" title=\"/uploads/images/2022/12/26/2aa1387f7bf0eac7ae861c9ca69a730a.png\" alt=\"2级页面-补差价类服务包.png\"/></p>'
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
fwbDetail(e.id).then(res => {
|
|
this.content = res.content
|
|
this.loaded = true
|
|
}).catch(err => {
|
|
uni.showToast({
|
|
title: err.message,
|
|
icon: 'none',
|
|
mask: true,
|
|
duration: 2000
|
|
})
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
img{
|
|
width: 100%!important;
|
|
}
|
|
</style>
|