<!--{include file="<!--{$oetplpath}-->block_header.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_menu.tpl"}-->

<div class="oem_nav">
  当前位置：<a href="<!--{$urlpath}-->">首页</a> &gt;&gt; <a href="<!--{routeurl module='shop'}-->">商家</a>
  <!--{if !empty($catinfo)}-->
  <!--{if $catinfo.parentid > 0}-->
  &gt;&gt; <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$catinfo.parentid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{hook mod="shopcat" type="text" value=$catinfo.parentid}--></a>
  <!--{/if}-->
  &gt;&gt; <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$catinfo.catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{$catinfo.catname}--></a>
  <!--{/if}-->
</div>

<!--{assign var="shopads" value=vo_list("mod={ads} where={v.admark='shop_banner'} num={1}")}-->
<!--{if !empty($shopads)}-->
<!--{foreach $shopads as $volist}-->
<div class="oe_banner_ads">
  <!--{if $volist.url != ""}-->
  <a href="<!--{$volist.url}-->" target="_blank">
    <img  f="imgloading" data-original="<!--{$volist.drawimg}-->"/>
  </a>
  <!--{else}-->
  <img  f="imgloading" data-original="<!--{$volist.drawimg}-->"/>
  <!--{/if}-->
</div>
<!--{/foreach}-->
<!--{/if}-->

<!--{if $s_area2 == 0}-->
<!--{assign var="s_area2" value="<!--{$city.cityid}-->"}-->
<!--{/if}-->
<div class="oem_sort">
  <dl>
  	<dt>分类：</dt>
  	<dd>
	  <!--{if $s_catid > 0}-->
	  <!--{assign var="shopcatlist" value=vo_list("mod={shopcat} where={v.parentid='<!--{$s_catid}-->'}")}-->
	  <!--{if empty($shopcatlist)}-->
	  <!--{assign var="shopcatlist" value=vo_list("mod={shopcat} where={v.parentid='<!--{$catinfo.parentid}-->'}")}-->
	  <!--{/if}-->
	  <!--{else}-->
	  <!--{assign var="shopcatlist" value=vo_list("mod={shopcat} where={v.parentid='0'}")}-->
	  <!--{/if}-->
	  <!--{foreach $shopcatlist as $volist}-->
	    <a<!--{if $s_catid == $volist.catid}--> class="current"<!--{/if}--> href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$volist.catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{$volist.catname}--></a>
	  <!--{/foreach}-->
	</dd>
  </dl>
   
  <!--{if $city.cityid == 0}-->
  <dl>
    <dt>地区：</dt>
	<dd>
	  <a href="<!--{routeurl module='city'}-->">请先选择城市&gt;&gt;</a>
	</dd>
  </dl>
  <!--{else}-->
  <dl>
  	<dt>地区：</dt>
    <dd>
	  <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='<!--{$s_area2}-->'}")}-->
	  <a<!--{if $s_area3 == "0"}--> class="current"<!--{/if}--> href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->">全部</a>
	  <!--{foreach $distlist as $volist}-->
	  <a<!--{if $s_area3 == $volist.areaid}--> class="current"<!--{/if}--> href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$volist.areaid}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->"><!--{$volist.areaname}--></a>
	  <!--{/foreach}-->
	</dd>
	
	<!--{if $s_area3 > 0}-->
	<!--{assign var="communitylist" value=vo_list("mod={area} where={v.parentid='<!--{$s_area3}-->'}")}-->
	<!--{if !empty($communitylist)}-->
	<dd class="oem_sort_1">
	  <!--{foreach $communitylist as $volist}-->
	  <a<!--{if $s_area4 == $volist.areaid}--> class="current"<!--{/if}--> href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$volist.areaid}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->"><!--{$volist.areaname}--></a>
	  <!--{/foreach}-->
	</dd>
	<!--{/if}-->
	<!--{/if}-->
  </dl>
  <!--{/if}-->

</div>
<!--//oem_sort End-->


<div class="oem_listbar">

  <div class="oe_bar_left">

    <label f="orderby"<!--{if $s_order == ""}--> class="current"<!--{/if}-->>
	  <i><a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order="}-->">默认排序</a></i>
	</label>

	<label f="orderby"<!--{if $s_order == "hits_desc" || $s_order == "hits_asc"}--> class="current"<!--{/if}-->><i>人气</i>
	  <em class="oe_dcurrent" style="display:none;">
	    <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=hits_desc"}-->">人气从高到低</a>
	    <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=hits_asc"}-->">人气从低到高</a>
	  </em>
	</label>

    <label f="orderby"<!--{if $s_order == "score_desc" || $s_order == "score_asc"}--> class="current"<!--{/if}-->><i>评价</i>
      <em class="oe_dcurrent" style="display:none;">
        <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=score_desc"}-->">评价从高到低</a>
        <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=score_asc"}-->">评价从低到高</a>
      </em>
    </label>
  
	<label f="orderby"<!--{if $s_order == "collects_desc" || $s_order == "collects_asc"}--> class="current"<!--{/if}-->><i>收藏</i>
	  <em class="oe_dcurrent" style="display:none;">
	    <a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=collects_desc"}-->">收藏从高到低</a>
		<a href="<!--{routeurl module='shop' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=collects_asc"}-->">收藏从低到高</a>
	  </em>
	</label>

  </div>
  <!--//oe_bar_left End-->
  
  <div class="oe_bar_type">
    共为您找到 <i><!--{$total}--></i> 个商家
  </div>
  <div class="clear"></div>
</div>
<!--//oem_listbar End-->
<script type="text/javascript">
$(function(){
	//显示隐藏排序
	$("label[f='orderby']").bind("mouseover", function(){
		$(this).find("em").show();
	});
	$("label[f='orderby']").bind("mouseout", function(){ 
		$(this).find("em").hide();
	});

});
</script>
<!--//oem_listbar End-->


<div class="oem_main">

  <div class="oem_list_left">

    <div class="oe_shop_list">
      <!--{if empty($shop)}-->
      <h6 class="oe_nodata">暂时没有您要查找的信息！</h6>
	  <!--{else}-->
      <!--{foreach $shop as $volist}-->
      <dl>
	    <dt><a target="_blank" href="<!--{$volist.url}-->"><img  f="imgloading" data-original="<!--{$volist.logourl}-->" /></a></dt>
	    <dd>
          <h3>
		  <a target="_blank" href="<!--{$volist.url}-->"><!--{$volist.shopname}--></a>
		  <span  f="bespokeshop" data-id="<!--{$volist.shopid}-->">预约</span>
		  </h3>
          <p class="xin">
		  评分：<label class="fen"><span style="width:<!--{round((doubleval($volist.score)/5), 2)*100}-->%;"></span></label><i><!--{$volist.score}-->分</i>
          <label class="hot">人气：<!--{$volist.hits}--></label> 
          <label class="comment">
		  <!--{if $volist.comments > 0}-->
		  点评：<!--{$volist.comments}-->
		  <!--{/if}-->
		  </label> 
		  </p>
          <p class="address">
		  地址： 
		  <!--{area type='text' value=$volist.area2}-->
		  <!--{area type='text' value=$volist.area3}-->
		  <!--{$volist.address}-->
		  </p>
		  <p class="address">电话：<!--{$volist.phone}--></p>
      
        </dd>
      </dl>
	  <!--{/foreach}-->
	  <!--{/if}-->
	
	</div>
	<div class="clear"></div>
    <div class="oem_page"><!--{$showpage}--></div>
  </div>
  <!--//oem_list_left End-->
  

  <div class="oem_list_right">

    
    <div class="oem_r_tui">
      <h3>推荐店铺</h3>
	  <!--{assign var="eliteshop" value=vo_list("mod={shop} where={v.elite='1'} catid={<!--{$s_catid}-->} child={1} num={10} city={1}")}-->
	  <!--{foreach $eliteshop as $volist}-->
      <dl>

		<dt><a target="_blank" href="<!--{$volist.url}-->"><img  f="imgloading" data-original="<!--{$volist.logourl}-->" /></a></dt>
	    <dd>
          <h4><a target="_blank" href="<!--{$volist.url}-->"><!--{$volist.shopname}--></a></h4>
          <p>评分：<!--{$volist.score}--> 分</p>
          <p>人气：<!--{$volist.hits}--></p>
        </dd>
	  </dl>
	  <!--{/foreach}-->
	  <div class="clear"></div>
    </div>
	<!--//oem_r_tui End-->
    
    <div class="oem_r_tuishop">
	  <h3>最新活动 <span><a href="<!--{routeurl module='activity'}-->">更多&gt;&gt;</a></span></h3>  
	  <!--{assign var="newactivity" value=vo_list("mod={activity} num={5} city={1}")}-->
	  <!--{foreach $newactivity as $volist}-->
      <dl class="oem_incon_<!--{$volist.i}--><!--{if $volist.i>1}--> oem_incomm<!--{/if}-->">
        <dt><a target="_blank" href="<!--{$volist.url}-->"><img  f="imgloading" data-original="<!--{$volist.thumbimg}-->" /></a></dt>
        <dd>
          <h4><a target="_blank" href="<!--{$volist.url}-->"><!--{$volist.title}--></a></h4>
          <p><span>¥<!--{doubleval($volist.price)}--></span></p>
        </dd>
      </dl>
	  <!--{/foreach}-->
    </div>
	<!--//oem_r_tuishop End-->
  
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){

	$("[f='collectshop']").bind("click", function(){ //收藏店铺
		<!--{if $login.status == '0'}-->
		oe_varpop_loginbox();
		return false;
		<!--{/if}-->

		$shop_id = $(this).attr("data-id");
		$.ajax({
			type: "POST",
			url: _ROOT_PATH + "index.php",
			cache: false,
			data: {c:"collect", a:"collectshop", id:$shop_id, r:get_rndnum(8)},
			dataType: "json",
			success: function($data) {
				$json = eval($data);
				$response = $json.response;
				$result = $json.result;
				if ($response == "1") { //成功
					ToastShow("收藏成功");
				}
				else {
					if ($result.length > 0) {
						ToastShow($result)
					}
					else {
						ToastShow("收藏失败");
					}
				}
			},
			error: function() {
				ToastShow("收藏失败，请检查网络！");
			}
		});

	});

	$("[f='bespokeshop']").bind("click", function(){ //店铺预约
		$shop_id = $(this).attr("data-id");
		oe_varpop_bespokeshop($shop_id);
	});

});
</script>
<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->
</body>
</html>