feat: 提交首页

This commit is contained in:
pengqiao1993
2025-10-29 17:31:26 +08:00
parent 4199ceee48
commit 9258bcc0a9
46 changed files with 15838 additions and 1630 deletions

View File

@ -66,25 +66,26 @@
},
toDetail(item) {
let type = ""
if (item.deviceType.includes("pcs")) {
if (item.deviceType?.includes("pcs")) {
type = "pcs";
} else if (item.deviceType.includes("stack") ) {
} else if (item.deviceType?.includes("stack") ) {
type = "cluster";
} else if (item.deviceType.includes("bms") && this.stationId === 349 ) {
} else if (item.deviceType?.includes("bms") && this.stationId === 349 ) {
type = "stack";
} else if (item.deviceType.includes("pack")) {
} else if (item.deviceType?.includes("pack")) {
type = "pack";
} else if (item.deviceType.includes("air_condition")) {
} else if (item.deviceType?.includes("air_condition")) {
type = "air";
} else if (item.deviceType.includes("ele_meter") ) {
} else if (item.deviceType?.includes("ele_meter") ) {
type = "ammeter";
} else if (item.deviceType.includes("emu" )) {
} else if (item.deviceType?.includes("emu" )) {
type = "emu";
} else if (item.deviceType.includes("storage_fire") ) {
} else if (item.deviceType?.includes("storage_fire") ) {
type = "storage";
} else if (item.deviceType.includes("basic") ) {
} else if (item.deviceType?.includes("basic") ) {
type = "anything"
}
console.log(type)
if (type) {
uni.setStorage({
key: 'deviceName', //本地缓存中的指定的 key