主要更新: - 更新所有12个产业的教务系统数据和功能 - 删除所有 node_modules 文件夹(节省3.7GB) - 删除所有 .yoyo 缓存文件夹(节省1.2GB) - 删除所有 dist 构建文件(节省55MB) 项目优化: - 项目大小从 8.1GB 减少到 3.2GB(节省60%空间) - 保留完整的源代码和配置文件 - .gitignore 已配置,防止再次提交大文件 启动脚本: - start-industry.sh/bat/ps1 脚本会自动检测并安装依赖 - 首次启动时自动运行 npm install - 支持单个或批量启动产业系统 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
97 lines
2.5 KiB
HTML
97 lines
2.5 KiB
HTML
<!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>
|