2023-02-09 08:50:01 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="index-yunwei">
|
|
|
|
|
<div class="header">
|
|
|
|
|
<div class="header-item">
|
|
|
|
|
<div class="header-item-value">3</div>
|
|
|
|
|
<div class="header-item-label">正常设备</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="header-item">
|
|
|
|
|
<div class="header-item-value">1</div>
|
|
|
|
|
<div class="header-item-label">报警设备</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="header-item">
|
|
|
|
|
<div class="header-item-value">0</div>
|
|
|
|
|
<div class="header-item-label">离线设备</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-09 16:37:53 +08:00
|
|
|
<uni-card title="基础设备" sub-title="副标题" :extra="item % 2 ? 'APF' : 'DVR'" v-for="item in 3" :key="item"
|
|
|
|
|
@click="jump(item)" thumbnail="/static/device.png">
|
2023-02-09 08:50:01 +08:00
|
|
|
<text>设备基础信息 </text>
|
|
|
|
|
</uni-card>
|
|
|
|
|
<uni-load-more status="nomore"></uni-load-more>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
loading: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-02-09 16:37:53 +08:00
|
|
|
jump (item) {
|
|
|
|
|
if (item % 2) {
|
2023-02-10 09:16:17 +08:00
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/device/APF/detail'
|
2023-02-09 16:37:53 +08:00
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({
|
2023-02-10 09:16:17 +08:00
|
|
|
url: '/pages/device/DVR/detail'
|
2023-02-09 16:37:53 +08:00
|
|
|
})
|
|
|
|
|
}
|
2023-02-09 08:50:01 +08:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
.index-yunwei {}
|
|
|
|
|
</style>
|