<link href="<?php echo config('view_replace_str.__STATIC__'); ?>/images/template/images/slide_001/style.css" rel="stylesheet" type="text/css" />
<!--宽度与高度在这里对应的做修改即可-->
<div class="slider_box001" style="width:<?php echo $pic_width>10?$pic_width:400;?>px;height:<?php echo $pic_height>10?$pic_height:300;?>px;">
        <a class="control001 prev"></a><a class="control001 next abs"></a><!--翻页按钮，移动端可删除,幻灯片太小的话,也建议删除-->
        <div class="slider_001"><!--主体结构，请用此类名调用插件，此类名可自定义-->
            <ul>
<?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
                <li><a href="<?php echo $rs['url']; ?>" target="_blank"><img alt="<?php echo $rs['title']; ?>" alt="<?php echo $rs['title']; ?>" src="<?php echo $rs['picurl']; ?>"></a></li>
<?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
</div>
<script src="<?php echo config('view_replace_str.__STATIC__'); ?>/images/template/images/slide_001/YuxiSlider.jQuery.min.js"></script>
<script type="text/javascript">
$(".slider_box001").each(function(){
	var obj = $(this);
	if(obj.width()<400){	//宽度小于400,就把按钮隐藏
		obj.find('.control001').hide();
	}
	obj.find('.slider_001').YuxiSlider({
        width: obj.width(), 
        height: obj.height(), 
        control:obj.find('.control001'), //绑定控制按钮
        during:3000, //间隔3秒自动滑动
        speed:800, //移动速度0.8秒
        mousewheel:true, //是否开启鼠标滚轮控制
        direkey:true //是否开启左右箭头方向控制
    });
});
</script>