Chỉ sử dụng cho số {phone}<\/div>';i+="<\/div>";i=i.replace("{email}",n.email).replace("{phone}",n.phone);$(".productbox-bhxapi div._voucher").append(i)}else $(".voucherproduct-bhx .voucher-error").text(t.message),$(".voucherproduct-bhx .voucher-error").removeClass("hidden"),isMobile&&($(".productbox-bhxapi div._voucher").addClass("hide-voucher-note"),$(".voucherproduct-bhx .voucher-note").hide())},error:function(){pdbxbhxapi.loading=!1}})}},checkValid:function(n){var i=$(".voucherproduct-bhx input[name=email]").val(),r=$(".voucherproduct-bhx input[name=phone]").val(),t;if(n=="email"||n==undefined){if(i=="")return $(".voucherproduct-bhx .voucher-error").text("Email không được để trống"),$(".voucherproduct-bhx .voucher-error").removeClass("hidden"),$(".voucherproduct-bhx input[name=email]").addClass("input-warning"),$(".voucherproduct-bhx button").attr("disabled","disabled"),!1;if(t=pdbxbhxapi.validEmail(),!t)return $(".voucherproduct-bhx button").attr("disabled","disabled"),!1}if(n=="phone"||n==undefined){if(r=="")return $(".voucherproduct-bhx .voucher-error").text("Số điện thoại không được để trống"),$(".voucherproduct-bhx .voucher-error").removeClass("hidden"),$(".voucherproduct-bhx input[name=phone]").addClass("input-warning"),$(".voucherproduct-bhx button").attr("disabled","disabled"),!1;if(t=pdbxbhxapi.validPhone(),!t)return $(".voucherproduct-bhx button").attr("disabled","disabled"),!1}return n=="email"&&r!=""&&(t=pdbxbhxapi.validPhone(),!t)?($(".voucherproduct-bhx button").attr("disabled","disabled"),!1):n=="phone"&&i!=""&&(t=pdbxbhxapi.validEmail(),!t)?($(".voucherproduct-bhx button").attr("disabled","disabled"),!1):r!=""&&i!=""?($(".voucherproduct-bhx .voucher-error").addClass("hidden"),$(".voucherproduct-bhx input").removeClass("input-warning"),$(".voucherproduct-bhx button").removeAttr("disabled"),!0):void 0},checkEmail:function(n){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},checkPhone:function(n){return/^[0-9]+$/.test(n)},checkActiveSubmit:function(){var n=$(".voucherproduct-bhx input[name=phone]").val(),t=$(".voucherproduct-bhx input[name=email]").val();pdbxbhxapi.checkPhone(n)&&pdbxbhxapi.checkEmail(t)&&($(".voucherproduct-bhx button").removeAttr("disabled"),$(".voucherproduct-bhx .voucher-error").addClass("hidden"),$(".voucherproduct-bhx input").removeClass("input-warning"));pdbxbhxapi.checkPhone(n)&&($(".voucherproduct-bhx input[name=phone]").removeClass("input-warning"),$(".voucherproduct-bhx .voucher-error").text().indexOf("Số điện thoại")!=-1&&$(".voucherproduct-bhx .voucher-error").addClass("hidden"));pdbxbhxapi.checkEmail(t)&&($(".voucherproduct-bhx input[name=email]").removeClass("input-warning"),$(".voucherproduct-bhx .voucher-error").text().indexOf("Email")!=-1&&$(".voucherproduct-bhx .voucher-error").addClass("hidden"))},isNumberKey:function(n){var t=n.which?n.which:n.keyCode;return t!==46&&t>31&&(t<48||t>57)?!1:!0}};onloadCallbackcaptcha_1318718959=function(){var t=$(form.find(".submit")[0]),i,n;t.after("
<\/div>");i=!1;n=!1;t.clone(!1,!1).unbind("click").on("click",function(){return n||(n=!0,pdbxbhxapi.sendCoupon(),setTimeout(()=>{n=!1},5e3)),i}).prependTo(form.find(".dcap")[0]).each(function(){t.hide()})};flagPopupHTML=!1;_cusIdKey=window.isRunLive?"_customerId":window.isStaging?"_customerId_Staging":"_customerId_Beta";viewPage="";$(document).ready(function(){$(".ul-star .iconratingnew-star--big").click(function(){clickStar($(this).data("val"),this)})});const gbl_siteId=1;$(document).ready(function(){isHasSub&&($(".dropdownsearch").click(function(){$(this).find("ul").slideToggle(300)}),$(".dropdownsearch ul li").click(function(){$(".dropdownsearch ul li").removeClass("active");$(this).addClass("active");$(".dropdownsearch a#type").attr("data-id",$(this).data("id"));$(".dropdownsearch a#type").html($(this).text())}));$(".main-menu .phukien").hover(function(){$(".bg-black").length>0&&closePopup()},function(){});setTimeout(function(){var t=$(".linkversion").attr("href"),n;t!=undefined&&t.includes("issub")&&(hrefnewdv=location.href,n=location.pathname+location.search,hrefnewdv=location.pathname.includes("?")?urlRoot+n+"&sclient=mobile"+location.hash:urlRoot+n+"?sclient=mobile"+location.hash,$(".linkversion").attr("href",hrefnewdv))},600);$(".main-menu li").length>0&&$(".main-menu li").each(function(){if(location.pathname.split("/")[1]==$(this).find("a").attr("href").replace("/",""))return $(this).addClass("active"),!1});$(".header__listtop .divitem").length>0&&$(".header__listtop .divitem").each(function(){if(location.pathname.includes($(this).find("a").attr("href")))return $(this).addClass("active"),!1})});$(document).ready(function(){$(".open-menu").click(function(){$(".show-menu").addClass("active");$(".box-fixed").addClass("active");$("body").css({overflow:"hidden"})});$(".btn-closemenu").click(function(){$(".show-menu").removeClass("active");$(".box-fixed").removeClass("active");$("body").css({overflow:"scroll"})});$(".header__main .main-menu li").each(function(n,t){n>parseInt($(".header__main .main-menu li").length/2)&&$(t).addClass("show-left")});$(".header.v2024 .main-menu li").mouseover(function(){$(this).find("img.lazy-menu").each(function(){$(this).data("src")!=""&&($(this).attr("src",$(this).data("src")),$(this).removeAttr("data-src"))})})});
ĐĂNG NHẬP
Hãy đăng nhập để comment, theo dõi các hồ sơ cá nhân và sử dụng dịch vụ nâng cao khác trên trang Tin Công Nghệ của
Thế Giới Di Động
Tất cả thông tin người dùng được bảo mật theo quy định của pháp luật Việt Nam. Khi bạn đăng nhập, bạn đồng ý với Các điều khoản sử dụng và Thoả thuận về cung cấp và sử dụng Mạng Xã Hội.