tanghaolin
2025-04-15 8c3d15eae99d51193e20ff222dedf96cdba57b33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<template>
    <div class="container mx-auto px-4 py-8">
        <h1 class="text-2xl font-bold mb-6">公共服务</h1>
 
        <!-- 服务分类 -->
        <div class="grid grid-cols-3 gap-6 mb-8">
            <el-card v-for="service in services" :key="service.title" class="service-card">
                <div class="flex items-start space-x-4">
                    <div class="w-12 h-12 flex items-center justify-center rounded-lg" :class="service.bgColor">
                        <el-icon class="text-2xl" :class="service.iconColor">
                            <component :is="service.icon" />
                        </el-icon>
                    </div>
                    <div class="flex-1">
                        <h3 class="text-lg font-medium mb-2">{{ service.title }}</h3>
                        <p class="text-gray-500 text-sm">{{ service.description }}</p>
                    </div>
                </div>
            </el-card>
        </div>
 
        <!-- 通知公告 -->
        <el-card class="mb-8">
            <template #header>
                <div class="flex justify-between items-center">
                    <span class="font-medium">通知公告</span>
                    <el-button text>更多</el-button>
                </div>
            </template>
            <el-timeline>
                <el-timeline-item v-for="notice in notices" :key="notice.id" :timestamp="notice.date" placement="top">
                    <div class="text-gray-700 hover:text-blue-500 cursor-pointer">
                        {{ notice.title }}
                    </div>
                </el-timeline-item>
            </el-timeline>
        </el-card>
 
        <!-- 常见问题 -->
        <el-card>
            <template #header>
                <div class="flex justify-between items-center">
                    <span class="font-medium">常见问题</span>
                    <el-button text>查看全部</el-button>
                </div>
            </template>
            <el-collapse v-model="activeNames">
                <el-collapse-item v-for="faq in faqs" :key="faq.id" :title="faq.question" :name="faq.id">
                    <div class="text-gray-600">{{ faq.answer }}</div>
                </el-collapse-item>
            </el-collapse>
        </el-card>
    </div>
</template>
 
<script setup lang="ts">
import { ref } from 'vue';
import { Service, Document, QuestionFilled, Setting } from '@element-plus/icons-vue';
 
const services = [
    {
        title: '技术支持',
        description: '提供专业的技术咨询和问题解决服务',
        icon: 'Service',
        bgColor: 'bg-blue-100',
        iconColor: 'text-blue-500',
    },
    {
        title: '文档中心',
        description: '提供完整的产品文档和技术资料',
        icon: 'Document',
        bgColor: 'bg-green-100',
        iconColor: 'text-green-500',
    },
    {
        title: '培训服务',
        description: '提供专业的技术培训和能力提升服务',
        icon: 'Setting',
        bgColor: 'bg-purple-100',
        iconColor: 'text-purple-500',
    },
];
 
const notices = [
    {
        id: 1,
        title: '关于开展2024年工业软件技术创新项目申报的通知',
        date: '2024-02-12',
    },
    {
        id: 2,
        title: '2024年度工业软件服务能力评估工作启动',
        date: '2024-02-10',
    },
    {
        id: 3,
        title: '关于组织开展工业APP优秀案例征集的通知',
        date: '2024-02-08',
    },
];
 
const faqs = [
    {
        id: 1,
        question: '如何申请成为平台开发者?',
        answer: '您需要在平台注册账号,完善个人或企业信息,提交相关资质证明文件,经平台审核通过后即可成为开发者。',
    },
    {
        id: 2,
        question: '如何发布工业APP?',
        answer: '登录开发者账号,进入"发布管理"页面,填写APP相关信息,上传安装包,提交审核,审核通过后即可上线。',
    },
    {
        id: 3,
        question: '平台支持哪些类型的应用?',
        answer: '平台支持工业控制、数据分析、智能制造、物联网、数字孪生等多个领域的应用。',
    },
];
 
const activeNames = ref(['1']);
</script>
 
<style scoped>
.service-card {
    transition: transform 0.2s;
}
 
.service-card:hover {
    transform: translateY(-4px);
}
</style>