+ style="color:white;line-height:26px;margin-left: 10px;width: calc(100% - 150px);display: inline-block;vertical-align:top;">
{{ tireInfo.title }}
-
品牌:{{ tireInfo.info1 }} 规格:{{ tireInfo.info2 }} 花纹:{{ tireInfo.info3 }}
+
品牌:{{ tireInfo.info1 }} 规格:{{ tireInfo.info2 }} 花纹:{{ tireInfo.info3 }}
使用时间
{{ tireInfo.info4 }}
@@ -16,7 +16,7 @@
预计剩余里程
-
{{ tireInfo.info7 }}
+
{{ tireInfo.info7 }}km
最长连续工作时间
{{ tireInfo.info8 }}
历史最高胎温
@@ -36,7 +36,7 @@
已行驶
约占整个生命周期的{{ percentage }}%
{{ run }}km
-
+
@@ -73,20 +73,23 @@ const way = ref()
const wayWheel = (e) => {
way.value.scrollLeft += (e.deltaY || 0)
}
+
const percentage = '3.33'
+
const run = '3.33'
+
const tireInfo = {
title: 'F35D090D785',
info1: '品牌',
info2: '规格',
info3: '花纹',
- info4: '使用时间',
- info5: '最长连续报警时间',
- info6: '历史最高胎压',
- info7: '预计剩余里程',
- info8: '最长连续工作时间',
- info9: '历史最高胎温',
- info10: '报警次数',
+ info4: '10h',
+ info5: '10h',
+ info6: '40°C',
+ info7: '666',
+ info8: '10h',
+ info9: '40°C',
+ info10: '1',
war: [
{
type: '高温',
@@ -94,8 +97,6 @@ const tireInfo = {
}
]
}
-const wayList = ref([])
-const repetitiveBackground = ref(0)
let list = [
{
@@ -131,6 +132,7 @@ let list = [
info: '5'
},
]
+
const fun = () => {
list = list.sort((a, b) => {
return a.time - b.time
@@ -150,6 +152,10 @@ const fun = () => {
wayList.value = arr
repetitiveBackground.value = Math.ceil(arr.at(-1).step / 10)
}
+
+const wayList = ref([])
+const repetitiveBackground = ref(0)
+
fun()