Authored by weiqingting

提交

... ... @@ -74,6 +74,12 @@
</div>
</div>
</div>
<div id="print_wrap" style='display:none'>
<div class='print_qrcode'>
<img src='http://localhost:5002/img/home/qrcode.png'/>
<div class='print_content'>
</div>
</div>
</div>
</div>
</div>
... ...
... ... @@ -39,7 +39,8 @@ $('.next', '.qrcmain-switch').click(function() {
slide.next();
});
$('.btn-qcode').click(function(){
document.body.innerHTML=$("ul li",".qrctxt").eq(slide.options.index).html();
$(".print_content").html($(".qrctxt").html());
document.body.innerHTML=$("#print_wrap").show().html();
window.print();
return false;
});
... ...
... ... @@ -132,4 +132,28 @@
opacity: 0.55;
}
}
}
.print_qrcode{
width:613px;
height:860px;
margin: 0 auto;
position:relative;
.print_content{
width:109px;
position:absolute;
top:54px;
left:360px;
li{
margin-bottom:2px;
img{
width:109px;
height:109px;
}
p{
font-size:12px;
line-height: 16px;
}
}
}
}
... ...