Commit c9204c60 authored by 何波's avatar 何波

高度bug修复

parent 717e4c4c
...@@ -1264,15 +1264,25 @@ ...@@ -1264,15 +1264,25 @@
</html> </html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<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({ window.parent.postMessage({
type: 'STATUS_HEIGHT', type: 'STATUS_HEIGHT',
value: 340 value: h
}, '*'); }, '*');
}); }
window.parent.postMessage({ window.parent.postMessage({
type: 'STATUS_HEIGHT', type: 'STATUS_HEIGHT',
value: 340 value: 360
}, '*'); }, '*');
function onBack(){ function onBack(){
window.history.back(); window.history.back();
......
...@@ -594,17 +594,26 @@ ...@@ -594,17 +594,26 @@
</div> </div>
</body> </body>
<script> <script>
window.addEventListener('pageshow', () => { document.querySelectorAll('.tableLBtn_box').forEach(el => {
setTimeout(sendHeight(), 300); el.addEventListener('mouseenter', () => {
refreshHeight(560);
});
el.addEventListener('mouseleave', () => {
refreshHeight(540);
});
}); });
function sendHeight() {
const pageHeight = document.body.scrollHeight; function refreshHeight(h) {
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({ window.parent.postMessage({
type: 'STATUS_HEIGHT', type: 'STATUS_HEIGHT',
value: pageHeight + 20 value: h
}, '*'); }, '*');
} }
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 540
}, '*');
document.querySelectorAll('.downloadBox li').forEach((el, index) => { document.querySelectorAll('.downloadBox li').forEach((el, index) => {
el.addEventListener('click', function () { el.addEventListener('click', function () {
submitSelect('0', String(index + 1)); 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