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.
 
 
 
 
 

66 lines
1.4 KiB

<template>
<view class="bg">
<span class="iconfont topLeft" @click="goBack">&#xe660;</span>
<view class="topBox" :style="{backgroundImage: 'url(https://static.ticket.sz-trip.com/yandu/images/notice/detailBg.png)', backgroundSize: 'cover'}">
<view>{{detail.title}}</view>
<view style="font-weight: 500;font-size: 24rpx;margin-top: 22rpx;">{{detail.create_time.slice(0,10)}}</view>
</view>
<view class="content" v-html="formateRichText(detail.content)"></view>
</view>
</template>
<script>
export default {
data() {
return {
detail: {}
}
},
onLoad(option) {
this.Post({
id: option.id
},'/api/anncmnt/getAnncmntById').then(res => {
this.detail = res.data
})
}
}
</script>
<style lang="scss" scoped>
.bg {
width: 750rpx;
min-height: 100vh;
background: url('https://static.ticket.sz-trip.com/yandu/images/notice/noticeBg.png') no-repeat bottom;
background-size: 100% auto;
background-color: #F7F7F7;
}
.topLeft {
position: absolute;
left: 26rpx;
top: 101rpx;
font-size: 40rpx;
z-index: 2;
}
.topBox {
width: 750rpx;
height: 432rpx;
padding: 240rpx 60rpx 0 60rpx;
font-weight: bold;
font-size: 35rpx;
color: #FFFFFF;
}
.content {
width: 697rpx;
height: auto;
background: #FFFFFF;
border-radius: 13rpx;
margin: -28rpx auto 0;
padding: 48rpx 21rpx 98rpx;
position: relative;
}
</style>