//=== viewid:dh_style_28_1683867859931,dh_style_28_1683960397826 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile_boolean = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ }) //=== viewid:dh_style_28_1683960397826 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_28_1683960397826(){ $("#dh_style_28_1683960397826 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1683960397826(); }) $(function(){ $("#dh_style_28_1683960397826 .fa-navicon").click(function(){ $("#dh_style_28_1683960397826").addClass('clearTransform'); $("#dh_style_28_1683960397826 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1683960397826(); $("#dh_style_28_1683960397826 .subBox").css("top",$("#dh_style_28_1683960397826 .menuUl_box").height()); if($("#dh_style_28_1683960397826 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1683960397826 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1683960397826 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1683960397826 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1683960397826 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1683960397826 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1683960397826 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1683960397826 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1683960397826 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1683960397826 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1683960397826 .menuStyle_28').append(``); $('#dh_style_28_1683960397826 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1683960397826 .menuStyle_28').append(``); },100); }); //=== viewid:prodPic_style_01_1683961070123 ===// if (typeof change_prod_spec_img_style_04 != "function") { function change_prod_spec_img_style_04(spec_img) { var first_li = $('.style_04.prodPic .pdpSlider .slider_box ul'); if (first_li) { first_li.empty(); if (typeof spec_img == "string") spec_img = spec_img.split(','); $.each(spec_img, function () { first_li.append('
  • '); }); first_li.children('li').eq(0).show(); } var first_l = $('.style_04.prodPic .thumb_index_box .img_thumb_box ul'); if (first_l) { first_l.empty(); if (typeof spec_img == "string") spec_img = spec_img.split(','); $.each(spec_img,function (i) { first_l.append('
  • '); }) } var first_a = $('.style_04.prodPic .pdpSlider .m_slider_box ul'); if (first_a) { first_a.empty(); var temp_str = ''; if (typeof spec_img == "string") spec_img = spec_img.split(','); $.each(spec_img,function (i) { temp_str = '
  • liNumprodPic_style_01_1683961070123-1){ liIndexprodPic_style_01_1683961070123 = 0; $("#prodPic_style_01_1683961070123 .pdp_module_slider .img_thumb_list").animate({"margin-left":"0"}); } prodPic_style_01_1683961070123setShowImg(liIndexprodPic_style_01_1683961070123); if(liIndexprodPic_style_01_1683961070123==4 || liIndexprodPic_style_01_1683961070123==8){ $("#prodPic_style_01_1683961070123 .pdp_module_slider .img_thumb_list").animate({"margin-left":-liIndexprodPic_style_01_1683961070123*(liwidthprodPic_style_01_1683961070123+6)},200); } }); // 澶氳鏍煎垏鎹㈣疆鎾 function prodPic_style_01_1683961070123newAnimiIn(){ liIndexprodPic_style_01_1683961070123=0; $("#prodPic_style_01_1683961070123 .pdp_module_slider .img_thumb_list").animate({"margin-left":0}); $("#prodPic_style_01_1683961070123 .pdp_module_slider .slider_box .img_list li").eq(0).show(); } function prodPic_style_01_1683961070123setShowImg(index){ $("#prodPic_style_01_1683961070123 .m_img_list li").eq(index).addClass("active").siblings().removeClass("active"); $("#prodPic_style_01_1683961070123 .img_list li").eq(index).addClass("active").siblings().removeClass("active"); $("#prodPic_style_01_1683961070123 .img_list li").eq(index).css("display","list-item").siblings().css("display","none"); $("#prodPic_style_01_1683961070123 .img_thumb_list li").eq(index).addClass("active").siblings().removeClass("active"); } //=== viewid:prodPic_style_01_1683961070123,prodPic_style_01_1684050240003 ===// if (typeof change_prod_spec_img != "function") { function change_prod_spec_img(spec_img) { if (spec_img) { if (typeof change_prod_spec_img_style_01 == "function") { change_prod_spec_img_style_01(spec_img); } if (typeof change_prod_spec_img_style_02 == "function") { change_prod_spec_img_style_02(spec_img); } if (typeof change_prod_spec_img_style_03 == "function") { change_prod_spec_img_style_03(spec_img); } if (typeof change_prod_spec_img_style_04 == "function") { change_prod_spec_img_style_04(spec_img); } } } } //=== viewid:prodInfor_style_04_1683961443533 ===// var SpecDebug = false; /** * @Content:鑾峰彇鏌愪釜鍖哄煙(div id="#spec_{s_Hash}")鎵€閫夋嫨鐨勫悇涓鏍兼墍閫変腑鐨 * @Author:zhaogh * @Version:10.0.0 * @Param:s_Hash varchar 鍖哄煙鐗瑰緛 * @Return:[{DataIndex:0,DataVal:'#FFFFF'}] */ $.ajaxSetup({ cache: false }); function SpecCurSelect(s_Hash){ var arrReturn = []; var curArea = $("#spec_"+s_Hash); $(".sys_item_spec .sys_item_specpara",curArea).each(function(){ $("li",$(this)).each(function(){ if($(this).hasClass('selected')){ var curData = { 'DataIndex' : $(this).data('index'), 'DataVal' : $(this).data('aid'), }; arrReturn.push(curData); } }); }); return arrReturn; } function SpecGetAttrPrice(s_Hash,is_int){//鏄惁鍙栨暣 if(typeof(is_int)=="undefined") var is_int = 0; var curArea = $("#spec_"+s_Hash); var defaultstats=true; var _val=''; var _resp={ mktprice:".sys_item_mktprice", price:".sys_item_price" } $(".sys_item_spec .sys_item_specpara",curArea).each(function(){ var i=$(this); var v=i.attr("data-attrval"); if(!v){ defaultstats=false; }else{ _val+=_val!=""?"_":""; _val+=v; } }); var curResult = {}; if(!!defaultstats){ if (!sys_item.hasOwnProperty('sys_attrprice') || !sys_item['sys_attrprice'].hasOwnProperty(s_Hash) || !sys_item['sys_attrprice'][s_Hash].hasOwnProperty(_val)) { return false; } var curResult = sys_item['sys_attrprice'][s_Hash][_val]; _price = curResult['price']; var backprice = _price; //_price = sys_item['sys_attrprice'][s_Hash][_val]['price']; SpecIDSpecPriceSet(s_Hash,sys_item['sys_attrprice'][s_Hash][_val]['IDSpecPrice']); SpecIDSpecStockSet(s_Hash,sys_item['sys_attrnum'][s_Hash][_val]['num']); if(sys_item['sys_attrnum'][s_Hash][_val]['num']>0){//涓嶆槸涓嶉檺搴撳瓨鐨 var curNum = parseInt($("#"+s_Hash+"_ProdNum").val()); if(!curNum || curNum<1)curNum = 1; var diffNum = sys_item['sys_attrnum'][s_Hash][_val]['num']-sys_item['sys_attrnum'][s_Hash][_val]['nums']; $("#"+s_Hash+"_ProdNum").attr('data-maxnum',diffNum); CheckStock(s_Hash); } //鏇存敼鍥剧墖 if (typeof change_prod_spec_img == "function") change_prod_spec_img(sys_item['sys_attrprice'][s_Hash][_val]['spec_img']); }else{ var curResult = false; var allNum = 0; $.each(sys_item['sys_attrnum'][s_Hash],function(i,item){ allNum = allNum+parseInt(item.num); }); SpecIDSpecStockSet(s_Hash,allNum); //var curResult = sys_item['price'][s_Hash]; //_price = curResult['price']; //_mktprice = sys_item['mktprice']; _price = sys_item['price'][s_Hash]; var backprice = _price; } _price = price_format(_price); //杈撳嚭浠锋牸 var newPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceNewID']); if(newPriceObj){ if(is_int==1){ if(typeof(_price)=='string') _price = _price.replace(/,/g, ""); _price = parseFloat(_price); _price = Math.round(_price); } newPriceObj.text(_price); } if (sys_item['price_id'][s_Hash]['HTMLPriceOldID']) var oldPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceOldID']); if(oldPriceObj){ if(is_int==1){ var oldprice = sys_item['price_old'][s_Hash]; if(typeof(oldprice)=='string') sys_item['price_old'][s_Hash] = oldprice.replace(/,/g, ""); sys_item['price_old'][s_Hash] = parseFloat(sys_item['price_old'][s_Hash]); sys_item['price_old'][s_Hash] = Math.round(sys_item['price_old'][s_Hash]); } oldPriceObj.text(sys_item['price_old'][s_Hash]); } var packagePriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPricePID']); if(packagePriceObj && curResult){ var resPrice = 0; var resPriceFormat = 0.00; if(curResult['price']) { resPrice = curResult['price']; resPriceFormat = curResult['price_format']; $(".packageTips").css("display","none"); } if (curResult['mprice']){ resPrice = curResult['mprice']; resPriceFormat = curResult['mprice_format']; $(".packageTips").css("display","none"); } if(curResult['PackagePrice']) { resPrice = curResult['PackagePrice']; resPriceFormat = curResult['PackagePrice_format']; $(".packageTips").css("display","block"); } if(resPrice){ if(is_int==1){ if(typeof(resPrice)=='string') resPrice = resPrice.replace(/,/g, ""); resPrice = parseFloat(resPrice); resPrice = Math.round(resPrice);//鏄惁鍙栨暣 packagePriceObj.text(resPrice); } else{ packagePriceObj.text(resPriceFormat); } }else{ packagePriceObj.text("鏃?); } } // var memberPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceMID']); // if(memberPriceObj && curResult && curResult["mprice"]){ // if(curResult['mprice']){ // if(is_int==1){ // var mprice = curResult['mprice']; // if(typeof(mprice)=='string') curResult['mprice'] = mprice.replace(/,/g, ""); // curResult['mprice'] = parseFloat(curResult['mprice']); // curResult['mprice'] = Math.round(curResult['mprice']);//鏄惁鍙栨暣 // } // curResult['mprice'] = price_format(curResult['mprice']); // // memberPriceObj.text(curResult['mprice']); // }else{ // memberPriceObj.text("鏃?); // } // } // // //涓婇潰閭d釜mprice鏈変粈涔堢敤鐨勶紝淇婃澃鐪嬬湅锛屾垜鍏堥噸鍐欎竴涓澶氳鏍艰兘澶熸甯镐娇鐢ㄥ厛 by zhaobin // // var PriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPricePID']); // if(PriceObj && curResult && curResult["price"] && !curResult['PackagePrice']){ // if(curResult['price']){ // if(is_int==1) { // var price = curResult['price']; // if(typeof(price)=='string') curResult['price'] = price.replace(/,/g, ""); // // curResult['price'] = parseFloat(curResult['price']); // curResult['price'] = Math.round(curResult['price']);//鏄惁鍙栨暣 // } // // curResult['price'] = price_format(curResult['price']); // // PriceObj.text(curResult['price']); // }else{ // PriceObj.text("鏃?); // } // } } function CheckStock(s_Hash){ var prodnumObj = $("#"+s_Hash+"_ProdNum"); var curNum = parseInt(prodnumObj.val()); var maxNum = parseInt(prodnumObj.data('maxnum')); if(!curNum || curNum<1)curNum = 1; var tipStr = ''; if(lang == 2){ tipStr = 'INV:'; }else if(lang == 0 || lang == 1){ tipStr = '鍓╀綑搴撳瓨:'; }else{ tipStr = remaining_inventory+':'; //return; } if(maxNum 0 && $('body').width() < 767); } function Pt_AddCart(Pt_ID){ var s_PtCartUrl = "http://admin.cnwcloud.cn//diyTools/?mod=ptCart&idweb=70307&Pt_ID="+Pt_ID+"&lang="; if(is_mobile()) window.location = s_PtCartUrl+"&ismobile=1"; else{ document.getElementById("boxName").innerHTML = "璐墿杞?; if(document.getElementById("boxClose"))document.getElementById("boxClose").innserHTML = "鍏抽棴"; document.getElementById("showiframe").src = s_PtCartUrl+"&ismobile=0"; box.Show({width:"900px",height:"500px"}); } } if(typeof ModProdNum ==='undefined'){ function ModProdNum(curHash,i_ActionType){ i_ActionType = i_ActionType==2?2:1; var obj_ProdNum = $("#"+curHash+"_ProdNum"); var obj_ProdNum1 = $("#prodInfor_style_04_1683961443533 .mobile_prodnum"); var i_NewNum = obj_ProdNum.val(); i_NewNum = parseInt(i_NewNum); if(i_ActionType==1){ i_NewNum-= 1; if(i_NewNum<1)i_NewNum = 1; }else{ i_NewNum+= 1; } obj_ProdNum.val(i_NewNum); obj_ProdNum1.val(i_NewNum); // CheckStock(curHash); } } function onAddcart() { addcart('0',70307,0,"admin.cnwcloud.cn"); } if(is_mobile()){ $('#prodInfor_style_04_1683961443533 .probuy_1 input:nth-child(2)').attr('onclick','').unbind('click').click(onAddcart); } var dispatching = $("#prodInfor_style_04_1683961443533 .proInfoStyle01 .diy_farebox select").attr("value") var shopCartBaseUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&idpackage=0"+"&dispatching="+dispatching; if(typeof ProdDetailAddCart === 'undefined'){ function ProdDetailAddCart(s_Hash,i_IDProduct,i_GoBuy,Allspec,view_ID){ if(typeof Allspec=="undefined") Allspec=0; var i_ProdNum = $(view_ID+" input[id $= 'ProdNum']").val(); // alert(i_ProdNum); var pid = i_IDProduct; lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } i_ProdNum = parseInt(i_ProdNum); if(!i_ProdNum || i_ProdNum<1) i_ProdNum = 1; i_GoBuy = parseInt(i_GoBuy); i_GoBuy = i_GoBuy==1?1:0; var i_IDSpecPrice = $(view_ID+" input[id ^= 'IDSpecPrice']").val(); i_IDSpecPrice = parseInt(i_IDSpecPrice); if(i_IDSpecPrice==0){ alert("璇烽€夋嫨浜у搧瑙勬牸"); return; } var shopCartUrl = shopCartBaseUrl; shopCartUrl+= "&lang="+lang; shopCartUrl+= "&act=add"; shopCartUrl+= "&pid="+i_IDProduct; shopCartUrl+= "&num="+i_ProdNum; if(!isNaN(i_IDSpecPrice) && i_IDSpecPrice>0){ shopCartUrl+= "&IDSpecPrice["+i_IDProduct+"]="+i_IDSpecPrice; } shopCartUrl+= "&GoBuy="+i_GoBuy; shopCartUrl+= "&ismobile="+(is_mobile()?1:0); var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent); if(is_mobile() || issafariBrowser){ var res = "0"; var is_virtual = ""; if(res == '1' && is_virtual == 0){ //涓嶅脊鍑鸿喘鐗╄溅 shopCartUrl+= "&use_ajax=1&callback=?"; $.getJSON(shopCartUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = shopCartUrl;//鏈夊緢澶氬ぇ瀹㈡埛闇€姹傜殑锛屼笉瑕侀殢鎰忓紑鍚繖涓垨鑰呭叧闂笂闈㈤偅涓 2017/5/31 } }else{ document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src = shopCartUrl; box.Show({width:"880px",height:"500px"}); } } function prodShowIntent(id,pid,lang){ var boxName = ""; var boxTitle = ""; var boxbotton = ""; var notMustUsername = "0"; var notMustContact = "0"; var notMustAbout = "0"; if(typeof lang=='undefined') lang=0; if(lang == '0'){ lang = Default_isFT if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var prodIntentUrl = 'http://admin.cnwcloud.cn/product/proshowintent.php?id='+id+'&pid='+pid+'&lang='+lang+'&boxName='+boxName+'&boxTitle='+boxTitle+'&boxbotton='+boxbotton+'¬MustUsername='+notMustUsername+'¬MustContact='+notMustContact+'¬MustAbout='+notMustAbout+'&idweb=70307'; if(is_mobile()){ window.location = prodIntentUrl+'&ismobile=1'; }else{ document.getElementById("boxName").innerHTML="浜у搧鎰忓悜鍗?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src = prodIntentUrl; box.Show({width:"450px",height:"350px"}); } } function checkExuser(cb) { $.ajax({ type : "GET", dataType : 'jsonp', jsonp:"jsoncallback", url : "http://admin.cnwcloud.cn/exusers/ajax/check_exuser.php?idweb=70307", data : '', success:function(data){ if (data.code == 200) { if (typeof cb == 'function') { cb(data['data']); } }else{ alert("璇峰厛鐧诲綍"); } }, error:function(){ console.log('error'); } }); } } if(typeof Pt_AddCart !== 'function'){ function Pt_AddCart(Pt_ID){ var s_PtCartUrl = "http://admin.cnwcloud.cn//diyTools/?mod=ptCart&idweb=70307&Pt_ID="+Pt_ID+"{shareOrd}&lang=0"; if(is_mobile()){ window.location = s_PtCartUrl+"ismobile=1"; }else{ document.getElementById("boxName").innerHTML = "鍔犲叆璐墿杞?; if(document.getElementById("boxClose"))document.getElementById("boxClose").innserHTML = "脳"; document.getElementById("showiframe").src = s_PtCartUrl; box.Show({width:"900px",height:"500px"}); } } } if(typeof Group_AddCart !== 'function'){ function Group_AddCart(i_IDProduct,i_IDPackage,isTrade,i_GoBuy,view_ID){ lang=0; if(lang == '0'){ lang = Default_isFT if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var dispatching = $(view_ID+" .proInfoStyle01 .diy_farebox select").attr("value") var i_ProdNum = $(view_ID+" input[id $= 'ProdNum']").val(); i_ProdNum = parseInt(i_ProdNum); var isTrade = parseInt(isTrade); isTrade = (isNaN(isTrade) || isTrade<1) ? 0:isTrade; i_GoBuy = parseInt(i_GoBuy); i_GoBuy = i_GoBuy==1?1:0; var s_ShopCartUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&pid="+i_IDProduct+"&num="+i_ProdNum+"&idpackage="+i_IDPackage+"&act=add&lang="+lang+"&dispatching="+dispatching; var i_IDSpecPrice = $(view_ID+" input[id ^= 'IDSpecPrice']").val(); i_IDSpecPrice = parseInt(i_IDSpecPrice); if(i_IDSpecPrice==0){ alert("璇烽€夋嫨浜у搧瑙勬牸"); return; } if(!isNaN(i_IDSpecPrice) && i_IDSpecPrice>0){ s_ShopCartUrl+= "&IDSpecPrice["+i_IDProduct+"]="+i_IDSpecPrice; } s_ShopCartUrl+= "&GoBuy="+i_GoBuy; // console.log(s_ShopCartUrl); //鍏煎鑻规灉娴忚鍣╯afaricookie,session闂 var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent); if(is_mobile() || issafariBrowser){ window.location = s_ShopCartUrl+"&ismobile=1"+"&dispatching="+dispatching; }else{ document.getElementById("boxName").innerHTML = "绔嬪嵆璐拱"; if(document.getElementById("boxClose"))document.getElementById("boxClose").innserHTML = "脳"; if(isTrade==0){ document.getElementById("showiframe").src = s_ShopCartUrl+"&dispatching="+dispatching; box.Show({width:"900px",height:"500px"}); }else{ document.getElementById("showiframe").src = "http://admin.cnwcloud.cn/product/iframe_product.php?pid="+i_IDProduct+"&wid=70307&lang="+lang+"&idpackage="+i_IDPackage+"&dispatching="+dispatching; box.Show({width:"800px",height:"420px"}); } } } } if(typeof addcart !== 'function'){ function addcart(pid,idweb,lang,jsbbxserver){ var dispatching = $("#prodInfor_style_04_1683961443533 .proInfoStyle01 .diy_farebox select").attr("value") var i_ProdNum = $("#793fed3f6c067c30bc6fa1ca239fca8b_ProdNum").val(); if(is_mobile()){ var locationUrl = "http://"+jsbbxserver+"/exusers/u_cart.php?idweb="+idweb+"&lang="+lang+"&pid="+pid+"&act=add&ismobile=1&num="+i_ProdNum+"&dispatching="+dispatching ; window.location = locationUrl; }else{ document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="http://"+jsbbxserver+"/exusers/u_cart.php?idweb="+idweb+"&pid="+pid+"&act=add&lang="+lang+"&ispc=1"+"&dispatching="+dispatching; box.Show({width:"920px",height:"500px"}); } } } function getThisId(lang,Default_isFT) { if(typeof lang=='undefined') lang=0; if(lang == '0'){ lang = Default_isFT if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } return lang; } if(typeof InteScore_AddCart !== 'function'){ function InteScore_AddCart(url){ lang = getThisId(lang,Default_isFT); var s_InteScoreUrl = "http://admin.cnwcloud.cn/"+url+""; if(is_mobile()){ window.location = s_InteScoreUrl+"&ismobile=1&lang=" + lang; }else{ document.getElementById("boxName").innerHTML = "绉垎鍏戞崲"; if(document.getElementById("boxClose"))document.getElementById("boxClose").innserHTML = "脳"; document.getElementById("showiframe").src = s_InteScoreUrl + "&lang=" + lang; box.Show({width:"900px",height:"500px"}); } } } function BuyPurchase(gid,head_lid) { if (!head_lid) head_lid = 0; var i_IDSpecPrice = $("#IDSpecPrice_793fed3f6c067c30bc6fa1ca239fca8b").val(); if(i_IDSpecPrice == 0){ alert('璇烽€夋嫨瑙勬牸锛?); return; } var i_ProdNum = $("#793fed3f6c067c30bc6fa1ca239fca8b_ProdNum").val(); i_ProdNum = parseInt(i_ProdNum); var url = "gid="+gid+"&head_lid="+head_lid+"&spec_id="+i_IDSpecPrice+"&buy_num="+i_ProdNum; if(is_mobile()){ window.location.href="http://admin.cnwcloud.cn/exusers/purchase_checkout.php?isCenter=1&"+url; }else{ document.getElementById("boxName").innerHTML="鎴戣寮€鍥 - 鎷艰喘娲诲姩"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="http://admin.cnwcloud.cn/exusers/purchase_checkout.php?isCenter=1&"+url; box.Show({width:"920px",height:"500px"}); } } //=== viewid:homelink_style_02_1683998067921,homelink_style_02_1683998076613,homelink_style_02_1683998084919,homelink_style_02_1683998093749,homelink_style_02_1683998106529,homelink_style_02_1683997925752,homelink_style_02_1683957368552,homelink_style_02_1683997733973,homelink_style_02_1684069468828,homelink_style_02_1683997745324 ===// //=== viewid:prodPic_style_01_1684050240003 ===// if (typeof change_prod_spec_img_style_01 != "function") { function change_prod_spec_img_style_01(spec_img) { $('.style_01.prodPic').each(function () { var first_li = $(this).find('.main_visual .main_image ul'); if (first_li) { if (typeof spec_img == "string") spec_img = spec_img.split(','); first_li.empty(); $.each(spec_img, function (i) { first_li.append("
  • "); }); } $(this).find(".bannerStyle_1 .main_image ul").children("li").eq(0).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"block","float":"none","left":"100%","top":"0px","position":"absolute"}); var view_id = $(this).attr('id'); console.log('view_id::',view_id); var name_str = view_id+'newAnimiIn();'; eval(name_str); }); } } //=== viewid:prodPic_style_01_1684050240003 ===// var timeoutObjprodPic_style_01_1684050240003=null;/*瀹氫箟璁℃椂鍣?/ var nowItemprodPic_style_01_1684050240003=0;/*褰撳墠鐨?/ var timeSetprodPic_style_01_1684050240003=parseFloat('3')*1000; var timeAnimiprodPic_style_01_1684050240003=parseFloat('0.5')*1000; var objprodPic_style_01_1684050240003=$("#prodPic_style_01_1684050240003"); var hasVideoprodPic_style_01_1684050240003 = false; var FileExtend0prodPic_style_01_1684050240003 = getFileExtend('/sysTools/Model/views/prodPic/style_01/v9Res/img.jpg'); FileExtend0prodPic_style_01_1684050240003 = FileExtend0prodPic_style_01_1684050240003.split('?')[0]; hasVideoprodPic_style_01_1684050240003 = (['mp4','m4v','mov','webmv','ogv','flv'].indexOf(FileExtend0prodPic_style_01_1684050240003)>-1); var fatherprodPic_style_01_1684050240003=objprodPic_style_01_1684050240003.find(".bannerStyle_1 .main_image ul"); var UlenprodPic_style_01_1684050240003 = fatherprodPic_style_01_1684050240003.children("li").length; // 榛樿寮€濮嬭疆鎾 setTimeout(function(){ prodPic_style_01_1684050240003startProdPic(); timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ animiInprodPic_style_01_1684050240003(animiInprodPic_style_01_1684050240003); },timeSetprodPic_style_01_1684050240003); },50); // 澶氳鏍煎垏鎹㈣疆鎾 function prodPic_style_01_1684050240003newAnimiIn(){ clearTimeout(timeoutObjprodPic_style_01_1684050240003); nowItemprodPic_style_01_1684050240003=0; timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ animiInprodPic_style_01_1684050240003(animiInprodPic_style_01_1684050240003); },timeSetprodPic_style_01_1684050240003); } function prodPic_style_01_1684050240003startProdPic(){ nowItemprodPic_style_01_1684050240003=0;/*褰撳墠鐨?/ timeSetprodPic_style_01_1684050240003=parseFloat('3')*1000; timeAnimiprodPic_style_01_1684050240003=parseFloat('0.5')*1000; objprodPic_style_01_1684050240003=$("#prodPic_style_01_1684050240003"); hasVideoprodPic_style_01_1684050240003 = false; FileExtend0prodPic_style_01_1684050240003 = getFileExtend('/sysTools/Model/views/prodPic/style_01/v9Res/img.jpg'); FileExtend0prodPic_style_01_1684050240003 = FileExtend0prodPic_style_01_1684050240003.split('?')[0]; hasVideoprodPic_style_01_1684050240003 = (['mp4','m4v','mov','webmv','ogv','flv'].indexOf(FileExtend0prodPic_style_01_1684050240003)>-1); if(objprodPic_style_01_1684050240003&&objprodPic_style_01_1684050240003.length>0){ /*鍒濆鍖栧弬鏁?/ fatherprodPic_style_01_1684050240003=objprodPic_style_01_1684050240003.find(".bannerStyle_1 .main_image ul"); UlenprodPic_style_01_1684050240003 = fatherprodPic_style_01_1684050240003.children("li").length; /*鍒濆鍖栬鍥?/ fatherprodPic_style_01_1684050240003.children("li").eq(nowItemprodPic_style_01_1684050240003).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"block","float":"none","left":"100%","top":"0px","position":"absolute"}); objprodPic_style_01_1684050240003.find(".bannerStyle_1 .flicking_con").children("a").eq(0).addClass("on").siblings().removeClass("on"); objprodPic_style_01_1684050240003.find(".bannerStyle_1 .flicking_con").children("a").click(function(){ UlenprodPic_style_01_1684050240003 = fatherprodPic_style_01_1684050240003.children("li").length; if(UlenprodPic_style_01_1684050240003>1 && $(this).index() != nowItemprodPic_style_01_1684050240003){ var now=nowItemprodPic_style_01_1684050240003; var next=$(this).index(); objprodPic_style_01_1684050240003.find(".bannerStyle_1 .flicking_con").children("a").eq(next).addClass("on").siblings().removeClass("on"); fatherprodPic_style_01_1684050240003.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimiprodPic_style_01_1684050240003,function(){ if(timeoutObjprodPic_style_01_1684050240003){ clearTimeout(timeoutObjprodPic_style_01_1684050240003); } if(typeof(callback)=="function"){ timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ if(!hasVideoprodPic_style_01_1684050240003){ callback(callback); } },timeSetprodPic_style_01_1684050240003); } }); fatherprodPic_style_01_1684050240003.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimiprodPic_style_01_1684050240003); nowItemprodPic_style_01_1684050240003=next; } }); objprodPic_style_01_1684050240003.hover(function(){ if(timeoutObjprodPic_style_01_1684050240003){ if(!hasVideoprodPic_style_01_1684050240003){ window.clearTimeout(timeoutObjprodPic_style_01_1684050240003); } } objprodPic_style_01_1684050240003.find(".bannerStyle_1 #btn_prev, .bannerStyle_1 #btn_next").fadeIn() },function(){ timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ if(!hasVideoprodPic_style_01_1684050240003){ animiInprodPic_style_01_1684050240003(animiInprodPic_style_01_1684050240003); } },timeSetprodPic_style_01_1684050240003); objprodPic_style_01_1684050240003.find(".bannerStyle_1 #btn_prev, .bannerStyle_1 #btn_next").fadeOut() }); $("#prodPic_style_01_1684050240003 #btn_prev").click(function(){ animiOutprodPic_style_01_1684050240003(); }); $("#prodPic_style_01_1684050240003 #btn_next").click(function(){ animiInprodPic_style_01_1684050240003(); }); let touchVal=null; document.addEventListener("touchstart", function(e){ if($(e.target).is(objprodPic_style_01_1684050240003)||$(e.target).parents("#"+objprodPic_style_01_1684050240003.attr("id")).length>0){ touchVal={}; touchVal.downX=e.touches[0].clientX; if (e.preventDefault) { // e.preventDefault();//绂佹榛樿浜嬩欢锛屽氨涓嶈兘涓婁笅婊戝姩浜 } else { e.returnvalue = false; } } }, false); document.addEventListener("touchmove", function(e){ if(touchVal&&touchVal.downX){ touchVal.moveX=e.touches[0].clientX-touchVal.downX; if (e.preventDefault) { // e.preventDefault(); } else { e.returnvalue = false; } } }, false); document.addEventListener("touchend", function(e){ if(touchVal&&touchVal.moveX){ if(touchVal.moveX>30){ animiOutprodPic_style_01_1684050240003(animiInprodPic_style_01_1684050240003); }else if(touchVal.moveX<-30){ animiInprodPic_style_01_1684050240003(animiInprodPic_style_01_1684050240003); } if (e.preventDefault) { //e.preventDefault(); } else { e.returnvalue = false; } } touchVal=null; }, false); /*杩愯*/ } } /*瀹氫箟杩涘叆浜嬩欢*/ function animiInprodPic_style_01_1684050240003(callback){ if(timeoutObjprodPic_style_01_1684050240003){ window.clearTimeout(timeoutObjprodPic_style_01_1684050240003); } UlenprodPic_style_01_1684050240003 = fatherprodPic_style_01_1684050240003.children("li").length; if(UlenprodPic_style_01_1684050240003>1){ /*褰撲釜鏁板ぇ浜?涓殑鏃跺€欐墠浼氬垏鎹?/ let now=nowItemprodPic_style_01_1684050240003; let next=now+1; if(next>=UlenprodPic_style_01_1684050240003){ next=0; } objprodPic_style_01_1684050240003.find(".bannerStyle_1 .flicking_con").children("a").eq(next).addClass("on").siblings().removeClass("on"); fatherprodPic_style_01_1684050240003.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimiprodPic_style_01_1684050240003,function(){ if(typeof(callback)=="function"){ timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ if(!hasVideoprodPic_style_01_1684050240003){ callback(callback); } },timeSetprodPic_style_01_1684050240003); } }); fatherprodPic_style_01_1684050240003.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimiprodPic_style_01_1684050240003); nowItemprodPic_style_01_1684050240003=next; } } /*瀹氫箟绂诲紑浜嬩欢*/ function animiOutprodPic_style_01_1684050240003(){ if(timeoutObjprodPic_style_01_1684050240003){ window.clearTimeout(timeoutObjprodPic_style_01_1684050240003); } UlenprodPic_style_01_1684050240003 = fatherprodPic_style_01_1684050240003.children("li").length; if(UlenprodPic_style_01_1684050240003>1){ /*褰撲釜鏁板ぇ浜?涓殑鏃跺€欐墠浼氬垏鎹?/ let now=nowItemprodPic_style_01_1684050240003; let next=now-1; if(next<0){ next=UlenprodPic_style_01_1684050240003-1; } objprodPic_style_01_1684050240003.find(".bannerStyle_1 .flicking_con").children("a").eq(next).addClass("on").siblings().removeClass("on"); fatherprodPic_style_01_1684050240003.children("li").eq(now).stop().animate({"left":"100%"},timeAnimiprodPic_style_01_1684050240003,function(){ if(typeof(callback)=="function"){ timeoutObjprodPic_style_01_1684050240003=setTimeout(function(){ if(!hasVideoprodPic_style_01_1684050240003){ callback(callback); } },timeSetprodPic_style_01_1684050240003); } }); fatherprodPic_style_01_1684050240003.children("li").eq(next).css({"left":"-100%"}).stop().animate({"left":"0%"},timeAnimiprodPic_style_01_1684050240003); nowItemprodPic_style_01_1684050240003=next; } } function getFileExtend(fileName) { if (fileName) { return fileName.replace(/.+\./,"");; } else { return ''; } } //=== viewid:customDetail_style_prodDetail_02_1683961532160 ===// $('#customDetail_style_prodDetail_02_1683961532160 .proListShow .listLi').addClass("modSet"); detailHeightAuto("customDetail_style_prodDetail_02_1683961532160", "璇︽儏鍔犺浇涓?); setTimeout(function(){ $("#customDetail_style_prodDetail_02_1683961532160 .proListShow .listUl").css("display","flex"); },800); //=== viewid:customDetail_style_prodDetail_02_1683961532160 ===// loadExtentFile('http://admin.cnwcloud.cn/js/jquery.tabs.js','js'); loadExtentFile('http://admin.cnwcloud.cn/js/jquery.commentImg.js','js'); var ajaxServer = 'http://admin.cnwcloud.cn'; var upPicServer = 'http://img.nicebox.cn'; var curIDWebSite = 70307; //=== viewid:customDetail_style_prodDetail_02_1683961532160 ===// $(function(){ let modelObj = $('#customDetail_style_prodDetail_02_1683961532160'); tabclass("#proDetailTabUl", "li", "#proDetailContent", "[name='prodDetail_2']"); findObj('#proDetailTabUl li:first-child').addClass('act'); findObj('#proDetailContent li:first-child').removeClass('hide'); let eventsName = findObj("#proDetailTabUl li:first-child").attr('events'); ajax_load(eventsName); function ajax_load(eventsName){ let CurHash=findObj("#proDetailTabUl").attr('curhash'); let Pid=findObj("#proDetailTabUl").attr('pid'); let types=findObj("#proDetailTabUl").attr('types'); //绱璇勮 if(eventsName=='ajax_load_comments_list'){ ajax_load_comments_list(CurHash,Pid,types,'customDetail_style_prodDetail_02_1683961532160'); //鎴愪氦璁板綍 }else if(eventsName =='ajax_load_exchange_list'){ ajax_load_exchange_list(CurHash,Pid,1,'customDetail_style_prodDetail_02_1683961532160'); } } function findObj(dom){ return modelObj.find(dom); } function tabclass(tab_t, tab_t_tag, tab_c, tag_c_tag) { // let tab_t = findObj(tab_t); let tab_t_li_obj = findObj('.detailTabUl '+tab_t_tag); // let tab_c = findObj(tab_c); let tab_c_li_obj = findObj(tag_c_tag); tab_t_li_obj.addClass('tabItemSet'); tab_t_li_obj.eq(0).addClass('act tabCurItem'); tab_c_li_obj.not(':first').addClass('hide'); var len = tab_t_li_obj.length; for (let i = 0; i < len; i++) { let tab_t_li = tab_t_li_obj.eq(i); let tab_c_li = tab_c_li_obj.eq(i); let eventsName = tab_t_li.attr("events"); ajax_load(eventsName); diyAutoHeight(modelObj); tab_t_li.attr('index',i); tab_t_li.click(function(){ tab_t_li.addClass('act tabCurItem').siblings().removeClass('act tabCurItem'); tab_c_li.removeClass('hide').siblings().addClass('hide'); diyAutoHeight(modelObj); basedLang(); }); } } // 涓嶇煡閬撴槸鐢ㄦ潵骞插槢鐨勶紵锛燂紒锛 function basedLang(){ let based_Obj= document.getElementById("based"); let currentlang_Obj= document.getElementById("currentlang");//褰撳墠璇█ if (based_Obj){ let JF_cn="ft"+self.location.hostname.toString().replace(/\./g,""); let isNeedDisFt2Jt = 0; switch( Request('chlang') ){ case "cn-tw": BodyIsFt= getCookie(JF_cn)=="1"? 0 : 1; isNeedDisFt2Jt = 1; delCookie(JF_cn); SetCookie(JF_cn, BodyIsFt, 7); break; case "cn": case "en": BodyIsFt= 0; isNeedDisFt2Jt = 1; delCookie(JF_cn); SetCookie(JF_cn, 0, 7); currentlang_Obj.innerHTML = "绠€浣撲腑鏂?; break; case "tw": BodyIsFt= 1; delCookie(JF_cn); SetCookie(JF_cn, 1, 7); currentlang_Obj.innerHTML = "绻侀珨涓枃"; //鍥犱负鏄箒浣 浣犲啓绠€浣撲篃浼氳杞寲鎴愮箒浣 鎵€浠ヨ繖鍎垮彧鑳藉啓绻佷綋 2015-1-16 break; default: if (typeof Default_isFT!='undefined' && Default_isFT){ //濡傛灉榛樿绻佷綋 if(getCookie(JF_cn)==null){ isNeedDisFt2Jt = 1; BodyIsFt= 1; SetCookie(JF_cn, 1, 7); break; } } BodyIsFt= parseInt(getCookie(JF_cn)); } if(BodyIsFt===1){ StranBody(); document.title = StranText(document.title); } else if (isNeedDisFt2Jt == 1) { StranBodyce(); document.title = StranTextce(document.title); } }else{ let JF_cn="ft"+self.location.hostname.toString().replace(/\./g,""); if(Default_isFT){ BodyIsFt= 1; delCookie(JF_cn); SetCookie(JF_cn, 1, 7); StranBody(); document.title = StranText(document.title); }else{ BodyIsFt= 0; delCookie(JF_cn); SetCookie(JF_cn, 0, 7); StranBodyce(); document.title = StranTextce(document.title); } } } }); //=== viewid:customDetail_style_prodDetail_02_1683961532160 ===// if(typeof is_mobile ==='undefined'){ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } } function joinPurchaseTeam(head_lid=0) { if(is_mobile()){ window.location.href="http://admin.cnwcloud.cn/exusers/purchase_orderdetail.php?isCenter=1&lid="+head_lid; }else{ document.getElementById("boxName").innerHTML="鎴戣鍙傚洟 - 鎷艰喘娲诲姩"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="http://admin.cnwcloud.cn/exusers/purchase_orderdetail.php?isCenter=1&lid="+head_lid; box.Show({width:"920px",height:"500px"}); } } //=== viewid:text_style_15_1683951130314,text_style_15_1683951619505,text_style_15_1683951409988,text_style_15_1683951607873,text_style_15_1683951671297,copyright_style_01_1683952349518 ===//