<?php if ($this->_var['new_goods']): ?>
|
|
<section class="index_floor">
|
|
<h4><span><?php echo $this->_var['lang']['new_goods']; ?></span><i><a href="search.php?intro=new">更多</a></i></h4>
|
|
<div id="scroll_new" class="scroll_hot">
|
<div class="bd">
|
<ul>
|
<?php $_from = $this->_var['new_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['new_goods'] = array('total' => count($_from), 'iteration' => 0);
|
if ($this->_foreach['new_goods']['total'] > 0):
|
foreach ($_from AS $this->_var['goods']):
|
$this->_foreach['new_goods']['iteration']++;
|
?>
|
<li>
|
<div class="index_pro">
|
<div class="products_kuang">
|
<?php if ($this->_var['goods']['is_exclusive']): ?> <div class="best_phone">手机专享</div><?php endif; ?>
|
<a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"> <img src="<?php echo $this->_var['option']['static_path']; ?><?php echo $this->_var['goods']['thumb']; ?>"> </a></div>
|
<div class="goods_name"> <a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['name']; ?></a></div>
|
<div class="price">
|
<a href="javascript:addToCart(<?php echo $this->_var['goods']['id']; ?>)" class="btns">
|
<img src="themesmobile/68ecshopcom_mobile/images/index_flow.png">
|
</a>
|
<span><?php echo $this->_var['goods']['final_price']; ?></span><em><?php if ($this->_var['goods']['promote_price']): ?><?php echo $this->_var['goods']['shop_price']; ?><?php else: ?><?php echo $this->_var['goods']['market_price']; ?><?php endif; ?></em>
|
</div>
|
</div>
|
</li>
|
|
<?php if ($this->_foreach['new_goods']['iteration'] % 3 == 0 && $this->_foreach['new_goods']['iteration'] != $this->_foreach['new_goods']['total']): ?> </ul>
|
<ul>
|
<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?></div>
|
<div class="hd">
|
<ul></ul>
|
</div>
|
</div>
|
|
</section>
|
|
<script type="text/javascript">
|
TouchSlide({
|
slideCell:"#scroll_new",
|
titCell:".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
|
effect:"leftLoop",
|
autoPage:true, //自动分页
|
//switchLoad:"_src" //切换加载,真实图片路径为"_src"
|
});
|
</script>
|
<?php endif; ?>
|