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.
|
|
<template> <view class="content padding"> <view class="tit">{{ info.title }}</view> <u-parse :content="info.content" :tagStyle="style"></u-parse> </view> </template>
<script setup> import { ref } from 'vue' let style = { // p: 'font-size:32rpx',
// span: 'font-size: 30rpx',
img: 'max-width: 100%' } 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; } </style>
|