调整车站颜色,功能栏宽度判断

This commit is contained in:
zyy 2020-07-28 17:55:07 +08:00
parent ac43981c7d
commit 6ca803d06d
3 changed files with 9 additions and 7 deletions

View File

@ -358,9 +358,9 @@ export default class Station extends Group {
this.centerControl && this.centerControl.setColor(this.style.Station.StationControl.lamp.greenColor);
this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.greenColor); // 文字颜色
if (this.style.Station.StationControl.disPlayNone) {
this.stationText && this.stationText.setStyle('textFill', 'green');
this.stationText && this.stationText.setStyle('textFill', '#1fdc1f');
if (this.model.subheadDisplay) { // 副标题
this.subheadText && this.subheadText.setStyle('textFill', 'green');
this.subheadText && this.subheadText.setStyle('textFill', '#1fdc1f');
}
}
}

View File

@ -220,7 +220,8 @@ export default {
this.setMode();
},
'$store.state.app.windowSizeCount': function() {
this.setWindowSize();
this.setWindowSize();
this.setPosition();
},
$route() {
this.initLoadData();
@ -506,8 +507,8 @@ export default {
if (menuTool) {
this.offset = (menuTool.offsetHeight || 0) + 15;
}
const buttonWidth = this.width - 1200;
if (menuBottom && buttonWidth < 550) {
const buttonWidth = this.width - 1200; // B box widht
if (menuBottom && buttonWidth < 780) {
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
}
if (menuButtonsBox) {

View File

@ -210,7 +210,8 @@ export default {
});
},
'$store.state.app.windowSizeCount': function() { //
this.setWindowSize();
this.setWindowSize();
this.setPosition();
},
$route() {
this.initLoadData();
@ -262,7 +263,7 @@ export default {
this.offset = (menuTool.offsetHeight || 0) + 15;
}
const buttonWidth = this.width - 1200;
if (menuBottom && buttonWidth < 550) {
if (menuBottom && buttonWidth < 780) {
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
}
});