Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
fdaa6d48
Commit
fdaa6d48
authored
Oct 26, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
90d83f7b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
9 deletions
+17
-9
index.vue
src/components/HotNews/index.vue
+4
-3
index.vue
src/components/PolicyCard/index.vue
+1
-1
index.vue
src/views/News/NewsList/index.vue
+1
-1
index.vue
src/views/News/index.vue
+5
-2
index.vue
src/views/PolicySupport/index.vue
+6
-2
No files found.
src/components/HotNews/index.vue
View file @
fdaa6d48
...
@@ -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
{
...
...
src/components/PolicyCard/index.vue
View file @
fdaa6d48
...
@@ -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'
)
}}
作者:
{{
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'
)
}}
作者:
{{
info
.
writer
}}
</div>
</div>
</div>
...
...
src/views/News/NewsList/index.vue
View file @
fdaa6d48
...
@@ -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>
...
...
src/views/News/index.vue
View file @
fdaa6d48
...
@@ -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=
"load
ing"
@
refresh=
"onRefresh"
>
<van-pull-refresh
class=
"divide-y"
v-model=
"refresh
ing"
@
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
src/views/PolicySupport/index.vue
View file @
fdaa6d48
<
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=
"load
ing"
@
refresh=
"onRefresh"
>
<van-pull-refresh
class=
"divide-y"
v-model=
"refresh
ing"
@
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
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