chore: 更新数据文件和组件优化
主要更新内容: - 优化UI组件(视频播放器、HR访问模态框、岗位信息展示等) - 更新数据文件(简历、岗位、项目案例等) - 添加新的图片资源(面试状态图标等) - 新增AgentPage等页面组件 - 清理旧的备份文件,提升代码库整洁度 - 优化岗位等级和面试状态的数据结构 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
96
test_company_images.html
Normal file
96
test_company_images.html
Normal file
@@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>测试公司图片数据</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
max-width: 1200px;
|
||||
margin: 20px auto;
|
||||
padding: 20px;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
.job-card {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
}
|
||||
.job-title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #2c7aff;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.image-count {
|
||||
color: #666;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.carousel {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.carousel img {
|
||||
height: 150px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.no-images {
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>企业内推岗位图片数据测试</h1>
|
||||
<div id="jobs-container"></div>
|
||||
|
||||
<script type="module">
|
||||
// 模拟导入数据
|
||||
const companyImagesData = await fetch('/网页未导入数据/文旅产业/文旅_内推岗位企业图片.json').then(r => r.json());
|
||||
|
||||
// 创建映射
|
||||
const companyImagesMap = {};
|
||||
companyImagesData.forEach(item => {
|
||||
const imageUrls = item['BOSS照片链接'] ? item['BOSS照片链接'].split(',').map(url => url.trim()) : [];
|
||||
companyImagesMap[item['内推岗位名称']] = imageUrls;
|
||||
});
|
||||
|
||||
// 显示前10个有图片的岗位
|
||||
const container = document.getElementById('jobs-container');
|
||||
let count = 0;
|
||||
|
||||
for (const [jobName, images] of Object.entries(companyImagesMap)) {
|
||||
if (count >= 10) break;
|
||||
|
||||
const card = document.createElement('div');
|
||||
card.className = 'job-card';
|
||||
|
||||
card.innerHTML = `
|
||||
<div class="job-title">${jobName}</div>
|
||||
<div class="image-count">图片数量: ${images.length}</div>
|
||||
${images.length > 0 ? `
|
||||
<div class="carousel">
|
||||
${images.map(url => `<img src="${url}" alt="${jobName}" />`).join('')}
|
||||
</div>
|
||||
` : '<div class="no-images">暂无图片</div>'}
|
||||
`;
|
||||
|
||||
container.appendChild(card);
|
||||
count++;
|
||||
}
|
||||
|
||||
console.log('公司图片映射:', companyImagesMap);
|
||||
console.log('共有', Object.keys(companyImagesMap).length, '个岗位有图片数据');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user