<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<link href="/plugin/swiper/css/swiper.min.css" rel="stylesheet" />
	<link href="<?php echo $this->_var['skins']; ?>exue/index.css" rel="stylesheet" />
	<body>
		
		<div class="header">
			<div class="header-title">福鼎一学堂</div>
		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<div class="scale-swiper-box" style="padding-bottom: 50%;">
			<div class="swiper-container scale-swiper-container" style="width: 100%;" 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 scale-swiper-slide">
						<img style="width: 100%;" src="<?php echo $this->_var['c']['imgurl']; ?>" />
					</div>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				</div>

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

			</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 $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="ghd">限时试课</div>
			<?php $_from = $this->_var['sxList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
			<div class="row-box mgb-5">
				<div gourl="/module.php?m=exue_shop&a=show&shopid=<?php echo $this->_var['c']['shopid']; ?>" class="flex flex-ai-center mgb-10">
					<img src="<?php echo $this->_var['c']['shop']['imgurl']; ?>.100x100.jpg" class="wh-40 bd-radius-50">
					<div class="flex-1 cl2 fw-600  mgl-5">
						<?php echo $this->_var['c']['shop']['title']; ?>
					</div>
					<div class="cl3 f12"><?php echo $this->_var['c']['createtime']; ?></div>  
				</div>
				<div gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="flex">
					<img  src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" class="flexlist-img" />
					<div class="flex-1">
						<div  gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="flexlist-title"><?php echo $this->_var['c']['title']; ?></div>
						<div class="flexlist-desc"><?php echo $this->_var['c']['description']; ?></div>
						<div class="flex">
							<div class="cl-money f16 mgr-20">￥<?php echo $this->_var['c']['price']; ?></div>
							<div class="market-price">￥<?php echo $this->_var['c']['market_price']; ?></div>
							<div class="flex-1"></div>
							<div gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="btn-bm">立即报名</div>
						</div>
					</div>
				</div>
			</div>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<div class="ghd">精选好课</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']):
?>
			<div class="row-box mgb-5">
				<div gourl="/module.php?m=exue_shop&a=show&shopid=<?php echo $this->_var['c']['shopid']; ?>" class="flex flex-ai-center mgb-10">
					<img src="<?php echo $this->_var['c']['shop']['imgurl']; ?>.100x100.jpg" class="wh-40 bd-radius-50">
					<div class="flex-1 cl2 fw-600  mgl-5">
						<?php echo $this->_var['c']['shop']['title']; ?>
					</div>
					<div class="cl3 f12"><?php echo $this->_var['c']['createtime']; ?></div>  
				</div>
				<div gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="flex">
					<img gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" class="flexlist-img" />
					<div class="flex-1">
						<div  gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="flexlist-title"><?php echo $this->_var['c']['title']; ?></div>
						<div class="flexlist-desc"><?php echo $this->_var['c']['description']; ?></div>
						<div class="flex">
							<div class="cl-money f16 mgr-20">￥<?php echo $this->_var['c']['price']; ?></div>
							<div class="market-price">￥<?php echo $this->_var['c']['market_price']; ?></div>
							<div class="flex-1"></div>
							<div gourl="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>" class="btn-bm">立即报名</div>
						</div>
					</div>
				</div>
			</div>	
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		</div>
		<?php $this->assign('ftnav','home'); ?>
		<?php echo $this->fetch('ftnav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>
		<script src="/plugin/dt-ui/dt-ui-raty.js"></script>
		<script src="/plugin/swiper/js/swiper.min.js"></script>
		<script>
			var flash = new Swiper("#indexFlash",{
				pagination: {
				        el: '.swiper-pagination',
				      },
			});
			$(function() {
				skyRaty(".sky-raty");
				
				$(document).on("click", "#searchBtn", function() {
					var keyword = $("#keyword").val();
					window.location = "/module.php?m=b2b_search&keyword=" + encodeURIComponent(keyword);
				})
			})
		</script>
		<?php wx_jssdk();?>
		<script type="text/javascript">
			wxshare_title = "<?php echo $this->_var['seo']['title']; ?>"; 
			<?php if ($this->_var['site']['logo']): ?>
			wxshare_imgUrl = "<?php echo $this->_var['site']['logo']; ?>.100x100.jpg"; 
			<?php endif; ?>
		</script>
	</body>
</html>
