Browse Source

布局样式更新

lite
luyisha 3 years ago
parent
commit
8d287372c7
  1. 2
      src/App.vue
  2. 45
      src/views/cultrue/index.vue
  3. 2
      src/views/index.vue
  4. 10
      src/views/ty/index.vue

2
src/App.vue

@ -4,7 +4,7 @@
<div class="topnav"> <div class="topnav">
<div class="toptxt"> <div class="toptxt">
<div style="margin-left: 2%" class="topTitle"> <div style="margin-left: 2%" class="topTitle">
累计进馆人数 {{ sumYear_num }} 累计服务人数 {{ sumYear_num }}
</div> </div>
<img class="topImg" src="@/assets/index/top_title.png" /> <img class="topImg" src="@/assets/index/top_title.png" />
<div style="margin-right: 2%" class="topTitle"> {{ nowtime }} {{ curtime }} </div> <div style="margin-right: 2%" class="topTitle"> {{ nowtime }} {{ curtime }} </div>

45
src/views/cultrue/index.vue

@ -488,6 +488,11 @@ export default {
value: 24546, value: 24546,
}, },
]; ];
let valueColor = [
{ color1: '#15224C', color2: '#FF0042', unit: ' 人 '},
{ color1: '#15224C', color2: '#FED700', unit: ' 册 '},
{ color1: '#15224C', color2: '#00FEC5', unit: ' 册 '}
]
var libraryIcons = { var libraryIcons = {
'Lend': '/img/wh_right1.png', 'Lend': '/img/wh_right1.png',
'Still': '/img/wh_right2.png', 'Still': '/img/wh_right2.png',
@ -648,7 +653,7 @@ export default {
lineHeight: 30, lineHeight: 30,
fontSize: 16, fontSize: 16,
formatter: function (value, index) { formatter: function (value, index) {
return data[index].value + ' 册 ' return data[index].value + valueColor[index].unit
}, },
} }
}], }],
@ -676,27 +681,23 @@ export default {
// align: left, // align: left,
itemStyle: { itemStyle: {
normal: { normal: {
color: new echarts.graphic.LinearGradient( color: (params) => {
0, var index = params.dataIndex;
0, if (params.dataIndex >= valueColor.length) {
1, index = params.dataIndex - valueColor.length;
0, }
[{ return new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#A71A2B' color: valueColor[index].color1
}, },
{ {
offset: 0.7, offset: 0.8,
color: '#A71A2B' color: valueColor[index].color2
}, },{
{ offset: 1,
offset: 1, color: valueColor[index].color2
color: '#5EDEE5' }]);
} },
],
false
),
barBorderRadius: 10 barBorderRadius: 10
}, },
// color: '#A71A2B', // color: '#A71A2B',

2
src/views/index.vue

@ -96,7 +96,7 @@
</div> </div>
<!-- 右边 --> <!-- 右边 -->
<div class="rbox"> <div class="rbox">
<div class="rbox_title">各场馆实施实时进馆人数</div> <div class="rbox_title">各场馆实时进馆人数</div>
<div class="rbox_con"> <div class="rbox_con">
<!-- 各场馆实时人数 cg1 --> <!-- 各场馆实时人数 cg1 -->
<!-- v-for="(item, index) in 6" :key="index" --> <!-- v-for="(item, index) in 6" :key="index" -->

10
src/views/ty/index.vue

@ -677,7 +677,7 @@ export default {
top: 230, top: 230,
bottom: 240, bottom: 240,
right: 20, right: 20,
left: 36, left: 50,
textStyle: { textStyle: {
color: "#fff" color: "#fff"
} }
@ -730,6 +730,8 @@ export default {
fontSize: '12', fontSize: '12',
}, },
formatter: '{value}', formatter: '{value}',
align: 'left',
margin: 40
}, },
}, },
series: series, series: series,
@ -836,7 +838,7 @@ export default {
// //
initPlugin() { initPlugin() {
let _that = this; let _that = this;
const oWebControl0 = new window.WebControl({ let oWebControl0 = new window.WebControl({
szPluginContainer: 'camera0', // id szPluginContainer: 'camera0', // id
iServicePortStart: 15900, // 使 iServicePortStart: 15900, // 使
iServicePortEnd: 15900, iServicePortEnd: 15900,
@ -895,7 +897,7 @@ export default {
}, },
initPlugin2() { initPlugin2() {
let _that = this; let _that = this;
const oWebControl1 = new window.WebControl({ let oWebControl1 = new window.WebControl({
szPluginContainer: 'camera1', // id szPluginContainer: 'camera1', // id
iServicePortStart: 15900, // 使 iServicePortStart: 15900, // 使
iServicePortEnd: 15900, iServicePortEnd: 15900,
@ -956,7 +958,7 @@ export default {
}, },
initPlugin3() { initPlugin3() {
let _that = this; let _that = this;
const oWebControl2 = new window.WebControl({ let oWebControl2 = new window.WebControl({
szPluginContainer: 'camera2', // id szPluginContainer: 'camera2', // id
iServicePortStart: 15900, // 使 iServicePortStart: 15900, // 使
iServicePortEnd: 15900, iServicePortEnd: 15900,

Loading…
Cancel
Save