修改bug

master
qsj 2 years ago
parent a9cdfaa602
commit ac6bd1e29f

@ -54,7 +54,7 @@ const steps = 80; // 80个颜色
const colors = generateColorArray(startColor, endColor, steps); const colors = generateColorArray(startColor, endColor, steps);
const xList = [...new Array(61).fill(0).map((item, key) => key)]; const xList = [...new Array(37).fill(0).map((item, key) => key)];
const seriesData = [ const seriesData = [
...xList.map((item) => { ...xList.map((item) => {
return Math.random() * 80; return Math.random() * 80;
@ -80,7 +80,7 @@ const seriesData = [
grid: { grid: {
// 让图表占满容器 // 让图表占满容器
top: "10rpx", top: "10rpx",
left: "35rpx", left: "45rpx",
right: "28rpx", right: "28rpx",
bottom: "17rpx", bottom: "17rpx",
}, },
@ -88,9 +88,11 @@ const seriesData = [
type: "category", type: "category",
data: [...xList], data: [...xList],
axisLabel: { axisLabel: {
interval: 9, interval: 5,
formatter: function (value, index) { formatter: function (value, index) {
return value * 6 + 's'; console.log(value,'查看');
return value * 10 + 's';
}, },
textStyle: { textStyle: {
color: '#999999', // 文字颜色 color: '#999999', // 文字颜色

@ -73,15 +73,18 @@ page {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #000; color: #000;
padding-left: 16rpx;
// margin: 48rpx 0 34rpx; // margin: 48rpx 0 34rpx;
} }
.eacharts{ .eacharts{
// background-color: red; // background-color: red;
// margin-top: 14px; // margin-top: 14px;
margin: auto;
margin-bottom: 45rpx; margin-bottom: 45rpx;
/* margin: 52rpx 0rpx; */ /* margin: 52rpx 0rpx; */
width: 100%; width: 100%;
height: 247rpx; height: 247rpx;
// margin-left: 131rpx;
} }
.van-popup { .van-popup {
border-radius: 30rpx; border-radius: 30rpx;

@ -704,6 +704,10 @@ page {
height: 100% !important; height: 100% !important;
border-radius: 20rpx; border-radius: 20rpx;
} }
.showImg:last-child{
width: 40rpx !important;
height: 40rpx !important;
}
} }
.info4 { .info4 {
position: relative; position: relative;

Loading…
Cancel
Save