北交大 客流数据 代码调整

This commit is contained in:
joylink_cuiweidong 2020-12-22 18:26:31 +08:00
parent 7f23431ebd
commit d5fcc4bd36
3 changed files with 5 additions and 5 deletions

View File

@ -93,9 +93,9 @@ class ESolidStand extends Group {
handlePassagerColor(num) { handlePassagerColor(num) {
if (num && num > 0) { if (num && num > 0) {
const passagerNum = parseInt(num); const passagerNum = parseInt(num);
if (passagerNum < 40) { if (passagerNum < 400) {
this.setColor('#29a909'); this.setColor('#29a909');
} else if (passagerNum < 80 && passagerNum >= 40) { } else if (passagerNum < 800 && passagerNum >= 400) {
this.setColor('#ffa500'); this.setColor('#ffa500');
} else { } else {
this.setColor('#F00'); this.setColor('#F00');

View File

@ -388,7 +388,7 @@ export default class Train extends Group {
this.trainB && this.trainB.setTrainColor('#29a909'); this.trainB && this.trainB.setTrainColor('#29a909');
this.trainL && this.trainL.setColor('#29a909'); this.trainL && this.trainL.setColor('#29a909');
this.trainR && this.trainR.setColor('#29a909'); this.trainR && this.trainR.setColor('#29a909');
} else if (passagerNum < 200 && passagerNum >= 100) { } else if (passagerNum < 400 && passagerNum >= 100) {
this.trainB && this.trainB.setTrainColor('#ffa500'); this.trainB && this.trainB.setTrainColor('#ffa500');
this.trainL && this.trainL.setColor('#ffa500'); this.trainL && this.trainL.setColor('#ffa500');
this.trainR && this.trainR.setColor('#ffa500'); this.trainR && this.trainR.setColor('#ffa500');

View File

@ -49,7 +49,7 @@
</div> </div>
<div class="eachTrainExample"> <div class="eachTrainExample">
<span class="bigExample" /> <span class="bigExample" />
<span class="eachTrainExampleName">1000及以上</span> <span class="eachTrainExampleName">400及以上</span>
</div> </div>
</div> </div>
</div> </div>