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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
mock.js
src/components/layout/header/mock.js
+2
-2
PicNews.vue
src/views/News/PicNews.vue
+21
-3
No files found.
src/components/layout/header/mock.js
View file @
f7962246
...
@@ -487,7 +487,7 @@ export const nav = [
...
@@ -487,7 +487,7 @@ export const nav = [
id
:
"5"
,
id
:
"5"
,
name
:
"资讯中心"
,
name
:
"资讯中心"
,
index
:
5
,
index
:
5
,
link
:
"
/News/index
"
,
link
:
""
,
children
:
[
children
:
[
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
...
@@ -498,7 +498,7 @@ export const nav = [
...
@@ -498,7 +498,7 @@ export const nav = [
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"图片资讯"
,
name
:
"图片资讯"
,
index
:
2
,
index
:
5
,
link
:
"/News/PicNews"
,
link
:
"/News/PicNews"
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
...
...
src/views/News/PicNews.vue
View file @
f7962246
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<div
class=
"picNews"
>
<div
class=
"picNews"
>
<div
class=
"picNews-top"
>
<div
class=
"picNews-top"
>
<cate
:father=
"tpzxCate"
></cate>
<cate
:father=
"tpzxCate"
></cate>
<div
class=
"container"
>
<ul
class=
"picNews-ul"
>
<ul
class=
"picNews-ul"
>
<li
v-for=
"(tmp, i) in 4"
:key=
"i"
>
<li
v-for=
"(tmp, i) in 4"
:key=
"i"
>
<div
class=
"picNews-li-tp"
>
<div
class=
"picNews-li-tp"
>
...
@@ -13,8 +14,19 @@
...
@@ -13,8 +14,19 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
</div>
<div
class=
"picNews-bottom"
>
<div
class=
"picNews-bottom"
>
<div
class=
"container"
>
<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
/>
<pages
/>
</div>
</div>
</div>
</div>
...
@@ -55,17 +67,20 @@ export default {
...
@@ -55,17 +67,20 @@ export default {
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.picNews
{
.picNews
{
.picNews-top
{
ul
{
@include
module-box;
padding
:
0
;
margin
:
0
;
}
.picNews-ul
{
.picNews-ul
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
margin-top
:
30px
;
li
{
li
{
width
:
216px
;
width
:
216px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
4px
15px
2px
rgba
(
4
,
64
,
141
,
0.08
);
box-shadow
:
0px
4px
15px
2px
rgba
(
4
,
64
,
141
,
0.08
);
border-radius
:
4px
;
border-radius
:
4px
;
margin-bottom
:
30px
;
img
{
img
{
width
:
100%
;
width
:
100%
;
}
}
...
@@ -79,6 +94,9 @@ export default {
...
@@ -79,6 +94,9 @@ export default {
}
}
}
}
}
}
.picNews-top
{
@include
module-box;
}
}
.picNews-bottom
{
.picNews-bottom
{
@include
module-box;
@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