SunnyMedicalDevice(Shenzhen)Co.,Ltd.
Address:1/Fand401,ZhongtianxinBuildingB,LonggangDistrict,Shenzhen,Guangdong,China518172
Contact:JoanneZhang
Telephone:+8675584532326
Mobile:+8613823100608
Email:sunnymedical_cn@139.com
Postcode:518172
$(function(){
$(".showWXCode").click(function(e){
$(".toollist_WxQqcode").fadeIn(100);
e.preventDefault();
openModal();
});
$(".toollist_WxQqcode").click(function(e){
$(this).fadeOut(100);
e.preventDefault()
closeModal();
});
});
//解决弹出窗滚动时,body也滚动的问题
varModalHelper=(function(bodyCls){
varscrollTop;
return{
afterOpen:function(){
scrollTop=document.scrollingElement.scrollTop;
document.body.classList.add(bodyCls);
document.body.style.top=-scrollTop+'px';
},
beforeClose:function(){
document.body.classList.remove(bodyCls);
//scrollToplostaftersetposition:fixed,restoreitback.
document.scrollingElement.scrollTop=scrollTop;
}
};
})('modal-open');
functionopenModal(){
ModalHelper.afterOpen();
$('.Modal').addClass('active');
}
functioncloseModal(){
ModalHelper.beforeClose();
$('.Modal').removeClass('active');
}