源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<template>
<view class="content">
<view class="title">
<span>{{ content.title }}</span>
</view>
<view class="updatedAt">
<span>作者{{ content.publisher }}</span>
&nbsp&nbsp
<span>时间{{ content.updatedAt }}</span>
</view>
<!-- map-html 解析时出现横向滚动条 -->
<!-- <mp-html :content="content.content" /> -->
<view class="content-text" v-html="content.content"></view>
</view>
</template>
<script setup>
import { ref, reactive } from "vue"
import { $noticeDetail } from "@/http/apiManager.js"
import { onLoad } from "@dcloudio/uni-app"
import parseHtml from "@/util/html-parse.js"
const content = ref({})
onLoad((options) => {
$noticeDetail(options.id).then(({ bizData }) => {
content.value = bizData
})
})
</script>
<style lang="scss" scoped>
.content {
box-sizing: border-box;
padding: 0 50rpx 40rpx 50rpx;
.title {
// height: 60rpx;
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
font-size: 35rpx;
padding: 20rpx 0;
font-weight: 700;
color: rgba(0, 0, 0, 0.8);
}
.updatedAt {
padding: 0rpx 0 40rpx 0;
color: #969696;
font-size: 20rpx;
span {
&:nth-child(2) {
margin-left: 30rpx;
}
}
}
}
.content-text {
img {
width: 100% !important;
}
}
</style>