Commit 8b6455f5 authored by shilei's avatar shilei

政策列表优化

parent 2019eb50
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<p class="mb-[16px] text-lg font-semibold text-[#1a1a1a]">{{ detail.title }}</p> <p class="mb-[16px] text-lg font-semibold text-[#1a1a1a]">{{ detail.title }}</p>
<div class="mb-[17px] flex h-[22px] flex-wrap overflow-hidden"> <div class="mb-[17px] flex h-[22px] flex-wrap overflow-hidden">
<span <span
v-for="item in detail.industryList.split(',')" v-for="item in detail.industryList?.split(',')"
:key="item" :key="item"
class="mb-2 mr-[13px] bg-[rgba(44,104,255,0.08)] px-3 text-sm leading-[22px] text-[#2C68FF]" class="mb-2 mr-[13px] bg-[rgba(44,104,255,0.08)] px-3 text-sm leading-[22px] text-[#2C68FF]"
> >
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<div class="relative flex h-[17px] items-center justify-center"> <div class="relative flex h-[17px] items-center justify-center">
<div class="title-bottom-bg h-1 w-[102px] rounded-[30px]"></div> <div class="title-bottom-bg h-1 w-[102px] rounded-[30px]"></div>
</div> </div>
<template v-if="datas.length">
<div v-for="item in datas" :key="item.id" class="mb-5"> <div v-for="item in datas" :key="item.id" class="mb-5">
<PolicyListItemView <PolicyListItemView
:detail="item" :detail="item"
...@@ -24,6 +25,11 @@ ...@@ -24,6 +25,11 @@
v-model:page-size="pageSize" v-model:page-size="pageSize"
:total="totalCount" :total="totalCount"
></ListPagination> ></ListPagination>
</template>
<div v-else class="flex flex-col items-center justify-center py-[100px]">
<img class="h-[200px] w-[200px]" src="@/assets/images/no-data.png" />
<p class="mt-5 text-xl text-[#cccccc]">暂无数据</p>
</div>
</div> </div>
</template> </template>
......
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