index.vue 3.89 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">
      <div v-for="(section, index) in sections" :key="index" class="bg-white rounded-[32rpx] mb-[32rpx] pb-[56rpx] overflow-hidden shadow-sm">
        <!-- Section Header -->
        <div class="px-[40rpx] py-[32rpx]" :style="{ background: section.bgGradient }">
          <span class="text-[#1f2937] text-[32rpx] font-normal">{{ section.title }}</span>
        </div>

        <!-- Section Items -->
        <div class="flex flex-col">
          <div v-for="(item, itemIndex) in section.items" :key="itemIndex" class="flex flex-col">
            <div class="flex items-center justify-between px-[40rpx] mt-[56rpx] cursor-pointer" @tap="handleItemClick(item)">
              <div class="flex items-center">
                <div class="w-[96rpx] h-[96rpx] mr-[32rpx] flex items-center justify-center bg-gray-50 rounded-full">
                  <IconFont :name="item.icon" class="text-blue-600" size="32" />
                </div>
                <div class="flex flex-col">
                  <span class="text-[#1f2937] text-[28rpx] font-normal leading-[40rpx]">{{ item.title }}</span>
                  <span class="text-[#6b7280] text-[24rpx] mt-[8rpx] leading-[32rpx]">{{ item.subtitle }}</span>
                </div>
              </div>
              <IconFont name="RectRight" class="text-gray-400" size="16" />
            </div>
            <!-- Divider -->
            <div v-if="itemIndex < section.items.length - 1" class="w-[626rpx] h-[2rpx] bg-[#e5e7eb] mx-auto mt-[32rpx]"></div>
          </div>
        </div>
      </div>
    </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 IconFont from '@/components/IconFont.vue'

const go = useGo()

const sections = shallowRef([
  {
    title: '培训板块',
    items: [
      {
        icon: 'Shop',
        title: '公司介绍',
        subtitle: '企业背景及发展历程'
      },
      {
        icon: 'Category',
        title: '产品介绍及更新',
        subtitle: '最新产品资料库'
      }
    ]
  },
  {
    title: '签单前',
    items: [
      {
        icon: 'Check',
        title: '预核保',
        subtitle: '核保流程指引'
      },
      {
        icon: 'Edit',
        title: '做计划书',
        subtitle: '方案设计工具'
      }
    ]
  },
  {
    title: '签单中',
    items: [
      {
        icon: 'Checklist',
        title: '信息收集及健康告知模板',
        subtitle: '标准表格及注意事项'
      },
      {
        icon: 'Cart',
        title: '缴费方式银行开户',
        subtitle: '支付渠道办理指南'
      },
      {
        icon: 'People',
        title: '体检经验',
        subtitle: '体检流程及常见问题'
      }
    ]
  },
  {
    title: '签单后',
    items: [
      {
        icon: 'Order',
        title: '批单跟进',
        subtitle: '保单变更处理流程'
      },
      {
        icon: 'Clock',
        title: '核保/pending',
        subtitle: '核保进度查询'
      },
      {
        icon: 'Refresh',
        title: '续保',
        subtitle: '续期服务指引'
      }
    ]
  },
  {
    title: '售后',
    items: [
      {
        icon: 'Location',
        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: 'SigningIndex'
}
</script>