123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <view class="container">
- <navBar name="信息详情"></navBar>
- <view class="title">{{info.title}}</view>
- <view >{{info.overview}}</view>
- <image v-if="info.cover" :src="info.cover" class="img" mode="aspectFill" />
-
-
-
- <rich-text :nodes="info.content"></rich-text>
- </view>
- </template>
- <script>
- const config = require('@/common/config.js');
- const http = require('@/common/http.js');
- const request = require('@/common/request.js');
- const common = require('@/common/common.js');
- export default {
- data() {
- return {
- id: '',
- info: {}
- }
- },
- onLoad(options) {
- this.id = options.id
- this.queryMsgDetail()
- },
- methods: {
- queryMsgDetail() {
- const req = { type:'PLAT',id : Number(this.id) }
- http.postApi(config.API_MESSAGE_DTL, req, res => {
- if (res.succeed) {
- this.info = res.data.data
- console.log(this.info)
- }
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .container{
- display: flex;
- flex-direction: column;
-
- .title{
- font-size: 36rpx;
- font-weight: bold;
- margin: 20rpx;
- }
-
- .img{
- width: 750rpx;
- }
- }
- </style>
|