Commit 64c348e7 by chenwq

折线图

1 parent d833ee07
...@@ -13,11 +13,8 @@ ...@@ -13,11 +13,8 @@
</div> </div>
<div class="line-item"> <div class="line-item">
<span class="txt-orange" :direction="directionTimer" :delay="delayTimer">{{ item.value }}</span>
</div>
<!-- <div class="line-item">
<marquee class="txt-orange" :direction="directionTimer" :delay="delayTimer" :text="item.value"></marquee> <marquee class="txt-orange" :direction="directionTimer" :delay="delayTimer" :text="item.value"></marquee>
</div> --> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -203,6 +200,8 @@ p { ...@@ -203,6 +200,8 @@ p {
border-top: 1px solid #373739; border-top: 1px solid #373739;
.rank-title-block { .rank-title-block {
// flex: 0 0 55px; // flex: 0 0 55px;
width: 100%;
overflow: hidden;
width: 55px; width: 55px;
.rank-title { .rank-title {
box-sizing: border-box; box-sizing: border-box;
......
...@@ -116,13 +116,13 @@ export default { ...@@ -116,13 +116,13 @@ export default {
Object.keys(topTempList).forEach(item => { Object.keys(topTempList).forEach(item => {
topList.push({ topList.push({
label: item, label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -' value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
Object.keys(lastTempList).forEach(item => { Object.keys(lastTempList).forEach(item => {
lastList.push({ lastList.push({
label: item, label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -' value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
this.dataList.push({ this.dataList.push({
......
...@@ -108,13 +108,13 @@ export default { ...@@ -108,13 +108,13 @@ export default {
Object.keys(topTempList).forEach(item => { Object.keys(topTempList).forEach(item => {
topList.push({ topList.push({
label: item, label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -' value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
Object.keys(lastTempList).forEach(item => { Object.keys(lastTempList).forEach(item => {
lastList.push({ lastList.push({
label: item, label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -' value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
this.dataList.push({ this.dataList.push({
......
...@@ -108,13 +108,13 @@ export default { ...@@ -108,13 +108,13 @@ export default {
Object.keys(topTempList).forEach(item => { Object.keys(topTempList).forEach(item => {
topList.push({ topList.push({
label: item, label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -' value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
Object.keys(lastTempList).forEach(item => { Object.keys(lastTempList).forEach(item => {
lastList.push({ lastList.push({
label: item, label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -' value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
this.dataList.push({ this.dataList.push({
......
...@@ -116,13 +116,13 @@ export default { ...@@ -116,13 +116,13 @@ export default {
Object.keys(topTempList).forEach(item => { Object.keys(topTempList).forEach(item => {
topList.push({ topList.push({
label: item, label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -' value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
Object.keys(lastTempList).forEach(item => { Object.keys(lastTempList).forEach(item => {
lastList.push({ lastList.push({
label: item, label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -' value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
}) })
}) })
this.dataList.push({ this.dataList.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!