|
|
<template>
|
|
|
<view class="content">
|
|
|
<view class='contop'>
|
|
|
<view class='title'>{{info.name?info.name:''}}</view>
|
|
|
<view class='time'><span>时间:{{info.release_time?cancelTime(info.release_time):''}}</span><span>来源:{{info.source?info.source:''}}</span></view>
|
|
|
<!-- <view class='head'>
|
|
|
<img :src="info.head_upload.url" alt="">
|
|
|
</view> -->
|
|
|
</view>
|
|
|
<!-- <view class='bg40'></view> -->
|
|
|
<view class='detail'>
|
|
|
<u-parse v-if="showContent" :content="info.content?info.content:' '"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import uParse from '@/components/gaoyia-parse/parse.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
uParse
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
info: {},
|
|
|
id: '',
|
|
|
showContent:false,
|
|
|
guidance_unit_list: [],
|
|
|
sponsor_list: [],
|
|
|
bear_unit_list: []
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.id = options.id ? options.id : ''
|
|
|
this.loadDetail()
|
|
|
},
|
|
|
methods: {
|
|
|
cancelTime(val){
|
|
|
return val.substring(0,10)
|
|
|
},
|
|
|
loadDetail() {
|
|
|
var that = this;
|
|
|
this.util.request({
|
|
|
api: '/api/mobile/cultural-relic/show',
|
|
|
data: {
|
|
|
id: that.id
|
|
|
},
|
|
|
utilSuccess: function(res) {
|
|
|
that.info = res
|
|
|
const host = that.util.HOST
|
|
|
console.log(host)
|
|
|
that.info.content = that.util.replaceImgUrl(that.info.content,'../storage/files',`${host}/storage/files`)
|
|
|
that.showContent = true
|
|
|
},
|
|
|
utilFail: function(res) {
|
|
|
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
@import url("/components/gaoyia-parse/parse.css");
|
|
|
.content {
|
|
|
background-color: #fbf3ea;
|
|
|
/* padding-bottom:180rpx */
|
|
|
}
|
|
|
.contop{
|
|
|
padding:0 30rpx;
|
|
|
padding-bottom: 30rpx;
|
|
|
/* border-radius: 0 0 30rpx 30rpx; */
|
|
|
background: #fff;
|
|
|
}
|
|
|
.title {
|
|
|
text-align: center;
|
|
|
padding: 30rpx 0rpx;
|
|
|
font-size: 32rpx;
|
|
|
font-size: 36rpx;
|
|
|
font-weight:bold;
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
margin-bottom:0;
|
|
|
}
|
|
|
|
|
|
.head img {
|
|
|
width: 100%
|
|
|
}
|
|
|
.head_unit{
|
|
|
background-color: #fcf8f3;
|
|
|
border:8rpx solid #f8ebdb;
|
|
|
border-radius: 20rpx;
|
|
|
padding:35rpx;
|
|
|
margin:30rpx 0;
|
|
|
margin-bottom:0;
|
|
|
}
|
|
|
.head_unit>view{
|
|
|
display: flex;
|
|
|
}
|
|
|
.head_unit>view>view:first-child{
|
|
|
width:28%;
|
|
|
}
|
|
|
.head_unit>view>view:last-child{
|
|
|
width:72%;
|
|
|
}
|
|
|
.head_unit>view>view:last-child view{
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
|
.bg40{
|
|
|
width:100%;
|
|
|
height:40rpx;
|
|
|
background-color: #fbf3ea;
|
|
|
}
|
|
|
.detail {
|
|
|
padding:0 60rpx;
|
|
|
background: #fff;
|
|
|
padding-top: 30rpx;
|
|
|
/* border-radius: 30rpx 30rpx 0 0; */
|
|
|
padding-bottom:180rpx;
|
|
|
font-size: 28rpx;
|
|
|
}
|
|
|
.detail img {
|
|
|
width: 100%;
|
|
|
margin:10rpx 0;
|
|
|
}
|
|
|
.wxParse{
|
|
|
line-height: 2.3;
|
|
|
}
|
|
|
</style> |