Files
app-govern/pages/device/list.vue

61 lines
1.5 KiB
Vue
Raw Normal View History

2023-02-01 16:59:32 +08:00
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='device-list'>
2023-02-15 16:32:21 +08:00
<uni-card title="基础设备" sub-title="副标题" extra="APF" v-for="item in 10" :key="item" @click="jump"
2023-02-01 16:59:32 +08:00
thumbnail="/static/real_time_data.png">
<text>设备基础信息 </text>
</uni-card>
<uni-load-more status="nomore"></uni-load-more>
</view>
</view>
</Cn-page>
</template>
<script>
export default {
data () {
return {
loading: false,
current: 0,
items: ['正常', '报警', '离线'],
styleType: 'text',
activeColor: '#007aff',
content: [{
iconPath: '/static/add.png',
text: '添加 ',
},
]
}
},
methods: {
onClickItem (e) {
this.current = e.currentIndex
},
2023-02-15 16:32:21 +08:00
jump () {
uni.navigateTo({
url: '/pages/device/APF/detail'
})
},
2023-02-01 16:59:32 +08:00
trigger (e) {
if (e.index === 0) {
uni.navigateTo({
url: '/pages/device/new'
})
}
}
}
}
</script>
<style lang='scss'>
.device-list {
.header {
position: sticky;
top: 0;
left: 0;
z-index: 10;
background: #fff;
padding: 10rpx 20rpx 20rpx;
box-shadow: 0 0 10rpx #eee;
}
}
</style>