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
6be16064
Commit
6be16064
authored
Dec 20, 2024
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式处理
parent
a35c02bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
notice.vue
src/views/Home/comps/notice.vue
+1
-1
PicNews.vue
src/views/News/PicNews.vue
+19
-13
No files found.
src/views/Home/comps/notice.vue
View file @
6be16064
<
template
>
<
template
>
<div
class=
"notice mask"
v-if=
"
show
"
>
<div
class=
"notice mask"
v-if=
"
false
"
>
<div
class=
"notice-kj"
>
<div
class=
"notice-kj"
>
<img
<img
src=
"../../../assets/image/home/notice-close.png"
src=
"../../../assets/image/home/notice-close.png"
...
...
src/views/News/PicNews.vue
View file @
6be16064
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<a
:href=
"tmp.href"
@
click
.
prevent=
"InfoFn(tmp.articleId, tmp.href)"
v-html=
"tmp.title"
target=
"_blank"
></a>
<a
:href=
"tmp.href"
@
click
.
prevent=
"InfoFn(tmp.articleId, tmp.href)"
v-html=
"tmp.title"
target=
"_blank"
></a>
</div>
</div>
</li>
</li>
<li
style=
" height: 0;margin:0"
v-for=
"(i,a) in 4"
:key=
"'a'+a"
></li>
<li
style=
" height: 0;margin:0
;border:0;
"
v-for=
"(i,a) in 4"
:key=
"'a'+a"
></li>
</ul>
</ul>
<pages
:total=
"tableResult.totalCount"
:currPage=
"tableResult.currPage"
:pageSize=
"tableResult.pageSize"
@
getLimit=
'initListFn'
/>
<pages
:total=
"tableResult.totalCount"
:currPage=
"tableResult.currPage"
:pageSize=
"tableResult.pageSize"
@
getLimit=
'initListFn'
/>
</div>
</div>
...
@@ -82,14 +82,14 @@ export default {
...
@@ -82,14 +82,14 @@ export default {
// }else{
// }else{
item
.
href
=
`/News/msg?id=
${
item
.
articleId
}
`
item
.
href
=
`/News/msg?id=
${
item
.
articleId
}
`
// }
// }
});
});
}
}
},
},
// 图片资讯列表TOP4
// 图片资讯列表TOP4
async
pictureTop4
()
{
async
pictureTop4
()
{
const
listRes
=
const
listRes
=
await
this
.
$api
.
news
.
pictureTop4
();
await
this
.
$api
.
news
.
pictureTop4
();
const
{
returnCode
,
data
}
=
listRes
;
const
{
returnCode
,
data
}
=
listRes
;
...
@@ -101,10 +101,10 @@ export default {
...
@@ -101,10 +101,10 @@ export default {
// }else{
// }else{
item
.
href
=
`/News/msg?id=
${
item
.
articleId
}
`
item
.
href
=
`/News/msg?id=
${
item
.
articleId
}
`
// }
// }
});
});
}
}
},
},
// 详情
// 详情
getInfo
(
id
,
directpath
){
getInfo
(
id
,
directpath
){
...
@@ -115,11 +115,11 @@ export default {
...
@@ -115,11 +115,11 @@ export default {
}
}
];
];
this
.
setMatche
(
matche
);
this
.
setMatche
(
matche
);
this
.
clickDetailSave
(
id
,
directpath
)
this
.
clickDetailSave
(
id
,
directpath
)
},
},
// 记录点击
// 记录点击
async
clickDetailSave
(
id
,
directpath
)
{
async
clickDetailSave
(
id
,
directpath
)
{
const
query
=
{
const
query
=
{
...
@@ -206,17 +206,19 @@ export default {
...
@@ -206,17 +206,19 @@ export default {
}
}
}
}
.picNews-ul
{
.picNews-ul
{
margin-top
:
30px
;
margin-top
:
30px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
list-style
:
none
;
list-style
:
none
;
li
{
li
{
overflow
:
hidden
;
width
:
216px
;
width
:
216px
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
4px
;
border-radius
:
4px
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
border
:
1px
solid
#dddddd
;
cursor
:
pointer
;
cursor
:
pointer
;
list-style
:
none
;
list-style
:
none
;
&:hover{
&:hover{
...
@@ -228,11 +230,16 @@ export default {
...
@@ -228,11 +230,16 @@ export default {
.picNews-li-bt
{
.picNews-li-bt
{
width
:
90%
;
width
:
90%
;
margin
:
0
auto
;
margin
:
0
auto
;
text-align
:
center
;
//
text-align
:
center
;
color
:
#414345
;
color
:
#414345
;
font-size
:
14px
;
font-size
:
14px
;
padding
:
14px
0
;
padding
:
14px
0
;
a{
a{
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
color
:
#414345
;
color
:
#414345
;
&:hover{
&:hover{
text-decoration
:
none
;
text-decoration
:
none
;
...
@@ -261,4 +268,4 @@ export default {
...
@@ -261,4 +268,4 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
}
}
</
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