Commit 007a10c0 authored by chenqikuai's avatar chenqikuai

Merge branch 'dev' of gitlab.33.cn:chenqikuai/fns_front_2 into dev

parents 0484b0be c1fe4455
......@@ -2,7 +2,7 @@
<nav-bar :title="title" :style="{ 'background-color':'#F7F7FA'}" />
<div class=" px-5 py-8 overflow-hidden break-all">
<p class=" text-base text-gray-800 font-semibold">{{ info.title }}</p>
<p class=" text-xs text-gray-400 mt-5 ">发布时间:{{ $format(info.created_at, 'YYYY-MM-DD') }} <span v-if="title === '政策详情'" class="inline-block ml-8">作者:{{ info.writer }}</span> </p>
<p class=" text-xs text-gray-400 mt-5 ">发布时间:{{ $format(info.update_at, 'YYYY-MM-DD') }} <span v-if="title === '政策详情'" class="inline-block ml-8">作者:{{ info.writer }}</span> </p>
<div class=" text-sm text-gray-800 text-justify mt-5" v-html="info.content"></div>
</div>
</template>
......
......@@ -32,6 +32,7 @@ export default defineComponent({
showResult.value = visible
request(val).then(res => {
lists.value = res.data.items
lists.value.sort((a: {update_at: number}, b: {update_at: number}) => b.update_at - a.update_at)
if (lists.value.length > 0) {
isEmpty.value = false
}
......
......@@ -2,7 +2,7 @@
<div class=" text-center">
<nav-bar title="消息" :style="{ 'background-color':'#F7F7FA'}"/>
<p class=" text-gray-800 text-sm font-semibold mt-7">{{ info.title }}</p>
<p class=" text-gray-400 text-xs mt-3">{{ $format(info.created_at, 'YYYY-MM-DD HH:mm:ss') }}</p>
<p class=" text-gray-400 text-xs mt-3">{{ $format(info.update_at, 'YYYY-MM-DD HH:mm:ss') }}</p>
<p class=" text-gray-800 text-sm text-justify mx-5 mt-6 overflow-hidden break-all">{{ info.content }}</p>
</div>
</template>
......@@ -19,7 +19,6 @@ export default defineComponent({
const info = ref({} as any)
info.value = JSON.parse(route.query.info as string)
return {
info
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment