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.
54 lines
1.1 KiB
54 lines
1.1 KiB
<template> |
|
<view class="ConsultingTheDynamic"> |
|
<view class="headers"> |
|
<text>{{title}}</text> |
|
</view> |
|
<view class="timeText"> |
|
<text>{{time}}</text> |
|
</view> |
|
<!-- 分割线 --> |
|
<view class="solid"> |
|
</view> |
|
<!-- 图片 --> |
|
<!-- 内容区 --> |
|
<view class="" style="width: 720rpx;margin: 0rpx auto;" > |
|
<rich-text :nodes="content" space="nbsp" :selectable="true"></rich-text> |
|
|
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
title: "", |
|
time: "", |
|
content: "", |
|
} |
|
}, |
|
onShareAppMessage() { |
|
return { |
|
title: "", // 默认是小程序的名称(可以写slogan等) |
|
path: '/pages/ConsultingTheDynamic/ConsultingTheDynamic', |
|
} |
|
}, |
|
async onLoad(options) { |
|
let res= await this.$api.zixundongtai.getzixundongtai(options.id) |
|
console.log(res); |
|
this.time = res.data.createTime |
|
this.title = res.data.title |
|
this.content = res.data.content |
|
this.content=res.data.content.replace(/<img/g,'<img style="width:96vw;"') |
|
|
|
} |
|
|
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
.CompanyDetails{ |
|
margin: 0rpx auto; |
|
} |
|
@import "./ConsultingTheDynamic.scss" |
|
</style>
|
|
|