Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
6e441664
Commit
6e441664
authored
Feb 23, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加消息颜色
parent
a8f37a4a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
components/pc/noticeCard.vue
+3
-3
pages/personal-center/message/comment.vue
+4
-2
pages/personal-center/message/follow.vue
+4
-2
pages/personal-center/message/notice.vue
+4
-2
pages/personal-center/message/praise.vue
+4
-2
No files found.
components/pc/noticeCard.vue
View file @
6e441664
...
@@ -214,13 +214,13 @@
...
@@ -214,13 +214,13 @@
}
}
.info2
{
.info2
{
a
{
color
:
#00AAE6
!important
;
}
margin-top
:
18
*
$
length
;
margin-top
:
18
*
$
length
;
@include
fontStyle
(
12
,
20
,
500
,
#333
,
left
);
@include
fontStyle
(
12
,
20
,
500
,
#333
,
left
);
height
:auto
;
height
:auto
;
word-break
:
break-word
;
word-break
:
break-word
;
a
{
color
:
#00AAE6
;
}
}
}
}
}
...
...
pages/personal-center/message/comment.vue
View file @
6e441664
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
data
(){
data
(){
return
{
return
{
message
:[],
message
:[],
pages
:
1
pages
:
1
,
currentPage
:
1
}
}
},
},
components
:{
components
:{
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
},
},
sockets
:
{
sockets
:
{
push_event
(
data
)
{
push_event
(
data
)
{
if
(
this
.
pages
===
1
)
{
if
(
this
.
currentPage
===
1
)
{
this
.
dataGetMessages
(
1
)
this
.
dataGetMessages
(
1
)
}
}
}
}
...
@@ -67,6 +68,7 @@
...
@@ -67,6 +68,7 @@
changePage
(
currentPage
){
changePage
(
currentPage
){
//返回页数 请求新的数据
//返回页数 请求新的数据
this
.
dataGetMessages
(
currentPage
)
this
.
dataGetMessages
(
currentPage
)
this
.
currentPage
=
currentPage
}
}
},
},
}
}
...
...
pages/personal-center/message/follow.vue
View file @
6e441664
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
data
(){
data
(){
return
{
return
{
message
:[],
message
:[],
pages
:
1
pages
:
1
,
currentPage
:
1
}
}
},
},
components
:{
components
:{
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
},
},
sockets
:
{
sockets
:
{
push_event
(
data
)
{
push_event
(
data
)
{
if
(
this
.
pages
===
1
)
{
if
(
this
.
currentPage
===
1
)
{
this
.
dataGetMessages
(
1
)
this
.
dataGetMessages
(
1
)
}
}
}
}
...
@@ -67,6 +68,7 @@
...
@@ -67,6 +68,7 @@
changePage
(
currentPage
){
changePage
(
currentPage
){
//返回页数 请求新的数据
//返回页数 请求新的数据
this
.
dataGetMessages
(
currentPage
)
this
.
dataGetMessages
(
currentPage
)
this
.
currentPage
=
currentPage
}
}
},
},
}
}
...
...
pages/personal-center/message/notice.vue
View file @
6e441664
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
data
(){
data
(){
return
{
return
{
message
:[],
message
:[],
pages
:
1
pages
:
1
,
currentPage
:
1
}
}
},
},
components
:{
components
:{
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
},
},
sockets
:
{
sockets
:
{
push_event
(
data
)
{
push_event
(
data
)
{
if
(
this
.
pages
===
1
)
{
if
(
this
.
currentPage
===
1
)
{
this
.
dataGetMessages
(
1
)
this
.
dataGetMessages
(
1
)
}
}
}
}
...
@@ -67,6 +68,7 @@
...
@@ -67,6 +68,7 @@
changePage
(
currentPage
){
changePage
(
currentPage
){
//返回页数 请求新的数据
//返回页数 请求新的数据
this
.
dataGetMessages
(
currentPage
)
this
.
dataGetMessages
(
currentPage
)
this
.
currentPage
=
currentPage
}
}
},
},
}
}
...
...
pages/personal-center/message/praise.vue
View file @
6e441664
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
data
(){
data
(){
return
{
return
{
message
:[],
message
:[],
pages
:
1
pages
:
1
,
currentPage
:
1
}
}
},
},
components
:{
components
:{
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
},
},
sockets
:
{
sockets
:
{
push_event
(
data
)
{
push_event
(
data
)
{
if
(
this
.
pages
===
1
)
{
if
(
this
.
currentPage
===
1
)
{
this
.
dataGetMessages
(
1
)
this
.
dataGetMessages
(
1
)
}
}
}
}
...
@@ -67,6 +68,7 @@
...
@@ -67,6 +68,7 @@
changePage
(
currentPage
){
changePage
(
currentPage
){
//返回页数 请求新的数据
//返回页数 请求新的数据
this
.
dataGetMessages
(
currentPage
)
this
.
dataGetMessages
(
currentPage
)
this
.
currentPage
=
currentPage
}
}
},
},
}
}
...
...
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