样式修改

This commit is contained in:
978184212@qq.com 2025-11-22 11:46:06 +08:00
parent a3a932bd7e
commit 2c66f71e04
4 changed files with 48 additions and 40 deletions

View File

@ -51,6 +51,9 @@
type="line"
:opts="opts"
:chartData="chartData"
:enableScroll="true"
:ontouch="true"
canvas2d
/>
</view>
</view>
@ -158,9 +161,14 @@
enableScroll: true,
legend: {},
xAxis: {
disableGrid: true,
scrollShow: true,
itemCount: 4
disableGrid: true, // 线
type: 'grid', //
gridType: 'dash', // 线
itemCount: 3, //
scrollShow: true, //
scrollAlign: 'left', //
scrollBackgroundColor: '#F7F7FF', //
scrollColor: '#DEE7F7' //
},
yAxis: {
gridType: "dash",
@ -1089,7 +1097,7 @@
padding: 16rpx 32rpx;
border-radius: 12rpx;
transition: all 0.3s ease;
// background: #F6F9FF;
&:active {
background: rgba(15, 110, 254, 0.1);
}
@ -1122,21 +1130,20 @@
}
//
@media (prefers-color-scheme: dark) {
.radio-group {
background: #1a1a1a;
.radio-label {
.radio-text {
color: #999;
}
// @media (prefers-color-scheme: dark) {
// .radio-group {
// background: #1a1a1a;
// .radio-label {
// .radio-text {
// color: #fff;
// }
.radio-item[checked] + .radio-text {
color: #0f6efe;
}
}
}
}
// .radio-item[checked] + .radio-text {
// color: #0f6efe;
// }
// }
// }
// }
.qstim{
width: 40%;
display: block;

View File

@ -28,7 +28,7 @@
<view class="qushicov" v-for="(item,index) in resolt" :key="index">
<text class="quname">{{item.itemName}}{{item.unit}}</text>
<view class="charts-box">
<qiun-data-charts type="area" :opts="opts" :chartData="item.chartData" />
<qiun-data-charts type="area" :opts="opts" :chartData="item.chartData" :enableScroll="true" :ontouch="true" canvas2d />
</view>
</view>
</view>
@ -794,10 +794,11 @@
.charts-box {
width: 100%;
height: 200px;
height: 400rpx;
/* 适当增加高度 */
overflow-x: auto;
/* 允许横向滚动 */
display: block;
}
.qushicov {

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

View File

@ -31,8 +31,8 @@
baseUrl:configService.staticDomainURL,
markers: [],
list: [],
issscd: true,
isssscd: true,
issscd: false, // (false)
isssscd: false, // (false)
stationInfo: [],
cusLocation: [],
stationlist: [],
@ -196,24 +196,24 @@
}
},
switch2Change(name) {
//
if (name === "团柏河") {
this.stationlist = this.issscd ?
this.stationTwolist.filter(item => item.groupName !== "团柏河") :
this.stationTwolist;
} else {
this.stationlist = this.isssscd ?
this.stationTwolist.filter(item => item.groupName !== "对竹河") :
this.stationTwolist;
}
//
this.list1query();
//
setTimeout(() => {
this.adjustMapToRegion(name);
}, 300);
if (name === "团柏河") {
this.issscd = !this.issscd;
} else {
this.isssscd = !this.isssscd;
}
//
if ((name === "团柏河" && !this.issscd) || (name === "对竹河" && !this.isssscd)) {
// 绿
setTimeout(() => {
this.adjustMapToRegion(name);
}, 300);
} else {
//
setTimeout(() => {
this.adjustMapToFitAllMarkers();
}, 300);
}
},
list1query() {
// orient