修改价格

new-map
ihzero 2023-05-17 10:27:28 +08:00
parent 6188084203
commit 9d0df85bee
2 changed files with 12 additions and 1 deletions

View File

@ -65,3 +65,7 @@ span.anticon:not(.app-iconify) {
}
}
}
.ant-modal-body {
padding: 24px !important;
}

View File

@ -1,5 +1,11 @@
<template>
<Box title="稻虾每周价格(元/斤)">
<template #center>
<div
class="text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] ml-10.5px text-18px font-pmzd"
>最新价格 {{ Data.c_price }} /</div
>
</template>
<div class="h-full flex flex-col">
<div class="flex-1" ref="chartRef"> </div>
<div class="text-right">
@ -35,6 +41,7 @@
const Data = reactive({
x_axis: [],
series: [],
c_price: 0,
})
const chartRef = ref<HTMLDivElement | null>(null)
@ -148,9 +155,9 @@
Data.x_axis = resData.x_axis
Data.series = resData.series
Data.c_price = resData.c_price
current.value = Math.ceil(resData.c_week / pageSize.value)
console.log(current.value)
chartsInit()
}