Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
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
吴迪
gs1
Commits
f7962246
Commit
f7962246
authored
Oct 19, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯中心下图片资讯切图完成
parent
20ce2243
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
16 deletions
+34
-16
mock.js
src/components/layout/header/mock.js
+2
-2
PicNews.vue
src/views/News/PicNews.vue
+32
-14
No files found.
src/components/layout/header/mock.js
View file @
f7962246
...
...
@@ -487,7 +487,7 @@ export const nav = [
id
:
"5"
,
name
:
"资讯中心"
,
index
:
5
,
link
:
"
/News/index
"
,
link
:
""
,
children
:
[
{
id
:
uuid
(
"gs_nav"
),
...
...
@@ -498,7 +498,7 @@ export const nav = [
{
id
:
uuid
(
"gs_nav"
),
name
:
"图片资讯"
,
index
:
2
,
index
:
5
,
link
:
"/News/PicNews"
,
breadcrumb
:
[
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
...
...
src/views/News/PicNews.vue
View file @
f7962246
...
...
@@ -2,19 +2,31 @@
<div
class=
"picNews"
>
<div
class=
"picNews-top"
>
<cate
:father=
"tpzxCate"
></cate>
<ul
class=
"picNews-ul"
>
<li
v-for=
"(tmp, i) in 4"
:key=
"i"
>
<div
class=
"picNews-li-tp"
>
<img
src=
"../../assets/image/news/tpzx-tp1.jpg"
alt=
""
/>
</div>
<div
class=
"picNews-li-bt"
>
中国物品编码中心应邀出席食品安全智慧监管研讨会
</div>
</li>
</ul>
<div
class=
"container"
>
<ul
class=
"picNews-ul"
>
<li
v-for=
"(tmp, i) in 4"
:key=
"i"
>
<div
class=
"picNews-li-tp"
>
<img
src=
"../../assets/image/news/tpzx-tp1.jpg"
alt=
""
/>
</div>
<div
class=
"picNews-li-bt"
>
中国物品编码中心应邀出席食品安全智慧监管研讨会
</div>
</li>
</ul>
</div>
</div>
<div
class=
"picNews-bottom"
>
<div
class=
"container"
>
<ul
class=
"picNews-ul"
>
<li
v-for=
"(tmp, i) in 12"
:key=
"i"
>
<div
class=
"picNews-li-tp"
>
<img
src=
"../../assets/image/news/tpzx-tp1.jpg"
alt=
""
/>
</div>
<div
class=
"picNews-li-bt"
>
中国物品编码中心应邀出席食品安全智慧监管研讨会
</div>
</li>
</ul>
<pages
/>
</div>
</div>
...
...
@@ -55,17 +67,20 @@ export default {
</
style
>
<
style
lang=
"scss"
scoped
>
.picNews
{
.picNews-top
{
@include
module-box;
.picNews-ul
{
ul
{
padding
:
0
;
margin
:
0
;
}
.picNews-ul
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
margin-top
:
30px
;
li
{
width
:
216px
;
background
:
#ffffff
;
box-shadow
:
0px
4px
15px
2px
rgba
(
4
,
64
,
141
,
0.08
);
border-radius
:
4px
;
margin-bottom
:
30px
;
img
{
width
:
100%
;
}
...
...
@@ -79,6 +94,9 @@ export default {
}
}
}
.picNews-top
{
@include
module-box;
}
.picNews-bottom
{
@include
module-box;
...
...
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