60 lines
1.5 KiB
Vue
60 lines
1.5 KiB
Vue
<template>
|
|
<Cn-page :loading='loading'>
|
|
<view slot='body'>
|
|
<view class='device-list device'>
|
|
<uni-card title="基础设备" sub-title="副标题" extra="APF" v-for="item in 10" :key="item" @click="jump" padding="0"
|
|
thumbnail="/static/real_time_data.png">
|
|
</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
|
|
},
|
|
jump () {
|
|
uni.navigateTo({
|
|
url: '/pages/device/APF/detail'
|
|
})
|
|
},
|
|
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> |