<template>
<unicloud-db v-slot:default="{data, loading, error, options}" collection="opendb-contacts">
<view v-if="error">{{error.message}}</view>
<view v-else>
<uni-list>
<uni-list-item v-for="(item,index) in data" :key="index" :title="item.username" :note="item.email">
</uni-list-item>
</uni-list>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view>更新2323</view>
</view>
</view>
</unicloud-db>
</template>
<script setup>
import {
onLoad,
onShow,
} from "@dcloudio/uni-app";
onLoad(() => {});
onShow(() => {
});
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>