feat(score): new hourly score tooltip info

This commit is contained in:
OldHawk
2018-06-06 19:32:36 +08:00
parent 015b06d8b2
commit 4e79f9a76f
7 changed files with 25 additions and 13 deletions

View File

@@ -228,7 +228,11 @@
seedScoreTotal = Math.round(seedScoreTotal * 100) / 100;
var tmp = $translate.instant('CURR_SCORE_INCOME_HOURS', {score_hour: seedScoreTotal});
var tmp = $translate.instant('CURR_SCORE_INCOME_HOURS', {
score_hour: seedScoreTotal,
next_level: 'L' + vm.scoreLevelData.nextLevel,
days: Math.ceil((vm.scoreLevelData.nextLevelValue - vm.scoreLevelData.score) / (seedScoreTotal * 24))
});
return marked(tmp, {sanitize: false});
};

View File

@@ -50,8 +50,8 @@
p {
margin-bottom: 0;
}
h5 {
line-height: 1.5;
.alert {
line-height: 1.8;
margin: 0;
}
li {

View File

@@ -51,7 +51,7 @@
<li ng-bind-html="vm.getMarkedCurrDownSpeedString()"></li>
</ul>
<div class="alert alert-warning">
<h5 ng-bind-html="vm.getMarkedCurrScoreString()"></h5>
<span ng-bind-html="vm.getMarkedCurrScoreString()"></span>
</div>
</div>
</div>