兼兼街公众号代码
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.
 
 
 

53 lines
892 B

<template>
<view class="new-detail">
<view class="title">{{informData.title}}</view>
<view class="time">{{informData.createTime}}</view>
<u-parse :content="informData.context"></u-parse>
</view>
</template>
<script>
export default{
data(){
return{
informData: {}
}
},
// 隐藏微信h5的标题栏
onReady() {
this.$com.displayNav()
},
onLoad(e) {
this.getinformFindById(e.id)
},
methods:{
getinformFindById(id){
uni.showLoading()
this.$api('informFindById',{id})
.then(res=>{
uni.hideLoading()
if(res.code == 200){
this.informData = res.result;
}
})
}
}
}
</script>
<style lang="scss" scoped>
.new-detail {
padding: 38rpx 40rpx 50rpx;
.title {
font-size: 34rpx;
color: #000000;
font-weight: 700;
}
.time {
font-size: 22rpx;
color: #C8C8C8;
margin: 40rpx 0;
}
}
</style>