<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>

	<body>
		<div class="header">
			 
			<div class="header-title">培训机构</div>
		</div>
		<div class="header-row"></div>
		<div class="main-body none" :class="'flex-col'" id="app">
			<div class="pd-5">
			<form class="header-search-box">
				<div class="header-search-icon icon-search"></div>
				<input id="keyword" type="text" class="header-search" />
				<div id="searchBtn" class="header-search-btn">搜</div>
			</form>
			</div>
			<div class="tabs-border">
				<div @click="setType('')" :class="{'tabs-border-active':type==''}" class="tabs-border-item">推荐</div>
				<div @click="setType('near')"  :class="{'tabs-border-active':type=='near'}" class="tabs-border-item">附近</div>
				 
			</div>
			<div>
			 
				<div :gourl="'/module.php?m=exue_shop&a=show&shopid='+item.shopid" v-for="(item,index) in list" :key="index"  class="flexlist-item">
					<img   class="flexlist-img" :src="item.imgurl+'.100x100.jpg'" />
					<div class="flex-1">
						<div   class="flexlist-title">{{item.title}}</div>
						<div class="flexlist-desc">{{item.address}}</div>
						<div class="flexlist-desc">{{item.description}}</div>
					</div>
				</div>
				 
			</div>

		</div>
		<?php $this->assign('ftnav','shop'); ?>
		<?php echo $this->fetch('ftnav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>
		<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<?php echo BDMAPKEY; ?>"></script>
		<script>
			$(document).on("click", "#searchBtn", function() {
				var keyword = $("#keyword").val();
				window.location = "/module.php?m=exue_shop&a=search&keyword=" + encodeURIComponent(keyword);
			})
			var gps={lat:0,lng:0};
			var geolocation = new BMap.Geolocation();
				geolocation.getCurrentPosition(function(r){
					if(this.getStatus() == BMAP_STATUS_SUCCESS){
						gps.lat=r.point.lat;
						gps.lng=r.point.lng;
					}
					else {
						alert('failed'+this.getStatus());
					}        
				},{enableHighAccuracy: true})
		</script> 
		<script src="<?php echo $this->_var['skins']; ?>exue_shop/index.js"></script>
	</body>
</html>
