Commit c9204c60 authored by 何波's avatar 何波

高度bug修复

parent 717e4c4c
......@@ -1264,15 +1264,25 @@
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script>
window.addEventListener('pageshow', () => {
document.querySelectorAll('.tableLBtn_box').forEach(el => {
el.addEventListener('mouseenter', () => {
refreshHeight(380);
});
el.addEventListener('mouseleave', () => {
refreshHeight(360);
});
});
function refreshHeight(h) {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
value: h
}, '*');
});
}
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
value: 360
}, '*');
function onBack(){
window.history.back();
......
......@@ -594,17 +594,26 @@
</div>
</body>
<script>
window.addEventListener('pageshow', () => {
setTimeout(sendHeight(), 300);
document.querySelectorAll('.tableLBtn_box').forEach(el => {
el.addEventListener('mouseenter', () => {
refreshHeight(560);
});
el.addEventListener('mouseleave', () => {
refreshHeight(540);
});
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
function refreshHeight(h) {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
value: h
}, '*');
}
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 540
}, '*');
document.querySelectorAll('.downloadBox li').forEach((el, index) => {
el.addEventListener('click', function () {
submitSelect('0', String(index + 1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment