Commit 11dc2b5b authored by chenqikuai's avatar chenqikuai

fix

parent 07153e63
...@@ -158,6 +158,11 @@ export default Vue.extend({ ...@@ -158,6 +158,11 @@ export default Vue.extend({
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
axisLabel: {
textStyle: {
color: '#7c88ad',
},
},
boundaryGap: false, boundaryGap: false,
data: times data: times
?.map((i) => { ?.map((i) => {
...@@ -171,13 +176,43 @@ export default Vue.extend({ ...@@ -171,13 +176,43 @@ export default Vue.extend({
formatter: (item: number) => { formatter: (item: number) => {
return nFormatter(item) return nFormatter(item)
}, },
textStyle: {
color: '#7c88ad',
},
}, },
}, },
series: [ series: [
{ {
data: this.xData.map((i: any) => i || 0).reverse(),
type: 'line', type: 'line',
areaStyle: {}, data: this.xData.map((i: any) => i || 0).reverse(),
areaStyle: {
color: 'red',
normal: {
// 颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: '#2545CB', // 0% 处的颜色
},
{
offset: 0.6,
color: '#9FAEE9', // 40% 处的颜色
},
{
offset: 1,
color: 'white', // 100% 处的颜色
},
]), //背景渐变色
lineStyle: {
// 系列级个性化折线样式
type: 'solid',
color: '#2545CB', //折线的颜色
},
},
},
smooth: true,
showSymbol: false,
itemStyle: {},
}, },
], ],
grid: this.grid, grid: this.grid,
......
...@@ -86,6 +86,11 @@ export default VueTypedMixins(chartsMixin).extend({ ...@@ -86,6 +86,11 @@ export default VueTypedMixins(chartsMixin).extend({
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
axisLabel: {
textStyle: {
color: '#7c88ad',
},
},
boundaryGap: false, boundaryGap: false,
data: times data: times
?.map((i) => { ?.map((i) => {
...@@ -99,6 +104,9 @@ export default VueTypedMixins(chartsMixin).extend({ ...@@ -99,6 +104,9 @@ export default VueTypedMixins(chartsMixin).extend({
formatter: (item: number) => { formatter: (item: number) => {
return nFormatter(item) return nFormatter(item)
}, },
textStyle: {
color: '#7c88ad',
},
}, },
}, },
series: [ series: [
...@@ -109,7 +117,33 @@ export default VueTypedMixins(chartsMixin).extend({ ...@@ -109,7 +117,33 @@ export default VueTypedMixins(chartsMixin).extend({
.map((i) => i / 1e8) .map((i) => i / 1e8)
.reverse(), .reverse(),
type: 'line', type: 'line',
areaStyle: {}, areaStyle: {
normal: {
// 颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: '#2545CB', // 0% 处的颜色
},
{
offset: 0.6,
color: '#9FAEE9', // 40% 处的颜色
},
{
offset: 1,
color: 'white', // 100% 处的颜色
},
]), //背景渐变色
lineStyle: {
// 系列级个性化折线样式
type: 'solid',
color: '#2545CB', //折线的颜色
},
},
},
smooth: true,
showSymbol: false,
itemStyle: {},
}, },
], ],
grid: this.grid, grid: this.grid,
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
> >
{{ quoteChange }} {{ quoteChange }}
</div> </div>
<div class="font-bold text-xs text-white mt-4"> <div class="text-xs text-white mt-6">
{{ $t('lang.price.realTimeQuotes') }} {{ $t('lang.price.realTimeQuotes') }}
</div> </div>
<div class="font-bold text-xs text-white mt-2"> <div class="text-xs text-white mt-1">
{{ $t('lang.price._24hourVolatility') }} {{ $t('lang.price._24hourVolatility') }}
</div> </div>
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{{ $t('lang.address.balance') }} {{ $t('lang.address.balance') }}
</div> </div>
<div class="balance-value">{{ balance | filterAmount }} YCC</div> <div class="balance-value">{{ balance | filterAmount }} YCC</div>
<div class="text-sm text-white"> <div class="text-sm text-white" style="margin-top: 10px;">
{{ $t('lang.address.freeze') }} {{ $t('lang.address.freeze') }}
<span class="ml-2">{{ frozen | filterAmount }} YCC</span> <span class="ml-2">{{ frozen | filterAmount }} YCC</span>
</div> </div>
......
...@@ -126,15 +126,15 @@ export default Vue.extend({ ...@@ -126,15 +126,15 @@ export default Vue.extend({
<style scoped lang="scss"> <style scoped lang="scss">
.c-select { .c-select {
.selected-txt { .selected-txt {
font-size: 20px; font-size: 14px;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;
margin-left: 10px; margin-left: 10px;
white-space: nowrap; white-space: nowrap;
} }
.selected-txt-small { .selected-txt-small {
font-size: 14px; font-size: 12px;
margin-left: 5px; margin-left: 10px;
} }
.select { .select {
width: 100px; width: 100px;
...@@ -148,7 +148,7 @@ export default Vue.extend({ ...@@ -148,7 +148,7 @@ export default Vue.extend({
} }
} }
.select-small { .select-small {
width: 70px; width: 100px;
height: 30px; height: 30px;
} }
.options { .options {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment