store_header.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <link rel="stylesheet" href="{$Think.BASE_SITE_ROOT}/static/home/default/store/styles/default/css/base.css">
  2. <link rel="stylesheet" href="{$Think.BASE_SITE_ROOT}/static/home/default/store/styles/default/css/shop.css">
  3. <div class="header">
  4. <div class="w1200">
  5. <div class="logo store_logo_wrap">
  6. <a href="{:url('Index/index')}">
  7. <img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/>
  8. </a>
  9. <a class="store_logo" href="{:url('Store/index',['store_id'=>$store_info.store_id])}">
  10. <img src="{:get_store_logo($store_info['store_avatar'],'store_avatar')}" alt="{$store_info.store_name}" title="{$store_info.store_name}" />
  11. </a>
  12. <div class="shop_info">
  13. <div class="shop_name">{$store_info.store_name}</div>
  14. <div class="shop_main">
  15. <ul >
  16. {notempty name="store_info.store_credit"}
  17. {foreach name="store_info.store_credit" item="value"}
  18. <li>
  19. <p>{$value.text}</p><span class="credit">{$value.credit} {$Think.lang.credit_unit}</span>
  20. </li>
  21. {/foreach}
  22. {/notempty}
  23. </ul>
  24. </div>
  25. <div class="triangle"><i></i></div>
  26. <div class="extra-info clearfix">
  27. <div class="left">
  28. <div class="shop-collect">
  29. <div class="shop_logo"> <img src="{:get_store_logo($store_info['store_avatar'],'store_avatar')}" alt="{$store_info.store_name}" title="{$store_info.store_name}" /></div>
  30. <a class="collect-btn" href="javascript:collect_store('{$store_info.store_id}','count','store_collect')" >{$Think.lang.ds_collect}</a>
  31. </div>
  32. <div class="shop-qr-code">
  33. <img src="{$Think.HOME_SITE_URL}/qrcode?url={$Think.config.ds_config.h5_site_url}/home/storedetail?id={$store_info.store_id}">
  34. </div>
  35. </div>
  36. <div class="right">
  37. <div class="dss-detail-rate">
  38. <h4>{$Think.lang.ds_dynamic_evaluation}</h4>
  39. <ul>
  40. {notempty name="store_info.store_credit"}
  41. {foreach name="store_info.store_credit" item="value"}
  42. <li> {$value.text}:<span class="credit">{$value.credit} {$Think.lang.credit_unit}</span>
  43. {/foreach}
  44. {/notempty}
  45. </ul>
  46. </div>
  47. <div class="extend ">
  48. <h4>{$Think.lang.shop_service}</h4>
  49. <dl class="no-border">
  50. <dt class="fl"><span class="t_adjust">{$Think.lang.seller_name}</span><span>:</span></dt>
  51. <dd class="fl">{$store_info.seller_name}</dd>
  52. </dl>
  53. <dl class="no-border">
  54. <dt class="fl"><span class="t_adjust">{$Think.lang.company_name}</span><span>:</span></dt>
  55. <dd class="fl">{$store_info.store_company_name}</dd>
  56. </dl>
  57. <dl class="no-border">
  58. <dt class="fl"><span class="t_adjust">{$Think.lang.ds_srore_location}</span><span>:</span></dt>
  59. <dd class="fl">{$store_info.area_info}</dd>
  60. </dl>
  61. {notempty name="store_info.store_phone"}
  62. <dl class="no-border">
  63. <dt class="fl"><span class="t_adjust">{$Think.lang.phone_space}</span><span>:</span></dt>
  64. <dd class="fl">{$store_info.store_phone}</dd>
  65. </dl>
  66. {/notempty}
  67. <dl>
  68. <dt class="fl"><span class="t_adjust">{$Think.lang.business_licence_number_electronic}</span><span>:</span></dt>
  69. <dd class="fl">
  70. {if !$store_info.is_platform_store}
  71. {if $store_info.business_licence_number_electronic}
  72. <a href="{$store_info.business_licence_number_electronic}" target="_blank">{$Think.lang.ds_view}</a>
  73. {/if}
  74. {else}
  75. {if $Think.config.ds_config.business_licence}
  76. <a href="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.business_licence)}" target="_blank">{$Think.lang.ds_view}</a>
  77. {/if}
  78. {/if}
  79. </dd>
  80. </dl>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <div id="search" class="head-search-bar">
  87. <form class="search-form" id="store_search_form" method="get" action="{:url('Store/goods_all')}">
  88. <input type="hidden" value="{$Request.param.store_id}" name="store_id">
  89. <input placeholder="{$Think.lang.search_merchandise_keywords}" name="inkeyword" id="keyword" type="text" class="input-text" value="{$Request.param.inkeyword}" maxlength="60" />
  90. <a href="javascript:$('#store_search_form').submit()" class="input-submit shop">{$Think.lang.search_shop}</a>
  91. <a href="javascript:void(0)" class="input-submit all">{$Think.lang.search_all}</a>
  92. </form>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="banner" style="background-image: url({if $store_info['store_banner']}{:get_store_logo($store_info['store_banner'],'store_banner')}{else}{$Think.BASE_SITE_ROOT}/static/home/default/store/styles/default/images/header.jpg{/if})">
  97. <div class="w1200"></div>
  98. </div>
  99. <div class="dss-nav">
  100. <div class="w1200">
  101. <ul>
  102. <li><a href="{:url('Store/index',['store_id'=>$store_info.store_id])}"><span>{$Think.lang.ds_store_index}<i></i></span></a></li>
  103. <li><a href="{:url('Store/goods_all',['store_id'=>$store_info.store_id])}"><span>{$Think.lang.ds_whole_goods}<i></i></span></a></li>
  104. <li><a href="{:url('Storesnshome/index',['sid'=>$store_info.store_id])}"><span>{$Think.lang.ds_store_the_dynamic}<i></i></span></a></li>
  105. {notempty name="store_navigation_list"}
  106. {foreach name="store_navigation_list" item="value" }
  107. {if $value.storenav_url != ''}
  108. <li class=""><a href="{$value.storenav_url}"><span>{$value.storenav_title}<i></i></span></a></li>
  109. {else/}
  110. <li class=""><a href="{:url('Store/article',['store_id'=>$store_info.store_id,'storenav_id'=>$value.storenav_id])}"><span>{$value.storenav_title}<i></i></span></a></li>
  111. {/if}
  112. {/foreach}
  113. {/notempty}
  114. </ul>
  115. </div>
  116. </div>
  117. <!--面包屑导航 BEGIN-->
  118. {notempty name="nav_link_list"}
  119. <div class="dsh-breadcrumb-layout">
  120. <div class="dsh-breadcrumb w1200"><i class="iconfont">&#xe6ff;</i>
  121. {foreach $nav_link_list as $nav_link}
  122. {empty name="nav_link.link"}
  123. <span>{$nav_link.title}</span>
  124. {else /}
  125. <span><a href="{$nav_link.link}">{$nav_link.title}</a></span><span class="arrow">></span>
  126. {/empty}
  127. {/foreach}
  128. </div>
  129. </div>
  130. {/notempty}
  131. <!--面包屑导航 END-->
  132. <script>
  133. $(".head-search-bar .all").click(function(){
  134. var url = HOMESITEURL+"/Search/index";
  135. $("#store_search_form").attr('action',url);
  136. $("#store_search_form").submit();
  137. })
  138. </script>