<!--
 * @Author: PoJun
 * @Date: 2023-12-19 14:57:48
 * @LastEditors: PoJun
 * @LastEditTime: 2024-01-04 16:09:14
 * @Message: 合作记录
-->
<template>
    <uv-cell-group :border="false" :customStyle="{ padding: '5px 0' }">
        <uv-cell :border="false" :isLink="true" value="查看更多" url="/subpkg/home/records">
            <uv-text slot="title" text="近期合作记录" :customStyle="{ 'font-weight': 'bold' }"></uv-text>
        </uv-cell>

        <template v-if="recordsList.length">
            <uv-cell v-for="(item, index) in recordsList" :key="index" :border="false" :value="item.content">
                <uv-text slot="label" :text="item.time" size="13" :customStyle="{ 'white-space': 'nowrap' }"></uv-text>
            </uv-cell>
        </template>

        <view v-else class="uv-m-b-50">
            <uv-empty marginTop="30" mode="data" text="暂无数据"></uv-empty>
        </view>
    </uv-cell-group>
</template>

<script>
import { getSelfRecords } from "@/config/http.js";
export default {
    data() {
        return {
            recordsList: [],
        };
    },
    async created() {
        const params = {
            params: {
                pageSize: 5,
                pageNum: 1,
                query: {},
            },
        };
        const data = await getSelfRecords(params);
        this.recordsList = data.list;
    },
};
</script>

<style lang="scss" scoped></style>
