导航细节优化

This commit is contained in:
devil_gong 2019-04-25 11:05:01 +08:00
parent 160a377ef2
commit 55c97e7fd4
4 changed files with 32 additions and 15 deletions

View File

@ -67,7 +67,7 @@ class Slide extends Common
'total' => $total,
'where' => $params,
'page' => isset($params['page']) ? intval($params['page']) : 1,
'url' => MyUrl('admin/customview/index'),
'url' => MyUrl('admin/slide/index'),
);
$page = new \base\Page($page_params);
$this->assign('page_html', $page->GetPageHtml());

View File

@ -201,7 +201,7 @@
<div class="cart-title">{{$spec.name}}</div>
<ul>
{{foreach $spec.value as $keys=>$specs}}
<li class="sku-line {{if !empty($specs['images'])}} sku-line-images{{/if}} {{if $key gt 0}} sku-dont-choose{{/if}} {{if isset($specs['is_only_level_one']) and isset($specs['inventory']) and $specs['inventory'] elt 0}}sku-items-disabled{{/if}}" data-type-value="{{$spec.name}}" data-value="{{$specs.name}}" {{if !empty($specs['images'])}} data-type-images="{{$specs.images}}"{{/if}}>
<li class="sku-line {{if !empty($specs['images'])}} sku-line-images{{/if}} {{if $key gt 0}} sku-dont-choose{{/if}} {{if isset($specs['is_only_level_one']) and isset($specs['inventory']) and $specs['inventory'] elt 0}} sku-items-disabled{{/if}}" data-type-value="{{$spec.name}}" data-value="{{$specs.name}}" {{if !empty($specs['images'])}} data-type-images="{{$specs.images}}"{{/if}}>
{{if !empty($specs['images'])}}
<img src="{{$specs.images}}" />
{{/if}}

View File

@ -14,6 +14,17 @@
</div>
</a>
<form class="am-topbar-form am-topbar-left am-form-inline am-show-sm-only navigation-search" role="search" action="{{:MyUrl('index/search/index')}}" method="POST">
<div class="am-input-group am-input-group-sm">
<input type="text" name="keywords" class="am-form-field" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['keywords'])}}{{$params.keywords}}{{/if}}" autocomplete="off" />
<span class="am-input-group-btn">
<button class="am-btn am-btn-default" type="submit">
<span class="am-icon-search am-icon-xs"></span>
</button>
</span>
</div>
</form>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<li><a href="{{$Think.__MY_URL__}}">首页</a></li>
@ -40,17 +51,6 @@
{{/if}}
</ul>
<form class="am-topbar-form am-topbar-left am-form-inline am-show-sm-only" role="search" action="{{:MyUrl('index/search/index')}}" method="POST">
<div class="am-input-group am-input-group-sm">
<input type="text" name="keywords" class="am-form-field" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['keywords'])}}{{$params.keywords}}{{/if}}" autocomplete="off" />
<span class="am-input-group-btn">
<button class="am-btn am-btn-default" type="submit">
<span class="am-icon-search am-icon-xs"></span>
</button>
</span>
</div>
</form>
<div class="am-topbar-right am-hide-sm-only">
<div class="navigation-user {{if empty($user)}}login-event{{/if}}">
<a href="{{if empty($user)}}javascript:;{{else /}}{{:MyUrl('index/user/index')}}{{/if}}">

View File

@ -657,7 +657,7 @@ ul.am-dropdown-content > .am-active > a:focus,
color: #d2354c;
}
.shop-navigation .wap-logo {
max-width: 120px;
max-width: 100px;
max-height: 45px;
padding: 5px;
}
@ -711,7 +711,7 @@ ul.am-dropdown-content > .am-active > a:focus,
.shop-navigation .am-topbar-collapse {
background: #eee;
}
.shop-navigation .am-nav > li {
.shop-navigation .am-nav > li:not(:last-child) {
border-bottom: 1px solid #e8e8e8;
}
.shop-navigation .am-topbar-collapse .am-dropdown.am-active .am-dropdown-content li:not(:first-child) {
@ -720,6 +720,23 @@ ul.am-dropdown-content > .am-active > a:focus,
.shop-navigation .am-nav > li > a {
padding: 5px 0px;
}
.shop-navigation .am-topbar-nav {
margin-bottom: 0;
}
.shop-navigation .navigation-search
{
display: -webkit-box !important;
margin-top: 8px;
width: calc(100% - 160px);
}
.shop-navigation .navigation-search input {
border-color: #d2354c;
}
.shop-navigation .am-btn {
color: #fff !important;
background-color: #d2354c;
border-color: #d2354c;
}
}