Authored by 梁志锋

修改侧边栏点透、长安问题

... ... @@ -67,7 +67,7 @@ $newCoupon.on('submit', function() {
return false;
});
$('#coupon-list').on('touchend', '.employ-main', function() {
$('#coupon-list').on('click', '.employ-main', function() {
var $this = $(this);
var couponCode = $this.data('coupon-code');
... ...
... ... @@ -139,7 +139,8 @@ function reMarginFooter(fixedElement) {
//页面通用底部位置及status设置
(function() {
var $op = $footer.children('.op-row');
var $op = $footer.children('.op-row'),
$backToTop = $('.back-to-top');
var user = getUser();
... ... @@ -165,8 +166,8 @@ function reMarginFooter(fixedElement) {
);
}
if ($op.find('.back-to-top').length > 0) {
backToTopHammer = new Hammer($op.find('.back-to-top')[0]);
if ($backToTop.length > 0) {
backToTopHammer = new Hammer($backToTop[0]);
backToTopHammer.on('tap', function(e) {
$(window).scrollTop(0);
e.srcEvent.preventDefault();
... ...
... ... @@ -20,24 +20,25 @@ var $ = require('jquery'),
var start = 0,
swiperClass,
$logotrans = $('.home-header .logo'),
openSideNav = false,
isen = true;
var navHammer;
lazyLoad($('img.lazy'));
navHammer = new Hammer($('.nav-btn')[0]);
navHammer.on('tap', function(event) {
event.preventDefault();
$('.nav-btn').on('touchstart', function(event) {
$mobileWrap.addClass('menu-open');
$overlay.show().css('opacity', 0.3);
$sideNav.addClass('on');
event.srcEvent.stopPropagation();
event.preventDefault();
event.stopPropagation();
openSideNav = true;
return false;
});
function hideSideBar() {
openSideNav = false;
if ($mobileWrap.hasClass('menu-open')) {
$mobileWrap.removeClass('menu-open');
$('.overlay').hide();
... ...
... ... @@ -7,7 +7,6 @@
left: 0;
right: 100rem / $pxConvertRem;
width: 540rem / $pxConvertRem;
z-index: 4;
overflow: hidden;
@include transition(all .3s);
... ...