<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<link href="/plugin/swiper/css/swiper.min.css" rel="stylesheet" />
	<style>
	.swiper-container{
		width: 100%;
		 
	}
	.swiper-wrapper{
		width: 100%;
		display: flex;
		flex-direction: row;
	}
	.m-navPic-item{
		padding: 5px;
		width: 20%;
		margin-bottom: 10px;
	}
	.m-navPic-img{
		width: 40px;
		height: 40px;
	}
	.m-navPic-title {
    font-size: 0.7rem;
   
}
.adBox{
			display: flex;
			flex-direction: row;
			 
		}
		.adBox-item{
			flex: 1;
			margin: 5px;
		}
		.adBox-img{
			width: 100%;
			border-radius: 10px;
		}
</style>
	<body>
		<div class="header">
			<a href="/" class="header-back pos-relative"></a>
			<img class="header-logo none" src="<?php echo $this->_var['site']['logo']; ?>.100x100.jpg" />
			<div class="header-search-box">

				<input id="search-word" class="header-search pdl-5" placeholder="搜你想要的" type="text">
				<div id="search-btn" class="header-search-btn bg-primary cl-white iconfont icon-search"></div>
			</div>

		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<div class="swiper-container" id="indexFlash">
				<div class="swiper-wrapper">
					<?php $_from = $this->_var['flashList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
					<div class="swiper-slide">
						<img gourl="<?php echo $this->_var['c']['link1']; ?>" class="wmax" src="<?php echo $this->_var['c']['imgurl']; ?>" />
					</div>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				</div>

				<div class="swiper-pagination"></div>

			</div>
			
			<?php if ($this->_var['navList']): ?>
			<div class="m-navPic">
			    <?php $_from = $this->_var['navList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
			    <a href="<?php echo $this->_var['c']['link1']; ?>" class="m-navPic-item">
					  <img class="m-navPic-img" src="<?php echo images_site($this->_var['c']['imgurl']); ?>" />
					  <div class="m-navPic-title"><?php echo $this->_var['c']['title']; ?></div>
					   
			    </a>
				
			    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</div>
			<?php endif; ?>
			<?php if ($this->_var['adList']): ?>
			<div class="adBox">
				<?php $_from = $this->_var['adList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
				<div class="adBox-item">
					<img gourl="<?php echo $this->_var['c']['link1']; ?>" src="<?php echo $this->_var['c']['imgurl']; ?>" class="adBox-img" />
				</div>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			
			</div>
			<?php endif; ?>
			

			<div class="f18 cl1 pd-10">猜你喜欢</div>
			<?php $_from = $this->_var['recList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
			 <a href="/module.php?m=fenlei&a=show&id=<?php echo $this->_var['c']['id']; ?>" class="flexlist-item">
				 <?php if ($this->_var['c']['imgurl']): ?>
				 <img class="flexlist-img" src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" />
				 <?php endif; ?>
					 <div class="flex-1">
						<div class="flex mgb-5">
							 
							<?php if ($this->_var['c']['hb_on']): ?>
							<div class="bc-red mgr-5">红</div>
							<?php endif; ?>
							<div class="f14"><?php echo $this->_var['c']['title']; ?></div>
						</div>
							<?php if ($this->_var['c']['money'] > 0): ?>
							<div class="flexlist-row">
								<div class="cl-money">￥<?php echo $this->_var['c']['money']; ?></div>
							</div>
							<?php endif; ?>
						  <div class="flexlist-desc">
							  <?php echo $this->_var['c']['description']; ?>
						  </div>
					</div>
			</a>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<div class="f18 cl1 pd-10">最新发布</div>
			<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
			 <a href="/module.php?m=fenlei&a=show&id=<?php echo $this->_var['c']['id']; ?>" class="flexlist-item">
				 <?php if ($this->_var['c']['imgurl']): ?>
				 <img class="flexlist-img" src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" />
				 <?php endif; ?>
					 <div class="flex-1">
						<div class="flex mgb-5">
							 
							<?php if ($this->_var['c']['hb_on']): ?>
							<div class="bc-red mgr-5">红</div>
							<?php endif; ?>
							<div class="f14"><?php echo $this->_var['c']['title']; ?></div>
						</div>
						<?php if ($this->_var['c']['money'] > 0): ?>
						<div class="flexlist-row">
							<div class="cl-money">￥<?php echo $this->_var['c']['money']; ?></div>
						</div>
						<?php endif; ?>
						  <div class="flexlist-desc">
							  <?php echo $this->_var['c']['description']; ?>
						  </div>
					</div>
			</a>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

		</div>
		<div class="flex-center pd-10">
			<a class="f12 cl3" href="http://www.beian.miit.gov.cn"><?php echo $this->_var['site']['icp']; ?></a>
		</div>  
		<?php $this->assign('ftnav','index'); ?>
		<?php echo $this->fetch('ftnav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>
		<script src="/plugin/swiper/js/swiper.min.js"></script>
		<script>
			$(function() {
				var flash = new Swiper("#indexFlash");
			})
		</script>
		<script>
			$(document).on("click", "#search-btn", function() {
				var word = $("#search-word").val();
				window.location = "/module.php?m=fenlei&a=search&keyword=" + encodeURI(word)
			})
		</script>
		<?php wx_jssdk();?>
		<script type="text/javascript">
			wxshare_title="<?php echo $this->_var['seo']['title']; ?>";
			 
		</script>

	</body>
</html>
