Authored by uedxwg

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -26,7 +26,7 @@ var requestFrame,
$logotrans = $('.home-header .logo'),
isen = true;
var navHammer, mobileWrapHammer;
var navHammer;
require('./maybe-like');
... ... @@ -53,23 +53,18 @@ navHammer.on('tap', function(event) {
function hideSideBar() {
if ($mobileWrap.hasClass('menu-open')) {
$mobileWrap.removeClass('menu-open');
$overlay.css('opacity', 0);
$('.overlay').hide();
$('.sub-nav').removeClass('show');
$sideNav.removeClass('on');
$('body').css({
height: 'auto',
overflow: 'auto'
});
setTimeout(function() {
$('.overlay').hide();
}, 300);
}
}
mobileWrapHammer = new Hammer($('.mobile-wrap')[0]);
mobileWrapHammer.on('tap', function(e) {
$('.overlay').on('touchend', function(e) {
hideSideBar();
e.srcEvent.stopPropagation();
return false;
});
... ...
... ... @@ -26,7 +26,6 @@
right: 0;
bottom: 0;
background: #000;
opacity: 0;
z-index: 4;
@include transition(opacity 1s);
}
... ...
... ... @@ -3,8 +3,7 @@
<div class="newbrand-search">
<div class="search-box clearfix">
<a href="{{searchUrl}}" >
<!-- <input type="text" class="search-input" placeholder="查找品牌"> -->
<span>查找品牌</span>
<input type="text" class="search-input" placeholder="查找品牌" readonly="true">
<i class="search-icon iconfont">&#xe60f;</i>
</a>
</div>
... ...