//=== viewid:dh_style_45_1715678513057,dh_style_45_1715595523784 ===//

/*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_45_1715678513057 ===//

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_45_1715678513057(){
	$("#dh_style_45_1715678513057 .menuUl>li").each(function(){
		$(this).find(".menuUl03").css("left",'100%');
	})
}
$(window).resize(function() {
	subLeft_dh_style_45_1715678513057();
})
$(function(){
    
	$("#dh_style_45_1715678513057 .fa-navicon").click(function(){
        $("#dh_style_45_1715678513057").addClass('clearTransform');
		$("#dh_style_45_1715678513057 .menuUlCopy").each(function(){
			$(this).siblings(".fa").show();
		})
	})
	subLeft_dh_style_45_1715678513057();
		$("#dh_style_45_1715678513057 .subBox").css("top",$("#dh_style_45_1715678513057 .menuUl_box").height());
		
	if($("#dh_style_45_1715678513057 .menuUl").hasClass("noHover")){
		var tabNum = 0;
		$("#dh_style_45_1715678513057 .menuUl>li").find(".Onsub").each(function(){
			tabNum += 1;
			$(this).parent().attr("tabNum",tabNum)
		})
		$("#dh_style_45_1715678513057 .menuUl>li .Onsub").mouseover(function(){
			$("#dh_style_45_1715678513057 .subBox").show();
			var index = $(this).parent().attr("tabNum");
			$("#dh_style_45_1715678513057 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
			// 风格49，是用鼠标经过效果而不用鼠标选中效果
										$("#dh_style_45_1715678513057 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
					})
		// 风格49，是用鼠标经过效果而不用鼠标选中效果
							$("#dh_style_45_1715678513057 .subBox").mouseover(function(){
				$(this).show();
			})
			$("#dh_style_45_1715678513057 .menuUl>li .Onsub").mouseleave(function(){
				$("#dh_style_45_1715678513057 .subBox").hide();
			})
							setSubFullFuncdh_style_45_1715678513057();
			function setSubFullFuncdh_style_45_1715678513057(){
				subFullFuncdh_style_45_1715678513057();
				$(window).resize(function(){
					subFullFuncdh_style_45_1715678513057();
				});
			}
			function subFullFuncdh_style_45_1715678513057(){
				let fullwidth = $("#dh_style_45_1715678513057").parents('.layout').width();
				let modelLeft = $("#dh_style_45_1715678513057").offset().left;
				let subContentPaddingLeft = $("#dh_style_45_1715678513057 .subBox").css('padding-left');
				subContentPaddingLeft = subContentPaddingLeft?subContentPaddingLeft.trim().replace('px',''):0;
				 
					let maxwidth = $('#dh_style_45_1715678513057 .menuUl_box').width();
					$('#dh_style_45_1715678513057 .subBox .maxWidth').css({'max-width':maxwidth+'px','margin-left':(modelLeft - subContentPaddingLeft)+'px'});
								$('#dh_style_45_1715678513057 .subBox').width(fullwidth);
				$('#dh_style_45_1715678513057 .subBox').css('left','-'+modelLeft+'px');
			}
				$("#dh_style_45_1715678513057 .subBox").mouseleave(function(){
			$(this).hide();
		});
		$("#dh_style_45_1715678513057 .menuUl>li .Nosub").mouseover(function(){
			$("#dh_style_45_1715678513057 .subBox").hide();
		})
		
		//风格41 42
					
		
		
	}
})


//=== viewid:banner_style_01_1715594357886,banner_style_16_1714882418529,banner_style_17_1730018214267 ===//

        
    

//=== viewid:banner_style_17_1730018214267 ===//

        $(document).ready(function(){
        	arrowShow();
        	$(window).resize(function(){
        		arrowShow();
        	});
        	// 箭头显示
        	function arrowShow(){
        		if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){
        			$("#banner_style_17_1730018214267 .awesome-font").show().siblings().hide();
        		}else{
        			$("#banner_style_17_1730018214267 .awesome-font").hide().siblings().show();
        		}
        	}
        });
    

//=== viewid:banner_style_17_1730018214267 ===//

	console.log("banner_style_17_1730018214267 everyBanner_");
	// 左右切换
    function everyBanner_banner_style_17_1730018214267(){
        var style = "style_17";
        var datestay=parseFloat("3")*1000;  //延时
        var timeAnimi=parseFloat("0.5")*1000;    // 切换速度
        var obj=$("#banner_style_17_1730018214267");
                    let flickingConName = '';
            let fatherUl = '';
            if(style == 'style_06'){
                fatherUl = '.bannerStyle_6 .main_image ul';
                flickingConName = '.bannerStyle_6 .flicking_con';
            }else if(style == 'style_08'){
                fatherUl = '.bannerStyle_8 .main_image ul';
            }else if(style == 'style_11'){
                fatherUl = '.bannerStyle_11 .main_image ul';
                flickingConName = '.bannerStyle_11 .flicking_con';
            }else if(style == 'style_12'){
                fatherUl = '.bannerStyle_12 .main_image ul';
                flickingConName = '.bannerStyle_12 .flicking_con';
            }else if(style == 'style_17'){
                fatherUl = '.bannerStyle_17 .main_image ul';
                flickingConName = '.bannerStyle_17 .flicking_con';
            }
            if(obj&&obj.length>0){
            	var timeoutObj=null;
            	var nowItem=0;
            	var father=obj.find(fatherUl);
            	var Ulen = father.children("li").length;
            	father.children("li").eq(nowItem).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"block","float":"none","left":"100%","top":"0px","position":"absolute"});
                
                if(style == 'style_06'){
                    obj.find(flickingConName).children("a").eq(0).addClass("on").siblings().removeClass("on");
                    obj.find(flickingConName).children("a").find("span").removeClass("altTipOn");
                    obj.find(flickingConName).children("a.on").find("span").addClass("altTipOn");
                }else if(style == 'style_11' || style == 'style_12'){
                    obj.find(flickingConName).children("div").eq(0).addClass("cur_two altTipOn").siblings().removeClass("cur_two altTipOn");
                }else if(style == 'style_17'){
                    $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div").eq(0).siblings('div').children('i').stop().css({'width':0});
                    $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div i").eq(0).css('width', '0%').animate({ 'width': '100%' }, timeAnimi)
                }
                
                if(style != 'style_08'){
                    obj.find(flickingConName).children(style == 'style_06'? "a" : "div").click(function(){
                    	if(Ulen>1 && $(this).index() != nowItem){
                    		var now=nowItem;
                    		var next=$(this).index();
                            
                    		if(style == 'style_06'){
                    		    obj.find(flickingConName).children("a").eq(next).addClass("on").siblings().removeClass("on");
                    		    obj.find(flickingConName).children("a").find("span").removeClass("altTipOn");
                    		    obj.find(flickingConName).children("a.on").find("span").addClass("altTipOn");
                    		}else if(style == 'style_17'){
                                $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div").eq(next).siblings('div').children('i').stop().css({'width':0});
                                $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div i").eq(next).css('width', '0%').animate({ 'width': '100%' }, timeAnimi)
                            }else{
                    		    obj.find(flickingConName).children("div").eq(next).addClass("cur_two altTipOn").siblings().removeClass("cur_two altTipOn");
                    		}
                            
                    		father.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimi,function(){
                    			if(typeof(callback)=="function"){
                    				timeoutObj=setTimeout(function(){
                    					callback(callback);
                    				},datestay);
                    			}
                    		});
                    		father.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimi);
                    		nowItem=next;
                    	}
                    });
                }
            	obj.hover(function(){
                    if(style == 'style_08'){
                        $("#banner_style_17_1730018214267 .arrowSet").show();
                    }
            		if(timeoutObj){
            			window.clearTimeout(timeoutObj);
            		}
            	},function(){
                    if(style == 'style_08'){
                        $("#banner_style_17_1730018214267 .arrowSet").hide();
                    }
            		timeoutObj=setTimeout(function(){
            			animiIn(animiIn);
            		},datestay);
            	});
            	$("#banner_style_17_1730018214267 .arrowLeft").click(function(){
            		animiOut();
            	});
            	$("#banner_style_17_1730018214267 .arrowRight").click(function(){
            		animiIn();
            	});
            	
                var touchVal=null;
                document.addEventListener("touchstart", function(e){
                	if($(e.target).is(obj)||$(e.target).parents("#"+obj.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){
                			animiOut(animiIn);
                		}else if(touchVal.moveX<-30){
                			animiIn(animiIn);
                		}
                		if (e.preventDefault) {
                			e.preventDefault();
                		}
                		else {
                			e.returnvalue = false;
                		}
                	}
                	touchVal=null;
                }, false);
                
            	function animiIn(callback){
            		if(timeoutObj){
            			window.clearTimeout(timeoutObj);
            		}
            		if(Ulen>1){
            			var now=nowItem;
            			var next=now+1;
            			if(next>=Ulen){
            				next=0;
            			}
            			father.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimi,function(){
            				if(typeof(callback)=="function"){
            					timeoutObj=setTimeout(function(){
            						callback(callback);
            					},datestay);
            				}
            			});
                        father.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimi);
                        
            			if(style == 'style_11' || style == 'style_12'){
            			    obj.find(flickingConName).children("div").eq(next).addClass("cur_two altTipOn").siblings().removeClass("cur_two altTipOn");
            			}else if(style == 'style_06'){
            			    obj.find(flickingConName).children("a").eq(next).addClass("on").siblings().removeClass("on");
            			    obj.find(flickingConName).children("a").find("span").removeClass("altTipOn");
            			    obj.find(flickingConName).children("a.on").find("span").addClass("altTipOn");
            			}else if(style == 'style_17'){
                            $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div").eq(next).siblings('div').children('i').stop().css({'width':0});
                            $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div i").eq(next).css('width', '0%').animate({ width: '100%' }, timeAnimi)
                        }
                        
            			nowItem=next;
            		}
            	}
            
            	function animiOut(){
            		if(timeoutObj){
            			window.clearTimeout(timeoutObj);
            		}
            		if(Ulen>1){
            			var now=nowItem;
            			var next=now-1;
            			if(next<0){
            				next=Ulen-1;
            			}
            			father.children("li").eq(now).stop().animate({"left":"100%"},timeAnimi,function(){
            				if(typeof(callback)=="function"){
            					timeoutObj=setTimeout(function(){
            						callback(callback);
            					},datestay);
            				}
            			});
            			father.children("li").eq(next).css({"left":"-100%"}).stop().animate({"left":"0%"},timeAnimi);
                        
                        if(style == 'style_11' || style == 'style_12'){
                            obj.find(flickingConName).children("div").eq(next).addClass("cur_two altTipOn").siblings().removeClass("cur_two altTipOn");
                        }else if(style == 'style_06'){
                            obj.find(flickingConName).children("a").eq(next).addClass("on").siblings().removeClass("on");
                            obj.find(flickingConName).children("a").find("span").removeClass("altTipOn");
                            obj.find(flickingConName).children("a.on").find("span").addClass("altTipOn");
                        }else if(style == 'style_17'){
                            $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div").eq(next).siblings('div').children('i').stop().css({'width':0});
                            $("#banner_style_17_1730018214267 .bannerStyle_17 .flicking_con div i").eq(next).css('width', '0%').animate({ width: '100%' }, timeAnimi)
                        }
            			nowItem=next;
            		}
            	}
                timeoutObj=setTimeout(function(){
                    animiIn(animiIn);
                },datestay);
            }
            }
    everyBanner_banner_style_17_1730018214267();


//=== viewid:banner_style_17_1730018214267 ===//


    /*
     * Banner 轮播图类
     */
	var intervaltimer;
    function Banner(config) {
        this._default = {
            'list':[],
            'length':0,
            'current':0,
            'timer':undefined,      // 计时器
            'view':undefined,           // 视图
            'flick':undefined,      // 圆点选择器
            'duration':3,               // 切换时间间隔
            'animation':0.5         // 动画时间
        };
        config = $.extend(true, this._default, config);
        this.config = config;
        this.init(config);
    }
    Banner.prototype.init = function(config) {
        this.animateStyle = 'normal';       // 动画效果 ( 根据动画效果, 不同的方法有不同的实现 )
        this.direction = 'right';   // 当前滚动方向
        this.view = this.config.view;
        this.config.length = this.config.list.length;
        this.config.flick = this.view ? this.view.find(".bannerStyle_17 .flicking_con > a") : undefined;
    };
    // 计算下一个要显示的图片的索引
    // by: 如果没有传入参数, 则使用配置中的数据this.config.current, 否则使用传入的参数
    Banner.prototype.nextIndex = function(by) {
        by === undefined && (by = this.config.current);
        var next = this.direction == 'right' ? by + 1 : by - 1;
        next >= this.config.length && (next = 0);
        next < 0 && (next = this.config.length - 1);
        return next;
    };
    //图片链接
    $url_html = new Array();
    $i = 0;
    $url_len = 2;
            $url_html[0] = "";
            $url_html[1] = "";
     

    $('#banner_style_17_1730018214267 a.img_url').attr('href',$url_html[$i]);
    // 跳到指定图片
    Banner.prototype.animateIndex = function(index) {
        this.endAnimate();
        if(index >= 0 && index < this.config.length && this.config.current != index) {
            if(this.config.current < index) {
                this.direction = 'right';
                this.config.current = index - 1;
            } else {
                this.direction = 'left';
                this.config.current = index + 1;
            }
            
            this.showIndex(this.config.current);
            this.startAnimate();
        }
    };
    // 向右动画
    Banner.prototype.startAnimateRight = function() {
        this.direction = 'right';
        this.startAnimate();
    };
    // 向左动画
    Banner.prototype.startAnimateLeft = function() {
        this.direction = 'left';
        this.startAnimate();
    };
    // 结束动画
    Banner.prototype.endAnimate = function() {
			clearTimeout(this.config.timer);
    };
	// 结束动画
	Banner.prototype.hoverEndAnimate = function() {
			var that = this;
			intervaltimer = setInterval(function(){
				clearTimeout(that.config.timer);
			},100);
	};
    Banner.prototype.startAnimate = function() {
        switch(this.animateStyle) {
            case 'normal':
                // 默认效果
                this.endAnimate();
                if(this.config.length > 1) {
                    var prev = this.config.current, next = this.nextIndex(),
                            end = this.direction == 'right' ? {prev:"-100%", current:"100%"} : {prev:"100%", current:"-100%"};  // 前一个图片和当前图片的最后停留位置
                    this.config.flick.eq(next).addClass("on").siblings().removeClass("on");
                    // 执行动画
                    var banner = this;
                    this.imgs.eq(prev).stop().animate({"left":end.prev}, this.config.animation, function(){
                        banner.config.timer = setTimeout(function(){
                            banner.startAnimate();
                        },banner.config.duration);
                    });
                    this.imgs.eq(next).css({"left":end.current}).stop().animate({"left":"0%"}, this.config.animation);
                    this.config.current = next;
                }
                break;

            case 'rotate-3d':
                // 3D旋转效果
                this.endAnimate();
                this.updateBgImg();
                if(this.config.length > 1) {
                    var prev = this.config.current, next = this.nextIndex();
                    this.config.flick.eq(next).addClass("on").siblings().removeClass("on");
                    this.config.current = next;
                    this.parts.css("transform", "rotateX(" + ((this.direction == 'right' ? ++this.rotate : --this.rotate) * 90) + "deg)");
                    var banner = this;
                    this.config.timer = setTimeout(function(){
                        banner.startAnimate();
                    },banner.config.duration);
                }
                $('#banner_style_17_1730018214267 a.img_url').attr('href',$url_html[this.config.current]);
                break;
        }
    };
    // 指定显示的图片
    Banner.prototype.showIndex = function(index) {
        switch(this.animateStyle) {
            case 'normal':
                // 默认效果
                this.imgs.eq(index).css("left","0%").siblings(".img-item").css("left","100%");
                this.config.flick.eq(index).addClass("on").siblings().removeClass("on");
                break;
            case 'rotate-3d':
                // 3D旋转效果
                this.updateFaceBottonTopImg(index);
                this.config.flick.eq(index).addClass("on").siblings().removeClass("on");
                break;
        }
    };

    /*
     * ********************************************
     * 3D旋转效果 特有函数 begin
     */
    // 每次旋转前都需要更新背部的图片
    Banner.prototype.updateBgImg = function() {
        // 计算背部要显示的图片
        var bg_image_index = this.nextIndex(this.nextIndex());
        // index: 计算背景图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 1, 2, 3 )
        var c, index = (c = (this.rotate + 2) % 4) >= 0 ? c : c + 4;
        var banner = this;
        // console.log('第',index,'个面-使用更新为第',bg_image_index,'张图');
        this.parts && this.parts.each(function () {
            $(this).find('.img:eq('+index+')').css({'background-image': 'url("'+banner.config.list[bg_image_index]+'")'});

        });
    };
    // 更新正面/顶部/底部的图片
    // index: 要显示哪张图片
    // 备注: 因为总共有四个面的图片需要更新, 初始化时, 正面/顶部/底部的图片只需更新一次即可 (背部的图片在每次旋转前都需要更新)
    Banner.prototype.updateFaceBottonTopImg = function(index) {
        // face, bottom, top: 计算正面/顶部/底部图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 1, 2, 3 )
        var c, face = (c = this.rotate % 4) >= 0 ? c : c + 4, bottom, top;
        bottom = face + 1; bottom >= this.config.length && (bottom = 0);
        top = face - 1; top < 0 && (top = this.config.length - 1);
        var banner = this;
        this.parts && this.parts.each(function () {
            // console.log('第',face,'个面-使用更新为第',index,'张图');
            $(this).find('.img:eq('+face+')').css({'background-image': 'url("'+banner.config.list[index]+'")'});
            // console.log('第',bottom,'个面-使用更新为第',index < banner.config.length - 1 ? index + 1 : 0,'张图');
            $(this).find('.img:eq('+bottom+')').css({'background-image': 'url("'+banner.config.list[index < banner.config.length - 1 ? index + 1 : 0]+'")'});
            // console.log('第',top,'个面-使用更新为第',index > 0 ? index - 1 : banner.config.length - 1,'张图');
            $(this).find('.img:eq('+top+')').css({'background-image': 'url("'+banner.config.list[index > 0 ? index - 1 : banner.config.length - 1]+'")'});
        });
    };
    // 初始化旋转部分: 设置3d旋转的四个面的图片, index表示默认显示哪张图片
    Banner.prototype.initImgPart = function(index) {
        var banner = this;
        this.parts && this.parts.each(function () {
            $(this).find('.img').each(function (i) {
                var j = 0;
                switch (i) {
                    case 0: j = index; break;   // 正面
                    case 1: j = index + 1; break;   // 底部
                    case 2: break;  // 背部
                    case 3: j = index - 1; break;   // 顶部
                }
                j >= banner.config.length && (j = 0);
                j < 0 && (j = banner.config.length - 1);
                $(this).css({'background-image': 'url("'+banner.config.list[j]+'")', 'background-repeat':'no-repeat', 'background-color':'#fff'});
            });
        });
    };
    // 更新旋转部分: 之所以使用定时器, 是因为无法实时获取模块宽度
    Banner.prototype.updateImgPart = function() {
        this.parts && this.parts.each(function(index) {
            $(this).css({
                "left":$(this).width() * index + "px"
            });
            $(this).find(".img").css({
                "background-position": -$(this).width() * index + "px"
            });
        });
        var banner = this;
        setTimeout(function () {
            banner.updateImgPart();
        }, 800);
    };
    /*
     * 3D旋转效果 特有函数 end
     * ********************************************
     */

    // 图片数据
    var list_banner_style_17_1730018214267 = [];
    list_banner_style_17_1730018214267.push('../request.php?url=https%3A%2F%2Fcdn.yun.sooce.cn%2F6%2F24751%2Fjpg%2F172949841052002f0e975a8206523c60b34463af1d01b.jpg%3FimageMogr2%2Fthumbnail%2F1500x%26version%3D1729498419');list_banner_style_17_1730018214267.push('../request.php?url=https%3A%2F%2Fcdn.yun.sooce.cn%2F6%2F24751%2Fjpg%2F17295810910749aabc106f0f6513748e550672396176f.jpg%3FimageMogr2%2Fthumbnail%2F1500x%26version%3D1729581094');
    var banner_banner_style_17_1730018214267;        // 轮播图对象
    $(function(){
        // 创建轮播图
        $arrHref = new Array();
        banner_banner_style_17_1730018214267 = new Banner({
            'list':list_banner_style_17_1730018214267,
            'view':$('#banner_style_17_1730018214267'),
            'duration':parseFloat('3') * 1000,
            'animation':parseFloat('0.5') * 1000
        });
                banner_banner_style_17_1730018214267.animateStyle = 'normal';
        banner_banner_style_17_1730018214267.imgs = banner_banner_style_17_1730018214267.view.find(".bannerStyle_17 .main_image .img-list").children(".img-item");
        banner_banner_style_17_1730018214267.view.find('a').each(function (i) {
            $(this).click(function () {
                if(!$(this).attr('href')) {
                    return false;
                }
            });
           
        });
        banner_banner_style_17_1730018214267.view.find('a.picSet').each(function(i){
             $arrHref[i] = $(this).attr('href');
        });
                
        // 显示指定索引的图片
        banner_banner_style_17_1730018214267.showIndex(banner_banner_style_17_1730018214267.config.current);


        // 监听 点击圆点
        banner_banner_style_17_1730018214267.config.flick.click(function(){
            banner_banner_style_17_1730018214267.animateIndex($(this).index());
            $('#banner_style_17_1730018214267 a.img_url').attr('href',$url_html[$(this).index()]);
            $i = $(this).index();
            return false;
        });

        // 监听 鼠标悬浮时
        banner_banner_style_17_1730018214267.view.hover(
                function(){
                    banner_banner_style_17_1730018214267.hoverEndAnimate();
                    banner_banner_style_17_1730018214267.view.find(".bannerStyle_17 .btn_prev, .bannerStyle_17 .btn_next").fadeIn();
                },
                function(){
						clearInterval(intervaltimer);
                    banner_banner_style_17_1730018214267.config.timer = setTimeout(function(){
                        banner_banner_style_17_1730018214267.startAnimateRight();
                    },banner_banner_style_17_1730018214267.config.duration);
                    banner_banner_style_17_1730018214267.view.find(".bannerStyle_17 .btn_prev, .bannerStyle_17 .btn_next").fadeOut()
                }
        );
	  

        // 监听 点击左右按钮
        banner_banner_style_17_1730018214267.view.find(".btn_prev").click(function() {
            banner_banner_style_17_1730018214267.startAnimateLeft();
        });
        banner_banner_style_17_1730018214267.view.find(".btn_next").click(function() {
            banner_banner_style_17_1730018214267.startAnimateRight();
        });

        // 监听 触摸事件
        var touchVal = null;
        document.addEventListener("touchstart", function(e){
            if($(e.target).is(banner_banner_style_17_1730018214267.view) || $(e.target).closest("#"+banner_banner_style_17_1730018214267.view.attr("id")).length > 0) {
                touchVal = {};
                touchVal.downX = e.touches[0].clientX;  // 记录触摸起始位置
            }
        }, false);
        document.addEventListener("touchmove", function(e){
            if(touchVal && touchVal.downX) {
                touchVal.moveX = e.touches[0].clientX - touchVal.downX;     // 计算触摸中的偏移位置
            }
        }, false);
        document.addEventListener("touchend", function(e){
            if(touchVal && touchVal.moveX){
                if(touchVal.moveX > 30){
                    banner_banner_style_17_1730018214267.startAnimateLeft();             // 触摸生效
                    if (e.preventDefault) {
                        e.preventDefault();
                    } else {
                        e.returnvalue = false;
                    }
                }else if(touchVal.moveX < -30){
                    banner_banner_style_17_1730018214267.startAnimateRight();                // 触摸生效
                    if (e.preventDefault) {
                        e.preventDefault();
                    } else {
                        e.returnvalue = false;
                    }
                }
            }
            touchVal = null;
        }, false);

       
        // 运行
        banner_banner_style_17_1730018214267.config.timer = setTimeout(function(){
            banner_banner_style_17_1730018214267.startAnimateRight();
        }, banner_banner_style_17_1730018214267.config.duration);
    });


//=== viewid:productList_style_01_1730011065646 ===//
var sys_url_productList_style_01_1730011065646="viewid=productList_style_01_1730011065646&name=productList&style=style_01&langid=2&pageid=712987&viewCtrl=default&pid=0";

//=== viewid:productList_style_01_1730011065646 ===//
//--
				$(function(){
					var viewid="productList_style_01_1730011065646";
					var sys_url="viewid=productList_style_01_1730011065646&name=productList&style=style_01&langid=2&pageid=712987&viewCtrl=default&pid=0&isfb=1";
					var moreParams='';
					if(typeof(history.pushState) != 'undefined'){
						var hstate=JSON.stringify(history.state);
						if(hstate!='null'&& hstate!=null){
							eval('var hjson = ' + hstate);
							moreParams=hjson.moreParamsproductList_style_01_1730011065646;
						}
					}
					RequestURL(viewid,sys_url,moreParams);
				});
			//--

//=== viewid:productList_style_01_1728275590619,productList_style_01_1730011065646 ===//

var showSub = '0';



//=== viewid:productList_style_01_1728275590619,productList_style_01_1730011065646 ===//

    

//=== viewid:productList_style_01_1730011065646 ===//

if(typeof addcart !== 'function'){
	function addcart(pid,is_virtual,idspecprice,idpackage){
        var lang=2;
        if(lang == '0'){
            lang = Default_isFT;
            if(BodyIsFt == '0'){
                lang = BodyIsFt;
            }else if(BodyIsFt == '1'){
                lang = BodyIsFt;
            }
        }
        var packStr = '';
        if(typeof (idpackage) != 'undefined'){
            packStr = "&idpackage="+idpackage;
        }
		if(is_mobile()){
			var locationUrl = "https://admin.tuiyiseo.com/exusers/u_cart.php?idweb=24751&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
			if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
			if (isNaN(pid)) {//如果不是数字，表示批量加入购物车
				locationUrl = "https://admin.tuiyiseo.com/exusers/u_cart.php?idweb=24751&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : "");
			}
			var res = "0";
			if(res == '1' && is_virtual == 0){
				locationUrl+= "&use_ajax=1&callback=?";
				$.getJSON(locationUrl,function(ret){
				if(ret.i_AddFlag){
					$.alerts.dialogClass  = 'success';
					alert(ret.message);
				}
				});
			}else{
			    window.location = locationUrl;
			}

		}else{
			var locationUrl = "https://admin.tuiyiseo.com/exusers/u_cart.php?idweb=24751&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
			if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
			if (isNaN(pid)) {//如果不是数字，表示批量加入购物车
				locationUrl = "https://admin.tuiyiseo.com/exusers/u_cart.php?idweb=24751&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : "");
			}
			document.getElementById("boxName").innerHTML="View Shopping Cart";
			if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×";
			document.getElementById("showiframe").src=locationUrl;
			box.Show({width:"840px",height:"420px"});
		}
	}
}

function is_mobile(){
	return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
$(function(){
	$('#productList_style_01_1730011065646 .prod_infos .end_time').each(function(){
		purchase_clock(this);//开启倒计时
	});
});

//拼购倒计时
function purchase_clock(obj) {
	var time = parseInt($(obj).attr('data-time'));
	if (time > 0) {
		var str = '';
		var num = 0;
		num = parseInt(time/86400);
		if(num > 0)str += num.toString() + '天';
		time -= num * 86400;
		num = parseInt(time/3600);
		if(num > 0)str += num.toString() + '时';
		time -= num * 3600;
		num = parseInt(time/60);
		if(num > 0)str += num.toString() + '分';
		time -= num * 60;
		if(num > 0)str += time.toString() + '秒';
		$(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1);
		setTimeout(function(){
			purchase_clock(obj);
		}, 1000);
	} else {
		$(obj).text('0天0时0分0秒');
	}
}


//=== viewid:qqol_style_05_1610514231317 ===//

	$('#qqol_style_05_1610514231317 .item_box.backup').click(function(){
		$('html , body').animate({scrollTop: 0},'slow');
	});


//=== viewid:qqol_style_05_1610514231317 ===//

    //购物车
    if(typeof showcart !== 'function'){
        function showcart(){
            var langid = 2;
            if (langid==0 && BodyIsFt) langid = 1;
            if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){
            location.href = "//admin.tuiyiseo.com/exusers/u_cart.php?idweb=24751&act=show&lang="+langid+"&ismobile=1";
            }else{
            document.getElementById("boxName").innerHTML="View Shopping Cart";
            if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; 
            document.getElementById("showiframe").src="../request.php?url=%2F%2Fadmin.tuiyiseo.com%2Fexusers%2Fu_cart.php%3Fidweb%3D24751%26act%3Dshow%26lang%3D"+langid+"&v=9";
            box.Show({width:'1000px', height:'600px'});
            }
        }
    }
    //判断是否是手机,用于处理QQ电脑端及手机端链接不一致问题
    var mobile_flag = isMobile();
    if(mobile_flag){
                $('#qqol_style_05_1610514231317 .qq_pc').hide();
        $('#qqol_style_05_1610514231317 .qq_mobile').show();
            }
    function isMobile() {
        var userAgentInfo = navigator.userAgent;
        var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"];
        var mobile_flag = false;
        //根据userAgent判断是否是手机
        for (var v = 0; v < mobileAgents.length; v++) {
            if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
                mobile_flag = true;
                break;
            }
        }
        var screen_width = window.screen.width;
        var screen_height = window.screen.height;

        //根据屏幕分辨率判断是否是手机
        if(screen_width < 500 && screen_height < 800){
            mobile_flag = true;
        }
        return mobile_flag;
    }


//=== viewid:qqol_style_05_1610514231317 ===//

    // 对输入内容中的尖括号、引号等进行转义
    function html_encode(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&/g, "&amp;");
        s = s.replace(/</g, "&lt;");
        s = s.replace(/>/g, "&gt;");
        s = s.replace(/ /g, "&nbsp;");
        s = s.replace(/\'/g, "&#39;");
        s = s.replace(/\"/g, "&quot;");
        s = s.replace(/\n/g, "<br>");
        return s;
    }
    function html_decode(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&amp;/g, "&");
        s = s.replace(/&lt;/g, "<");
        s = s.replace(/&gt;/g, ">");
        s = s.replace(/&nbsp;/g, " ");
        s = s.replace(/&#39;/g, "\'");
        s = s.replace(/&quot;/g, "\"");
        s = s.replace(/<br>/g, "\n");
        return s;
    }



//=== viewid:prohibitCopy_style_01_1714296585647 ===//
document.body.onselectstart=document.body.oncontextmenu=function(){return false;};