Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common-templete
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
汤强勇
common-templete
Commits
4f1b2b2d
Commit
4f1b2b2d
authored
Nov 08, 2018
by
汤强勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息列表点击弹窗
parent
30955aad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
index.vue
src/components/Header/index.vue
+3
-0
message.vue
src/components/Header/message.vue
+15
-2
No files found.
src/components/Header/index.vue
View file @
4f1b2b2d
...
...
@@ -253,6 +253,9 @@
overflow
:
hidden
;
overflow-y
:
scroll
;
}
&
.el-message-box
{
width
:
auto
;
}
.el-notification__group
{
width
:
100%
;
}
...
...
src/components/Header/message.vue
View file @
4f1b2b2d
...
...
@@ -5,7 +5,7 @@
<span
class=
"pullDownIcon"
style=
"display: none"
></span><span
class=
"pullDownLabel"
>
释放刷新
</span>
</div>
<ul
id=
"thelist"
>
<li
v-for=
"(item, index) in items"
class=
"message-item"
:key=
"index"
>
<li
v-for=
"(item, index) in items"
class=
"message-item"
:key=
"index"
@
click=
"openMessageContent(item)"
>
<div
class=
"message-item-title"
>
{{
item
.
title
}}
</div>
<div
class=
"message-desc"
>
{{
item
.
content_text
}}
</div>
<div
class=
"message-desc"
>
{{
item
.
push_time
|
fomatDate
}}
</div>
...
...
@@ -144,6 +144,13 @@ export default {
pullUpAction
()
{
this
.
getListDataFromNet
()
},
openMessageContent
(
item
)
{
this
.
$alert
(
`
${
item
.
content
}
`
,
''
,
{
dangerouslyUseHTMLString
:
true
,
customClass
:
'message-panel'
})
}
}
}
...
...
@@ -153,12 +160,18 @@ export default {
#wrapper
{
width
:
100%
;
position
:
absolute
;
top
:
0
;
top
:
18px
;
bottom
:
0
;
}
#pullDown
,
#pullUp
{
border-bottom
:
none
;
text-align
:
center
;
height
:
40px
;
box-sizing
:
border-box
;
line-height
:
1
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
#pullUp
{
...
...
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