99 lines
4.1 KiB
PHTML
Executable File
99 lines
4.1 KiB
PHTML
Executable File
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
{include file="include/head-seo" /}
|
||
{include file="include/head" /}
|
||
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery.nicescroll.js"></script>
|
||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider-list.css">
|
||
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
|
||
<script type="text/javascript">
|
||
var navID = "1";
|
||
</script>
|
||
|
||
</head>
|
||
<body>
|
||
<!--top-->
|
||
<header class="header-PC header-Index">
|
||
<div id="header" class="theme-white">
|
||
{include file="include/top" /}
|
||
{include file="include/top-header" /}
|
||
</div>
|
||
</header>
|
||
<!--top End-->
|
||
{include file="include/newbanner" /}
|
||
|
||
|
||
<!-- 背景灰色 内容区 s -->
|
||
<div class="indexbox-list cdbox">
|
||
<div class="swt-Container">
|
||
<?php
|
||
if (!empty($newProduct)):
|
||
foreach ($newProduct as $k1 => $pc1): ?>
|
||
<div class="daily">
|
||
<div class="datit">
|
||
<p class="da1"><?php echo $pc1['category_name']; ?></p>
|
||
<div class="clear"></div>
|
||
</div>
|
||
|
||
|
||
|
||
<?php
|
||
$products = $pc1['list'];
|
||
|
||
if ($products):
|
||
?>
|
||
<ul class="darh">
|
||
<?php foreach ($products as $product): ?>
|
||
<li>
|
||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>" target="_blank">
|
||
<div class="daimg"><img src="<?php echo getImage($product['list_bk_img']); ?>"></div>
|
||
<div class="datext">
|
||
<p class="dat1"><?php echo $product['name']; ?></p>
|
||
<p class="dat2"><?php echo $product['brand_id']; ?></p>
|
||
</div>
|
||
<?php if ($product['isnew']): ?><div class="newcp">New</div><?php endif; ?>
|
||
</a>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<?php endif; ?>
|
||
<div class="clear"></div>
|
||
|
||
</div>
|
||
<?php endforeach; ?>
|
||
<?php endif; ?>
|
||
|
||
</div>
|
||
</div>
|
||
<!-- 背景灰色 内容区 e -->
|
||
|
||
<script type="text/javascript">
|
||
$(function() {
|
||
$(".hd ul li").hover(
|
||
function() {
|
||
$(this).children(".bds").stop(true, true).show();
|
||
},
|
||
function() {
|
||
$(this).children(".bds").stop(true, true).hide();
|
||
}
|
||
);
|
||
});
|
||
|
||
/*轮播滚动条*/
|
||
$('.hd').niceScroll({
|
||
cursorcolor: "transparent",//#CC0071 光标颜色
|
||
cursoropacitymax: 1, //改变不透明度非常光标处于活动状态(scrollabar“可见”状态),范围从1到0
|
||
touchbehavior: false, //使光标拖动滚动像在台式电脑触摸设备
|
||
cursorwidth: "5px", //像素光标的宽度
|
||
cursorborder: "0", // 游标边框css定义
|
||
cursorborderradius: "5px",//以像素为光标边界半径
|
||
autohidemode: false //是否隐藏滚动条
|
||
});
|
||
</script>
|
||
<!-- bottom s -->
|
||
{include file="include/bottom" /}
|
||
<!-- bottom e -->
|
||
</body>
|
||
</html>
|