index.vue 2.36 KB
<template>
  <div class="min-h-screen bg-[#f9fafb] pb-[calc(160rpx+env(safe-area-inset-bottom))]">
    <!-- Navigation Header -->
    <NavHeader title="入职相关" />

    <!-- Content List -->
    <div class="px-[40rpx] mt-[40rpx] relative z-10">
      <SectionCard
        v-for="(section, index) in sections"
        :key="index"
        :title="section.title"
        :bg-gradient="section.bgGradient"
        :items="section.items"
        @item-click="handleItemClick"
      />
    </div>

    <!-- Tab Bar -->
    <!-- <TabBar current="me" /> -->
  </div>
</template>

<script setup>
import { shallowRef } from 'vue'
import { useGo } from '@/hooks/useGo'
import TabBar from '@/components/TabBar.vue'
import NavHeader from '@/components/NavHeader.vue'
import SectionCard from '@/components/SectionCard.vue'

const go = useGo()

const sections = shallowRef([
  {
    title: '入职前',
    items: [
      {
        icon: 'edit',
        title: '考试报名',
        subtitle: '报名参加代理人资格考试'
      },
      {
        icon: 'find',
        title: '面试结果查询',
        subtitle: '查看面试状态和结果'
      },
      {
        icon: 'order',
        title: '入职材料提交',
        subtitle: '上传入职所需证件和资料'
      }
    ]
  },
  {
    title: '入职中',
    items: [
      {
        icon: 'clock',
        title: '各个进度时间线表格',
        subtitle: '查看入职流程关键节点'
      },
      {
        icon: 'checklist',
        title: '待办事项清单',
        subtitle: '你需要完成的任务列表'
      },
      {
        icon: 'check',
        title: '签署合同',
        subtitle: '电子合同在线签署'
      }
    ]
  },
  {
    title: '入职后',
    items: [
      {
        icon: 'star',
        title: '新人培训',
        subtitle: '参加新人岗前培训课程'
      },
      {
        icon: 'top',
        title: '业绩目标设定',
        subtitle: '制定首月业绩目标'
      },
      {
        icon: 'playCircleFill',
        title: '团队介绍',
        subtitle: '了解你的团队和主管'
      }
    ]
  }
])

/**
 * Handle item click
 * @param {Object} item - Clicked item data
 */
const handleItemClick = (item) => {
  console.log('Clicked:', item.title)
  // TODO: Navigate to respective page
}
</script>

<script>
export default {
  name: 'OnboardingIndex'
}
</script>