|
@@ -158,20 +158,20 @@
|
|
|
margin-top: 18px;
|
|
|
}
|
|
|
.record-item {
|
|
|
- width: 315px;
|
|
|
- height: 72px;
|
|
|
+ width: 315rem;
|
|
|
+ height: 72rem;
|
|
|
background: #FEDFC9;
|
|
|
- border-radius: 10px;
|
|
|
- padding: 9px 10px 8px;
|
|
|
+ border-radius: 10remx;
|
|
|
+ padding: 9rem 10rem 8rem;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- margin: 0 auto 10px;
|
|
|
+ margin: 0 auto 10rem;
|
|
|
}
|
|
|
.prize-img {
|
|
|
- width: 55px;
|
|
|
- height: 55px;
|
|
|
- border-radius: 10px;
|
|
|
- margin-right: 8px;
|
|
|
+ width: 55rem;
|
|
|
+ height: 55rem;
|
|
|
+ border-radius: 10rem;
|
|
|
+ margin-right: 8rem;
|
|
|
}
|
|
|
.get-btn {
|
|
|
width: 72px;
|
|
@@ -183,6 +183,7 @@
|
|
|
margin-left: 30px;
|
|
|
}
|
|
|
.prize-name {
|
|
|
+ font-size: 14rem;
|
|
|
font-weight: 500;
|
|
|
color: #FF4646;
|
|
|
}
|
|
@@ -315,6 +316,7 @@
|
|
|
z-index: 1000; /* 确保遮罩层在顶部 */
|
|
|
transition: opacity 0.5s ease; /* 可选:添加透明度过渡效果 */
|
|
|
display: none;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
.prize-content {
|
|
|
width: fit-content;
|
|
@@ -1468,7 +1470,7 @@
|
|
|
<div class="prize-name">${record.name}</div>
|
|
|
<div class="prize-time">${timeFormat(record.raffleTime)}</div>
|
|
|
</div>
|
|
|
- <button id="toggleButton" ${(record.status==-1 || record.status==0) ? 'disabled' : ''} class="get-btn" onclick="handleOpenForm(${record.id})">${record.status ? '已领取' : (record.status==-1 ? '审核中' : '领取')}</button>
|
|
|
+ <button id="toggleButton" ${(record.status==-1 || record.status==1) ? 'disabled' : ''} class="get-btn" onclick="handleOpenForm(${record.id})">${record.status ? '已领取' : (record.status==-1 ? '审核中' : '领取')}</button>
|
|
|
</div>`
|
|
|
});
|
|
|
},
|
|
@@ -1485,6 +1487,7 @@
|
|
|
document.getElementById('overlay').style.display = 'flex';
|
|
|
var div = document.getElementById('popForm');
|
|
|
div.classList.add('show');
|
|
|
+ document.body.style.overflow = 'hidden';
|
|
|
};
|
|
|
// 切换tab
|
|
|
function changeTab(evt, tabName) {
|
|
@@ -1540,6 +1543,7 @@
|
|
|
var div = document.getElementById('popForm');
|
|
|
div.classList.remove('show');
|
|
|
raffleRecord()
|
|
|
+ document.body.style.overflow = 'auto';
|
|
|
} else {
|
|
|
mui.toast(res.msg);
|
|
|
}
|
|
@@ -1556,6 +1560,7 @@
|
|
|
document.getElementById('overlay').style.display = 'none';
|
|
|
var div = document.getElementById('popForm');
|
|
|
div.classList.remove('show');
|
|
|
+ document.body.style.overflow = 'auto';
|
|
|
});
|
|
|
if (document.getElementById('dialog-btn-money')) {
|
|
|
document.getElementById('dialog-btn-money').addEventListener('click', function() {
|
|
@@ -1575,12 +1580,14 @@
|
|
|
});
|
|
|
document.getElementById('eventNotice').addEventListener('click', function() {
|
|
|
document.getElementById('notice').style.display = 'block';
|
|
|
+ document.body.style.overflow = 'hidden';
|
|
|
});
|
|
|
document.getElementById('notice').addEventListener('click', function() {
|
|
|
var div = document.getElementById('notice-body');
|
|
|
// 检查点击事件的目标是否不是div本身或其子元素
|
|
|
if (!div.contains(event.target)) {
|
|
|
document.getElementById('notice').style.display = 'none';
|
|
|
+ document.body.style.overflow = 'auto';
|
|
|
}
|
|
|
});
|
|
|
function timeFormat (time, format = 'yyyy-MM-dd hh:mm:ss') {
|