北交大 客流 代码调整

This commit is contained in:
joylink_cuiweidong 2020-12-22 18:42:27 +08:00
parent d5fcc4bd36
commit 623cbd2143
3 changed files with 6 additions and 6 deletions

View File

@ -384,11 +384,11 @@ export default class Train extends Group {
if (num) {
// && num > 0
const passagerNum = parseInt(num);
if (passagerNum < 100) {
if (passagerNum < 400) {
this.trainB && this.trainB.setTrainColor('#29a909');
this.trainL && this.trainL.setColor('#29a909');
this.trainR && this.trainR.setColor('#29a909');
} else if (passagerNum < 400 && passagerNum >= 100) {
} else if (passagerNum < 1000 && passagerNum >= 400) {
this.trainB && this.trainB.setTrainColor('#ffa500');
this.trainL && this.trainL.setColor('#ffa500');
this.trainR && this.trainR.setColor('#ffa500');

View File

@ -5,7 +5,7 @@ export default {
EdgeHeight: 180,
/** 间隔高度*/
CoordMultiple: 900,
CoordMultiple: 2000,
/** 偏移时间*/
TranslationTime: 60 * 60 * 2,

View File

@ -41,15 +41,15 @@
<div class="trainExampleName">列车 颜色图例</div>
<div class="eachTrainExample">
<span class="smallExample" />
<span class="eachTrainExampleName">0 ~ 100</span>
<span class="eachTrainExampleName">0 ~ 400</span>
</div>
<div class="eachTrainExample">
<span class="mediumExample" />
<span class="eachTrainExampleName">100 ~ 400</span>
<span class="eachTrainExampleName">400 ~ 1000</span>
</div>
<div class="eachTrainExample">
<span class="bigExample" />
<span class="eachTrainExampleName">400及以上</span>
<span class="eachTrainExampleName">1000及以上</span>
</div>
</div>
</div>