function getCodeStatus(e,t){window.getCodeStatusTimeOut=setTimeout(function(){$.ajax({url:contextPath+"/client/getScanState.do",data:{recordId:e},success:function(t){1==t.data.scanState?(clearTimeout(window.getCodeStatusTimeOut),$("#pickUpThePopUpTwo").modal("hide"),$("#xiquePermission").modal("hide"),$("#memberDay").text(t.data.presentMemberDay),$("#vipTwoDaysPopUp").modal("show")):getCodeStatus(e,3e3)}})},t)}function getCodeStatusR(e,t){window.getCodeStatusTimeOutR=setTimeout(function(){$.ajax({url:contextPath+"/client/getScanState.do",data:{recordId:e},success:function(t){1==t.data.scanState?(clearTimeout(window.getCodeStatusTimeOutR),$("#registerSuccess").modal("hide"),$("#memberDayR").text(t.data.presentMemberDay),$("#vipTwoDaysPopUpRegister").modal("show")):getCodeStatusR(e,3e3)}})},t)}function getChatCode(t,e){var o,a=Array.from(e.children);a.length&&a.forEach(t=>e.removeChild(t)),o&&o.clear(),setTimeout(function(){null!=e&&""!=e&&(o=new QRCode(e,{width:160,height:160})).makeCode(t)})}$(function(){$(".modal").on("show.bs.modal",function(){$("body").attr("style","overflow: hidden !important")}),$(".modal").on("hide.bs.modal",function(){$("body").attr("style","overflow: auto")})});