<template>
    <div class="h-full flex flex-col screening-index">
        <van-tabs shrink type="card" class="shrink-0 doc-tab-round"
            v-model:active="activeTab">
            <van-tab title="筛查记录"></van-tab>
            <van-tab title="随访记录"></van-tab>
        </van-tabs>
        <div class="pt-3"></div>
        <div class="grow pb-3 overflow-y-auto">
            <ScreenRecordList v-if="activeTab == 0"/>
            <VisitList v-else-if="activeTab == 1"/>
        </div>
    </div>
</template>

<script>
import ScreenRecordList from './Record.vue'
import VisitList from './Visit.vue'

export default {
    components: {
        ScreenRecordList,
        VisitList
    },
    data() {
        return {
            activeTab: 0
        }
    }
}
</script>

<style lang="less" scoped>
// 通用随访card
:deep(.general-card) {
    border-radius: 12px;
    background: linear-gradient(to bottom, #FFC9D3, #FFE9E9);
    .title {
        color: #8E2A4A;
    }
}
// 初筛 主要慢病
:deep(.first-card) {
    border-radius: 12px;
    background: linear-gradient(to bottom, #FFD8BC, #FFF0E9);
    .title {
        color: #8E562A;
    }
}
// 复筛 专病高危
:deep(.second-card) {
    border-radius: 12px;
    background: linear-gradient(to bottom, #B3F5F7, #FFFFE9);
    .title {
        color: #2A8E75;
    }
}
</style>
