Commit fdaa6d48 authored by xhx's avatar xhx

fix

parent 90d83f7b
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<div class="box1 flex-col flex-grow justify-between overflow-hidden"> <div class="box1 flex-col flex-grow justify-between overflow-hidden">
<span class="info8">{{ info?.title }}</span> <span class="info8">{{ info?.title }}</span>
<span class="info10">{{ info?.desc }}</span> <span class="info10">{{ info?.desc }}</span>
<div class="layer4 flex pr-20"> <div class="layer4 flex pr-12">
<span class="info9">{{ info?.writer }}</span> <span class="info9 mr-2">{{ info?.writer }}</span>
<span class="word24">{{ $format(info?.created_at, 'YYYY-MM-DD') }}</span> <span class="word24 flex-shrink-0">{{ $format(info?.created_at, 'YYYY-MM-DD') }}</span>
</div> </div>
</div> </div>
<div class="box2 ml-4 flex-shrink-0"> <div class="box2 ml-4 flex-shrink-0">
...@@ -96,6 +96,7 @@ export default defineComponent({ ...@@ -96,6 +96,7 @@ export default defineComponent({
text-align: left; text-align: left;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap
} }
.word24 { .word24 {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class=" text-sm text-gray-800 text-justify pt-3 news-info">{{ info.desc }}</div> <div class=" text-sm text-gray-800 text-justify pt-3 news-info">{{ info.desc }}</div>
<div <div
v-if="showImg" v-if="showImg"
class=" h-32 bg-app-blue mt-2 bg-cover bg-center bg-no-repeat" class=" h-32 bg-gray-200 mt-2 bg-cover bg-center bg-no-repeat"
:style="{'background-image': `url('${url}')`}"></div> :style="{'background-image': `url('${url}')`}"></div>
<div class=" text-xs text-gray-400 py-5 border-b border-red border-solid">发布时间:{{ $format(info.update_at, 'YYYY-MM-DD') }} &nbsp;&nbsp;&nbsp;作者: {{ info.writer }}</div> <div class=" text-xs text-gray-400 py-5 border-b border-red border-solid">发布时间:{{ $format(info.update_at, 'YYYY-MM-DD') }} &nbsp;&nbsp;&nbsp;作者: {{ info.writer }}</div>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class=" text-xs text-gray-800 pt-3 news-info">{{ info.desc }}</div> <div class=" text-xs text-gray-800 pt-3 news-info">{{ info.desc }}</div>
<div <div
v-if="showImg" v-if="showImg"
class=" h-32 bg-app-blue mt-2 bg-cover bg-center bg-no-repeat" class=" h-32 bg-gray-200 mt-2 bg-cover bg-center bg-no-repeat"
:style="{'background-image': `url('${url}')`}"></div> :style="{'background-image': `url('${url}')`}"></div>
<div class=" text-xs text-gray-400 pt-4 tracking-wide">发布时间:{{ $format(info.update_at, 'YYYY-MM-DD') }}</div> <div class=" text-xs text-gray-400 pt-4 tracking-wide">发布时间:{{ $format(info.update_at, 'YYYY-MM-DD') }}</div>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<nav-bar title="新闻动态" :style="{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: { type: 'news' }}"/> <nav-bar title="新闻动态" :style="{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: { type: 'news' }}"/>
<div class=" mx-5 pt-3"> <div class=" mx-5 pt-3">
<van-pull-refresh v-model="loading" @refresh="onRefresh"> <van-pull-refresh class="divide-y" v-model="refreshing" @refresh="onRefresh">
<van-list <van-list
v-model:loading="loading" v-model:loading="loading"
:finished="finished" :finished="finished"
...@@ -87,5 +87,7 @@ export default defineComponent({ ...@@ -87,5 +87,7 @@ export default defineComponent({
</script> </script>
<style scoped> <style scoped>
.divide-y {
min-height: calc(100vh - 46px);
}
</style> </style>
\ No newline at end of file
<template> <template>
<div> <div>
<nav-bar title="政策支持" :style="{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: {type: 'policy'}}" /> <nav-bar title="政策支持" :style="{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: {type: 'policy'}}" />
<div class=" mx-5 pt-3 divide-y"> <div class=" mx-5 pt-3">
<van-pull-refresh v-model="loading" @refresh="onRefresh"> <van-pull-refresh class="divide-y" v-model="refreshing" @refresh="onRefresh">
<van-list <van-list
v-model:loading="loading" v-model:loading="loading"
:finished="finished" :finished="finished"
...@@ -89,4 +89,7 @@ export default defineComponent({ ...@@ -89,4 +89,7 @@ export default defineComponent({
<style scoped> <style scoped>
.divide-y {
min-height: calc(100vh - 46px);
}
</style> </style>
\ No newline at end of file
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