Commit 6e441664 by 段启岩

添加消息颜色

parent a8f37a4a
...@@ -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;
}
} }
} }
......
...@@ -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
} }
}, },
} }
......
...@@ -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
} }
}, },
} }
......
...@@ -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
} }
}, },
} }
......
...@@ -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
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment