<template>
    <Cn-page :loading='loading'>
        <view slot='body'>
            <view class='index'>
                <view class="content device" :style="{ minHeight: minHeight }">
                    <uni-card :title="item.name" :sub-title="item.project" :extra="item.type" padding="0"
                        v-for="(item, index) in deviceList" :key="index" thumbnail="/static/device.png">
                        <!-- <text>{{ item.project }} {{ item.type }}</text> -->
                    </uni-card>
                    <!-- <uni-load-more status="nomore"></uni-load-more> -->
                </view>
            </view>
        </view>
    </Cn-page>
</template>
<script>
export default {
    data () {
        return {
            loading: false,
            deviceList: [
                {
                    name: '设备APF-1',
                    des: '设备描述1',
                    type: '监测',
                    project: 'XXX项目1',
                },
                {
                    name: '设备APF-2',
                    des: '设备描述1',
                    type: '监测',
                    project: 'XXX项目1',
                },
                {
                    name: '设备APF-3',
                    des: '设备描述2',
                    type: '用能',
                    project: 'XXX项目2'
                },
                {
                    name: '设备DVR-1',
                    des: '设备描述3',
                    type: '监测',
                    project: 'XXX项目3'
                }
            ]
        }
    },
    methods: {
    }
}
</script>
<style lang='scss'>
.index {
    padding: 20rpx 0;
}
</style>
