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
999 B

<template>
<view class="content padding">
<view class="tit">{{ info.title }}</view>
<u-parse :content="info.content" :tagStyle="style"></u-parse>
<view class="timeDesc" v-if="info.timeDesc">创建时间 {{ info.timeDesc }}</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
import {
onLoad,
onPullDownRefresh,
} from '@dcloudio/uni-app'
import { getNoticeDetail } from '@/config/api.js'
let articleId = ''
const info = ref('')
async function getNoticeDetailFn() {
const {data: res} = await getNoticeDetail({articleId})
info.value = res
}
onLoad((option)=>{
articleId = option.id
getNoticeDetailFn()
})
onPullDownRefresh(async()=>{
await getNoticeDetailFn()
uni.stopPullDownRefresh()
})
</script>
<style lang="scss" scoped>
.tit {
font-size: 32rpx;
font-weight: 700;
padding: 20rpx 0;
text-align: center;
}
.timeDesc {
text-align: right;
font-size: 28rpx;
color: #999;
padding: 30px 0;
}
</style>