/* * =========================== * * 棣栭〉 => index * @author : LiChaoJun * @datetime : 2019/1/26 * * =========================== */ (function() { //var bannerSwiperInit = function() { // var bannerSwiper = new Swiper('#js_banner', { // loop: true, // pagination: '.swiper-pagination', // paginationClickable: true, // autoplay: 5000//璁剧疆鑷姩寰幆鎾斁 // }) //} $('.product-box-li').click(function () { $(".popup-wrap").show(); $("#js_auth_popup").hide(); $("#js_code_popup").hide(); $("#js_product_popup").hide(); $("#productdemobox").show(); var title = $(this).data("title"); $('#pdome').html(title) }) var clickFunc = function() { $(".product-nav-ul li").on("hover", function() { var index = $(this).index(); if (!$(this).hasClass("active")) { $(this).addClass("active").siblings().removeClass("active"); $(".product-content-ul li").eq(index).addClass("active").siblings().removeClass("active"); } }) } /*------ 鎵ц鏂规硶 ------*/ $(function() { //annerSwiperInit(); clickFunc(); }); }()); //function closedemo() { // $(".popup-wrap").hide(); // $(".login-popup-box").addClass("active"); // $(".industry-popup-box").addClass("active"); //} //function onTab(id) { // $("#industrybox").hide(); // $("*[id$=hf_verid]").val(id); // $("#verbox").show(); //} //function showdemo() { // var item = window.localStorage.getItem("users"); // if (item != null) { // var id = JSON.parse(item); // var client = { id: encodeURIComponent(id) }; // $.ajax({ // type: "POST", // url: "/Handler/demos/CheckIsVaild.ashx?t=" + Math.random(), // async: false, // dataType: "json", // data: client, // success: function (data) { // var code = data.Code; // if (code == 0) { // alert(data.msg); // return; // } // $(".popup-wrap").show(); // if (code == 1) { // //鏄剧ず婕旂ず璐﹀彿 // $(".industry-popup-box").addClass("active"); // $(".login-popup-box").removeClass("active"); // } else if (code == 2) { // //鏄剧ず鎵嬫満楠岃瘉 // $(".industry-popup-box").removeClass("active"); // $(".login-popup-box").addClass("active"); // } // } // }); // } //} function changeProductId() { $(".popup-wrap").show(); $("#js_auth_popup").hide(); $("#js_code_popup").hide(); $("#productdemobox").hide(); $("#js_product_popup").show(); } function tabVer(id) { $(".industry-nav-ul").find("li").removeClass("active"); $("#tb" + id).addClass("active"); $("#hf_verid").val(id); } //function tabIndustry(industry) { // var item = window.localStorage.getItem("users"); // if (item != null) { // var id = JSON.parse(item); // var productid = 14; // var verid = $("#hf_verid").val(); // //杩涘叆婕旂ず璐﹀彿 // AddDemo(id, productid, verid, industry, 1); // } //} function tabIndustry(industry) { var verid = $("#hf_verid").val(); if (verid == 11) {//erp // productid = 14; verid = 0; productid =35; } else if (verid == 12) {//杩涢攢瀛 verid = 0; productid = 36; } else if (verid == 46) {//鐧惧窛 verid = 0; productid = 46; $("#hf_verid").val(verid); } //else if (industry == 4) {//浜戣储鍔 // productid = 45; // verid = 0; // $("#hf_verid").val(verid); //} var position = 1; var loginurl = ""; enterDemo(productid, verid, industry, position, loginurl); } //浜戣储鍔 function tabIndustryYcw(productid) { $("#hf_productid").val(productid); var industry = 4; var position = 8; var loginurl = ""; var verid = 0; enterDemo(productid, verid, industry, position, loginurl); } function CheckWeChat() { var item = window.localStorage.getItem("users"); var id = ''; if (item != null) { var id = JSON.parse(item); } $.ajax({ type: "POST", url: "/WebChat/Handler/CheckScan.ashx?t=" + Math.random() + '&sceneid=' + id, async: false, dataType: "json", success: function (result) { var code = result.Code; if (code == 1) { myStopFunction();//鍋滄杞 var eventName = result.EventName; if (eventName == "subscribe") { //鎵嬫満鍙烽獙璇佺爜 $("#js_auth_popup").hide(); $("#productdemobox").hide(); $("#js_code_popup").show(); } else { //杩涘叆婕旂ず璐﹀彿 $("#js_auth_popup").hide(); $("#js_code_popup").hide(); $("#js_product_popup").show(); } } } }); }