width: 160, height: 160, text: temUtf16to8(apkUrl), typeNumber: -1, correctLevel: 2, background: "#ffffff", foreground: "#000000" }); } if ($("#cms_qrcode_ios").length > 0) { $("#cms_qrcode_ios").qrcode({ render: "canvas", width: 160, height: 160, text: iosUrl, typeNumber: -1, correctLevel: 2, background: "#ffffff", foreground: "#000000" }); } function isH5() { var ua = navigator.userAgent; if (ua.indexOf("Mobile") > -1 || ua.indexOf("Android") > -1 || ua.indexOf("iPhone") > -1 || ua.indexOf("iPad") > -1) { return true; } else { return false; } } const pcState = isH5() $(".cms_apk_download").click(() => { if (isH5()) { window.location.href = "" } else { } }) $(".cms_ios_download").click(() => { if (isH5()) { window.location.href = "/libs/ios/downloads.html" } else { } }) $(window).scroll(function () { if ($(window).scrollTop() >= 500) { $('#cms_go_top').css('display', 'block'); } else { $('#cms_go_top').css('display', 'none'); } }); $('#cms_go_top').clic