|
|
<template>
|
|
|
<view class="content">
|
|
|
<view class='contop'>
|
|
|
<view class='title'>{{info.name?info.name:''}}</view>
|
|
|
<view class='time'><span>时间:{{info.release_time?info.release_time:''}}</span><span>来源:{{info.source?info.source:''}}</span></view>
|
|
|
<view class='head'>
|
|
|
<img :src="info.head_upload.url" alt="">
|
|
|
<view class='head_unit'>
|
|
|
<view v-if="guidance_unit_list.length>0">
|
|
|
<view>指导单位:</view>
|
|
|
<view>
|
|
|
<view v-for="g in guidance_unit_list">
|
|
|
{{g}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="sponsor_list.length>0">
|
|
|
<view>承办单位:</view>
|
|
|
<view>
|
|
|
<view v-for="s in sponsor_list">
|
|
|
{{s}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="bear_unit_list.length>0">
|
|
|
<view>协办单位:</view>
|
|
|
<view>
|
|
|
<view v-for="b in bear_unit_list">
|
|
|
{{b}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='bg40'></view>
|
|
|
<view class='detail'>
|
|
|
<u-parse :content="info.content?info.content:''"/>
|
|
|
</view>
|
|
|
<tabbar :current-page="3"></tabbar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import uParse from '@/components/gaoyia-parse/parse.vue'
|
|
|
import tabbar from "../../components/tabbar/tabbar.vue"
|
|
|
export default {
|
|
|
components: {
|
|
|
uParse,
|
|
|
tabbar
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
info: {},
|
|
|
id: '',
|
|
|
guidance_unit_list: [],
|
|
|
sponsor_list: [],
|
|
|
bear_unit_list: []
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.id = options.id ? options.id : ''
|
|
|
this.loadDetail()
|
|
|
},
|
|
|
methods: {
|
|
|
loadDetail() {
|
|
|
var that = this;
|
|
|
this.util.request({
|
|
|
api: '/api/mobile/exhibit-hall/show',
|
|
|
data: {
|
|
|
id: that.id
|
|
|
},
|
|
|
utilSuccess: function(res) {
|
|
|
that.info = res
|
|
|
that.guidance_unit_list = res.guidance_unit.split('、')
|
|
|
that.sponsor_list = res.sponsor.split('、')
|
|
|
that.bear_unit_list = res.bear_unit.split('、')
|
|
|
},
|
|
|
utilFail: function(res) {
|
|
|
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
@import url("/components/gaoyia-parse/parse.css");
|
|
|
.content {
|
|
|
background-color: #fff;
|
|
|
padding-bottom:180rpx
|
|
|
}
|
|
|
.contop{
|
|
|
padding:0 30rpx;
|
|
|
}
|
|
|
.title {
|
|
|
text-align: center;
|
|
|
padding: 30rpx 50rpx;
|
|
|
}
|
|
|
|
|
|
.time {
|
|
|
text-align: center;
|
|
|
color: #6e6e6e;
|
|
|
font-size: 28rpx;
|
|
|
padding-bottom: 30rpx;
|
|
|
border-bottom: 1px solid #fafaf9;
|
|
|
}
|
|
|
|
|
|
.time span {
|
|
|
margin: 0 10rpx;
|
|
|
}
|
|
|
|
|
|
.head {
|
|
|
margin:30rpx 0;
|
|
|
}
|
|
|
|
|
|
.head img {
|
|
|
width: 100%
|
|
|
}
|
|
|
.head_unit{
|
|
|
background-color: #fcf8f3;
|
|
|
border:8rpx solid #f8ebdb;
|
|
|
border-radius: 20rpx;
|
|
|
padding:35rpx;
|
|
|
margin:30rpx 0
|
|
|
}
|
|
|
.head_unit>view{
|
|
|
display: flex;
|
|
|
}
|
|
|
.head_unit>view>view:first-child{
|
|
|
width:35%;
|
|
|
}
|
|
|
.head_unit>view>view:last-child{
|
|
|
width:65%;
|
|
|
}
|
|
|
.head_unit>view>view:last-child view{
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
|
.bg40{
|
|
|
width:100%;
|
|
|
height:40rpx;
|
|
|
background-color: #fbf3ea;
|
|
|
}
|
|
|
.detail {
|
|
|
padding:0 30rpx;
|
|
|
margin-top:30rpx;
|
|
|
}
|
|
|
.detail img {
|
|
|
width: 100%
|
|
|
}
|
|
|
</style> |