feat:对接景区接口

This commit is contained in:
zjc
2025-01-17 19:15:14 +08:00
parent fd8ede8a32
commit 8eb966fa14
29 changed files with 510 additions and 315 deletions

View File

@@ -34,7 +34,7 @@
return props.list.map((item) => {
return {
name: item.name,
value: item.count,
value: item.duration,
itemStyle: {
color: {
type: 'linear',
@@ -61,7 +61,7 @@
return props.list.map((item) => {
return {
name: item.name,
value: item.count,
value: item.duration,
itemStyle: {
color: '#fff',
opacity: 1
@@ -70,7 +70,7 @@
})
}
const setYAxisData = () => {
return props.list.map((item) => item.count)
return props.list.map((item) => item.duration)
}
const init = () => {
if (!params) {
@@ -110,10 +110,10 @@
axisTick: {
show: false
},
data: [],
axisLabel: {
show: false
}
},
data: []
},
{
type: 'category',
@@ -122,10 +122,8 @@
axisLine: 'none',
show: true,
axisLabel: {
textStyle: {
color: '#fff',
fontSize: fitChartSize(12)
},
color: '#fff',
fontSize: fitChartSize(12),
verticalAlign: 'bottom',
padding: [0, 0, 6, 0],
inside: true,
@@ -150,7 +148,7 @@
type: 'bar',
barWidth: fitChartSize(8),
showBackground: true,
barBorderRadius: [0, 0, 0, 0],
borderRadius: [0, 0, 0, 0],
backgroundStyle: {
color: 'rgba(0, 150, 255, 0.15)'
},