<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<div th:fragment="header">
  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav" style="
        height: 20px;
        margin: 0px;
        padding: 15px 0px;">
          <li class="active">
            <span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span>
          </li>
          <li style="padding: 0px 9px;"><a href="#" style="padding: 0px;">通知</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#">请先登录</a></li>
          <li><a href="#">免费注册</a></li>
          <li><a href="#">我的订单</a></li>
          <li><a href="#">会员中心</a></li>
          <li><a href="#">帮助中心</a></li>
          <li><a href="#">在线客服</a></li>
          <li><a href="#">手机版</a></li>
        </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>
</div>

<div th:fragment="search">
  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Brand</a>
      </div>

      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
          <li><a href="#">首页</a></li>
          <li><a href="#">服装</a></li>
          <li><a href="#">餐厨</a></li>
          <li><a href="#">电器</a></li>
          <li><a href="#">配件</a></li>
          <li><a href="#">居家</a></li>
          <li><a href="#">洗护</a></li>
          <li><a href="#">婴童</a></li>
          <li><a href="#">杂货</a></li>
          <li><a href="#">饮食</a></li>
        </ul>
        <form class="navbar-form navbar-left" action="/search">
          <div class="form-group">
            <input type="text" name="keyWord"
                   th:value="${searchReq == null ? '' : searchReq.keyWord }" class="form-control" placeholder="请输入商品搜索词">
          </div>
          <button type="submit" class="btn btn-default" >搜索</button>
        </form>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#"><span class="glyphicon glyphicon-shopping-cart"></span>我的购物车</a></li>
        </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>
</div>

<div id="footer">
  <p>
    30天无忧退换货                          满88元免邮费                          优品汇品质保证
  </p>
  <p>
    关于我们  |  帮助中心  |  售后服务  |  配送与验收  |  商务合作  |  企业采购  |  开放平台  |  搜索推荐  |  友情链接
  </p>
  <p>
    CopyRight @ 优品汇 2015 - 2017
  </p>
</div>

</html>
