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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "content" >
< view class = 'contop' >
< view class = 'title' > { { info . name ? info . name : '' } } < / view >
< view class = 'time' > < span > 时间 : { { info . created _at ? info . created _at : '' } } < / span > < span > 来源 : 苏州革命博物馆 < / span > < / view >
< view class = 'head' >
< img :src ="info.head_upload.url" alt = "" >
< / view >
< / view >
< view class = 'bg40' > < / view >
< view class = 'detail' >
< u -parse :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 : '' ,
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/cultural-relic/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 : 180 rpx
}
. contop {
padding : 0 30 rpx ;
}
. title {
text - align : center ;
padding : 30 rpx 50 rpx ;
}
. time {
text - align : center ;
color : # 6 e6e6e ;
font - size : 28 rpx ;
padding - bottom : 30 rpx ;
border - bottom : 1 px solid # fafaf9 ;
}
. time span {
margin : 0 10 rpx ;
}
. head {
margin : 30 rpx 0 ;
}
. head img {
width : 100 %
}
. bg40 {
width : 100 % ;
height : 40 rpx ;
background - color : # fbf3ea ;
}
. detail {
padding : 0 30 rpx ;
margin - top : 30 rpx ;
}
. detail img {
width : 100 %
}
< / style >