Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
8b6455f5
Commit
8b6455f5
authored
Dec 22, 2023
by
shilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
政策列表优化
parent
2019eb50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
list-policy-item.vue
src/components/list/list-policy-item.vue
+1
-1
IndustryPolicy.vue
src/views/industry/IndustryPolicy.vue
+16
-10
No files found.
src/components/list/list-policy-item.vue
View file @
8b6455f5
...
...
@@ -7,7 +7,7 @@
<p
class=
"mb-[16px] text-lg font-semibold text-[#1a1a1a]"
>
{{
detail
.
title
}}
</p>
<div
class=
"mb-[17px] flex h-[22px] flex-wrap overflow-hidden"
>
<span
v-for=
"item in detail.industryList.split(',')"
v-for=
"item in detail.industryList
?
.split(',')"
:key=
"item"
class=
"mb-2 mr-[13px] bg-[rgba(44,104,255,0.08)] px-3 text-sm leading-[22px] text-[#2C68FF]"
>
...
...
src/views/industry/IndustryPolicy.vue
View file @
8b6455f5
...
...
@@ -13,17 +13,23 @@
<div
class=
"relative flex h-[17px] items-center justify-center"
>
<div
class=
"title-bottom-bg h-1 w-[102px] rounded-[30px]"
></div>
</div>
<div
v-for=
"item in datas"
:key=
"item.id"
class=
"mb-5"
>
<PolicyListItemView
:detail=
"item"
@
to-detail=
"handleDetail(RouteName.industryPolicyDetail, item)"
></PolicyListItemView>
<template
v-if=
"datas.length"
>
<div
v-for=
"item in datas"
:key=
"item.id"
class=
"mb-5"
>
<PolicyListItemView
:detail=
"item"
@
to-detail=
"handleDetail(RouteName.industryPolicyDetail, item)"
></PolicyListItemView>
</div>
<ListPagination
v-model:current-page=
"pageNum"
v-model:page-size=
"pageSize"
:total=
"totalCount"
></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>
<ListPagination
v-model:current-page=
"pageNum"
v-model:page-size=
"pageSize"
:total=
"totalCount"
></ListPagination>
</div>
</template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment