第一次上传
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="" style="padding: 20rpx;">
|
||||
<view class=""
|
||||
style=" font-size: 40rpx; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; ">
|
||||
{{comNotice?.title}}
|
||||
</view>
|
||||
<view class=""
|
||||
style=" margin-top: 20rpx; display: flex; align-items: center; justify-content: space-between;">
|
||||
<view class="" style="display: flex; align-items: center;">
|
||||
|
||||
</view>
|
||||
<view class="" style="display: flex; align-items: center;">
|
||||
<!-- <img :src="Service.GetIconImg('/static/article/see.png')" style="width: 28rpx; height: 26rpx;"
|
||||
alt="" />
|
||||
<text style="font-size: 24rpx; margin-left: 10rpx; color: #6B7280; ">2025</text> -->
|
||||
<img :src="Service.GetIconImg('/static/article/date.png')" style="width: 25rpx; height: 25rpx;"
|
||||
alt="" />
|
||||
<text style="font-size: 24rpx; margin-left: 10rpx; color: #6B7280; ">{{Service.formatDate(comNotice.addTime,2)}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="" style="margin-top: 30rpx;">
|
||||
{{comNotice.remark}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onShow, onLoad } from "@dcloudio/uni-app";
|
||||
import { Service } from "@/Service/Service"
|
||||
import { vpCommunityService } from '@/Service/vp/vpCommunityService'
|
||||
import { ref } from "vue";
|
||||
|
||||
interface notice{
|
||||
addTime:string
|
||||
noticeId:string
|
||||
remark:string
|
||||
sign:string
|
||||
title:string
|
||||
}
|
||||
|
||||
let noticeId = ref('')
|
||||
let comNotice=ref<notice>({
|
||||
addTime:'',
|
||||
noticeId:'',
|
||||
remark:'',
|
||||
sign:'',
|
||||
title:''
|
||||
})
|
||||
onLoad((data : any) => {
|
||||
noticeId.value=data.noticeId
|
||||
getData()
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
|
||||
});
|
||||
|
||||
const getData=()=>{
|
||||
vpCommunityService.GetCommunityNoticeInfo(noticeId.value).then(res=>{
|
||||
comNotice.value=res.data.noticeInfo
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
Reference in New Issue
Block a user