提现记录
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin: 0;
padding: 20px;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: white;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
padding: 30px;
width: 400px;
max-width: 90%;
}
.title {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 24px;
font-weight: bold;
}
.record-list {
list-style: none;
padding: 0;
margin: 0;
}
.record-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
}
.record-item:hover {
background-color: #f8f9fa;
transform: translateX(5px);
}
.record-name {
font-size: 16px;
color: #333;
font-weight: 500;
}
.record-amount {
font-size: 18px;
font-weight: bold;
color: #e74c3c;
}
.fixed-records {
margin-bottom: 20px;
}
.scrolling-records {
height: 280px;
overflow: hidden;
position: relative;
}
.scrolling-content {
animation: scrollUp 15s linear infinite;
}
@keyframes scrollUp {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-70%);
}
}
.section-title {
font-size: 14px;
color: #666;
margin-bottom: 10px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
}
// 生成随机姓名(隐藏中间字)
function generateHiddenName() {
const surnames = ['张', '李', '王', '刘', '陈', '杨', '赵', '黄', '周', '吴'];
const names = ['伟', '芳', '娜', '秀英', '敏', '静', '丽', '强', '磊', '军', '洋', '勇', '艳', '杰', '娟', '涛', '明', '超', '秀兰', '霞'];
const surname = surnames[Math.floor(Math.random() * surnames.length)];
const name = names[Math.floor(Math.random() * names.length)];
if (name.length === 1) {
return surname + '×' + name;
} else {
return surname + name.charAt(0) + '×' + name.slice(1);
}
}
// 生成随机金额
function generateRandomAmount() {
const amounts = [50, 88, 128, 188, 258, 388, 520, 666, 888, 999, 1288, 1688, 1888, 2088, 2588, 2888, 3088, 3588, 3888, 5088];
return amounts[Math.floor(Math.random() * amounts.length)];
}
// 生成记录数据
function generateRecords(count) {
const records = [];
for (let i = 0; i {
const li = document.createElement('li');
li.className = 'record-item';
li.innerHTML = `
${record.name}
¥${record.amount}
`;
container.appendChild(li);
});
}
// 初始化数据
const fixedRecordsData = generateRecords(3);
const scrollingRecordsData = generateRecords(14); // 多生成一些用于循环
// 渲染固定记录
renderRecords('fixedRecords', fixedRecordsData, true);
// 渲染滚动记录(重复一次以实现无缝循环)
const scrollingContent = [...scrollingRecordsData, ...scrollingRecordsData];
renderRecords('scrollingRecords', scrollingContent);
// 每30秒更新一次数据
setInterval(() => {
const newFixedRecords = generateRecords(3);
const newScrollingRecords = generateRecords(14);
const newScrollingContent = [...newScrollingRecords, ...newScrollingRecords];
renderRecords('fixedRecords', newFixedRecords, true);
renderRecords('scrollingRecords', newScrollingContent);
}, 30000);