|
|
@ -142,7 +142,7 @@ import { numGrow,ecMaxVal,numberGrow} from '@/utils/comm'; |
|
|
|
|
|
|
|
|
// 引入api |
|
|
// 引入api |
|
|
import * as homeApi from '@/api/home' |
|
|
import * as homeApi from '@/api/home' |
|
|
|
|
|
let ws = null; |
|
|
export default { |
|
|
export default { |
|
|
name: 'HomeView', |
|
|
name: 'HomeView', |
|
|
data() { |
|
|
data() { |
|
|
@ -442,7 +442,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
data: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], |
|
|
data: [1, 1, 1, 1, 1, 1, 1, 1], |
|
|
type: 'pictorialBar', |
|
|
type: 'pictorialBar', |
|
|
barMaxWidth: '15', |
|
|
barMaxWidth: '15', |
|
|
symbol: 'circle', |
|
|
symbol: 'circle', |
|
|
@ -489,7 +489,8 @@ export default { |
|
|
|
|
|
|
|
|
option = { |
|
|
option = { |
|
|
|
|
|
|
|
|
color: ["#F2A0CE", "#0780e2", "#FF6504", "#01FE00", "#00FFFF", "#fdff00"], |
|
|
// color: ["#F2A0CE", "#0780e2", "#FF6504", "#01FE00", "#00FFFF", "#fdff00"], |
|
|
|
|
|
color: ['#ff9acc', '#6666ff', '#a9eeff', '#02ff00','#00ffff', '#fdff00'], |
|
|
|
|
|
|
|
|
series: [ |
|
|
series: [ |
|
|
{ |
|
|
{ |
|
|
@ -700,12 +701,12 @@ export default { |
|
|
getsckdata(){ |
|
|
getsckdata(){ |
|
|
let that = this; |
|
|
let that = this; |
|
|
// websocket |
|
|
// websocket |
|
|
const ws = new WebSocket(publicConfig.WS_URL_ZL); |
|
|
ws = new WebSocket(publicConfig.WS_URL_ZL); |
|
|
ws.onopen = function() { |
|
|
ws.onopen = function() { |
|
|
console.log("ws connected success!") |
|
|
// console.log("ws connected success!") |
|
|
}; |
|
|
}; |
|
|
ws.onclose = function(event) { |
|
|
ws.onclose = function(event) { |
|
|
console.log('WebSocket连接已关闭'); |
|
|
// console.log('WebSocket连接已关闭'); |
|
|
}; |
|
|
}; |
|
|
ws.onmessage = (e)=> { |
|
|
ws.onmessage = (e)=> { |
|
|
var jstr = JSON.parse(e.data); |
|
|
var jstr = JSON.parse(e.data); |
|
|
@ -822,6 +823,9 @@ export default { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
beforeUnmount(){ |
|
|
|
|
|
ws.close(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -843,7 +847,9 @@ export default { |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
left: 0; |
|
|
left: 0; |
|
|
top: 0; |
|
|
top: 0; |
|
|
background-color: #080A25; |
|
|
/* background-color: #080A25; */ |
|
|
|
|
|
background-color: #032461; |
|
|
|
|
|
box-shadow: 0px 3px 4px 0px rgba(255, 255, 255, 0.1); |
|
|
margin-bottom: 30rpx; |
|
|
margin-bottom: 30rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -942,6 +948,13 @@ export default { |
|
|
width: 20%; |
|
|
width: 20%; |
|
|
height: 3.2rem; |
|
|
height: 3.2rem; |
|
|
float: left; |
|
|
float: left; |
|
|
|
|
|
width: 5rem; |
|
|
|
|
|
height: 4rem; |
|
|
|
|
|
} |
|
|
|
|
|
.numbox .numicon img{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
margin-top: 0.7rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.numbox .numdiv { |
|
|
.numbox .numdiv { |
|
|
@ -990,11 +1003,11 @@ export default { |
|
|
.klqs .klqs_bg { |
|
|
.klqs .klqs_bg { |
|
|
float: left; |
|
|
float: left; |
|
|
/* width: 80%; */ |
|
|
/* width: 80%; */ |
|
|
margin-left: 4rem; |
|
|
margin-left: 5rem; |
|
|
/* padding-left: 6.4rem; */ |
|
|
/* padding-left: 6.4rem; */ |
|
|
line-height: 2.8rem; |
|
|
line-height: 2.8rem; |
|
|
font-size: 1.1rem; |
|
|
font-size: 1.1rem; |
|
|
color: gray; |
|
|
color: #999; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.klqs .klbtn { |
|
|
.klqs .klbtn { |
|
|
@ -1117,10 +1130,10 @@ export default { |
|
|
background-size: 100% 100%; |
|
|
background-size: 100% 100%; |
|
|
background-position: -1.04rem 0.2rem; |
|
|
background-position: -1.04rem 0.2rem; |
|
|
height: 3.2rem; |
|
|
height: 3.2rem; |
|
|
line-height: 0rem; |
|
|
line-height: 3.5rem; |
|
|
padding-left: 4.6rem; |
|
|
padding-left: 5rem; |
|
|
font-size: 1.1rem; |
|
|
font-size: 1.1rem; |
|
|
color: gray; |
|
|
color: #999; |
|
|
padding-bottom: 1rem; |
|
|
padding-bottom: 1rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1139,9 +1152,9 @@ export default { |
|
|
height: 3.8rem; |
|
|
height: 3.8rem; |
|
|
line-height: 2.8rem; |
|
|
line-height: 2.8rem; |
|
|
background-position: -1.04rem 0.2rem; |
|
|
background-position: -1.04rem 0.2rem; |
|
|
padding-left: 4.6rem; |
|
|
padding-left: 5.5rem; |
|
|
font-size: 1.1rem; |
|
|
font-size: 1.1rem; |
|
|
color: gray; |
|
|
color: #999; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.pcgrs .pcg_item { |
|
|
.pcgrs .pcg_item { |
|
|
@ -1167,6 +1180,7 @@ export default { |
|
|
margin-top: 1.6rem; |
|
|
margin-top: 1.6rem; |
|
|
margin-right: 1.1rem; |
|
|
margin-right: 1.1rem; |
|
|
/* padding-right: 0.9rem; */ |
|
|
/* padding-right: 0.9rem; */ |
|
|
|
|
|
color: #3E96F7; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.pcgrs .pcg_item .pcval { |
|
|
.pcgrs .pcg_item .pcval { |
|
|
@ -1222,7 +1236,8 @@ export default { |
|
|
font-size: 0.2rem; |
|
|
font-size: 0.2rem; |
|
|
} |
|
|
} |
|
|
.pcgrs .pcg_item .rbrate0 { |
|
|
.pcgrs .pcg_item .rbrate0 { |
|
|
width: 32%; |
|
|
/* width: 32%; */ |
|
|
|
|
|
width: 3.4rem; |
|
|
height: 3.4rem; |
|
|
height: 3.4rem; |
|
|
line-height: 3.4rem; |
|
|
line-height: 3.4rem; |
|
|
display: block; |
|
|
display: block; |
|
|
|