?//顯示二維碼 $(function() { var store_url = location.href; jQuery('#qrcode').qrcode({ render: "table", width: 200, height: 180, correctLevel:0, text: store_url }); }) //清除空格 $(function() { $(".clear").empty(); }) //團購 function TuanGou() { var a = "0"; var b = "0"; var c = "0"; if (exist('id_0')) { a = $("#id_0").val(); } if (exist('id_1')) { b = $("#id_1").val(); } if (exist('id_2')) { c = $("#id_2").val(); } var chid = $("#chid").val(); var str = a + "-" + b + "-" + c; location.href = "http://www.askci.com/tuan/onlinebuy/" + chid + "/" + str; } //隱藏 $(function() { //套餐 if (exist("neiyin_0") && exist("neiyin_1") && exist("neiyin_2")) { $("#order_xiangguan div").eq(11).css("display", "none"); } else if (exist("neiyin_0") && exist("neiyin_1")) { $("#order_xiangguan div").eq(7).css("display", "none"); } else if (exist("neiyin_0")) { $("#order_xiangguan div").eq(3).css("display", "none"); } else { $("#goumai_display").css("display", "none"); } //送貨 if (exist('isLock_value')) { var isLock = $("#isLock_value").val(); if (isLock == "禁用" || isLock == null) { $("#order_isLock").css("display", "none"); } } var a = "0"; var b = "0"; var c = "0"; if (exist('price_0')) { a = $("#price_0").val(); } if (exist('price_1')) { b = $("#price_1").val(); } if (exist('price_2')) { c = $("#price_2").val(); } var zong = parseFloat(a) + parseFloat(b) + parseFloat(c); var zhekou = parseFloat(zong) * 0.95; var sheng = parseFloat(zong) - parseFloat(zhekou); if (exist('quan_price')) { $("#quan_price").html(zhekou); } if (exist('jiesheng_price')) { $("#jiesheng_price").html(sheng); } }) /* 搜索 */ //function SerachValues_neiYe(obj) { // var keyWrods; // if (obj == 1) { // keyWrods = $.trim($("#keyWord_neiye1").val()); // } // else if (obj == 2) { // keyWrods = $.trim($("#keyWord_neiye2").val()); // } // else if (obj == 3) { // keyWrods = $.trim($("#search").val()); // } // var filterKeys = "報告|報告|數據|數據|公司|項目|項目|企業|企業|咨詢|咨詢|新聞|新聞|行業|行業|分類|分類|市場|市場|資訊|資訊|關鍵字|關鍵字|研究報告|研究報告|英文報告|英文報告|企業研究|企業研究"; //過濾的搜索關鍵字,以"|"分隔 // if (keyWrods == "") // alert("請輸入關鍵字"); // else if (keyWrods.length < 2) // alert("輸入字數至少兩個"); // else if (IsFilterKey(keyWrods, filterKeys))//過濾搜索 // alert("請輸入其他關鍵字"); // else { // var S_Url = "http://www.askci.com/search/1/baogao/" + encodeURI(keyWrods) + "/"; // if (document.location.href.indexOf("big5.askci.com") > -1)//繁體 // S_Url = S_Url.replace("www.askci.com", "big5.askci.com"); // window.open(S_Url); // } //} /* 簡繁轉換 */ $(function() { var url = document.location.href; var ftUrl = ""; if (url.indexOf("http://big5") < 0)//簡體轉繁體 { if (url.indexOf("http://www.askci.com") > -1) { ftUrl = url.replace("http://www", "http://big5"); } else if (url.indexOf("http://xmk.askci.com/") > -1) { ftUrl = url.replace("http://xmk.askci.com/", "http://big5.askci.com/xmk/"); } else if (url.indexOf("http://syjhs.askci.com/") > -1) { ftUrl = url.replace("http://syjhs.askci.com/", "http://big5.askci.com/syjhs/"); } else if (url.indexOf("http://ipo.askci.com/") > -1) { ftUrl = url.replace("http://ipo.askci.com/", "http://big5.askci.com/ipo/"); } else if (url.indexOf("http://kybg.askci.com/") > -1) { ftUrl = url.replace("http://kybg.askci.com/", "http://big5.askci.com/kybg/"); } else if (url.indexOf("http://www.askci.com/industry/") > -1) { ftUrl = url.replace("http://www.askci.com/industry/", "http://big5.askci.com/industry/"); } } else if (url.indexOf("http://big5") > -1) { if (url.indexOf("http://big5.askci.com/xmk/") > -1) { ftUrl = url.replace("http://big5.askci.com/xmk/", "http://xmk.askci.com/"); } else if (url.indexOf("http://big5.askci.com/syjhs/") > -1) { ftUrl = url.replace("http://big5.askci.com/syjhs/", "http://syjhs.askci.com/"); } else if (url.indexOf("http://big5.askci.com/kybg/") > -1) { ftUrl = url.replace("http://big5.askci.com/kybg/", "http://kybg.askci.com/"); } else if (url.indexOf("http://big5.askci.com/ipo/") > -1) { ftUrl = url.replace("http://big5.askci.com/ipo/", "http://ipo.askci.com/"); } else if (url.indexOf("http://big5.askci.com/qypx/") > -1) { ftUrl = url.replace("http://big5.askci.com/qypx/", "http://qypx.askci.com/"); } else { ftUrl = url.replace("http://big5", "http://www"); } } $("a[tag='fanti']").attr("href", ftUrl); }) /* 來源整理 */ $(function() { var spanSoure = $("span[tag='askci-Soure']").html(); if (spanSoure != "") { $("span[tag='askci-span-site']").hide(); } else { $("span[tag='askci-span-Soure']").hide(); } }) //如果圖片加載失敗,加載默認圖片 $(function () { //如果圖片不存在,加載默認圖片 $("img").on("error", function () { var img = event.srcElement; if (img.src != "http://image1.askci.com/defaulterror.jpg") { img.src = "http://image1.askci.com/defaulterror.jpg"; img.onerror = null; //控制不要一直跳動 } }); });