Authored by 梁志锋

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

@@ -67,7 +67,7 @@ $newCoupon.on('submit', function() { @@ -67,7 +67,7 @@ $newCoupon.on('submit', function() {
67 return false; 67 return false;
68 }); 68 });
69 69
70 -$('#coupon-list').on('touchend', '.employ-main', function() { 70 +$('#coupon-list').on('click', '.employ-main', function() {
71 var $this = $(this); 71 var $this = $(this);
72 var couponCode = $this.data('coupon-code'); 72 var couponCode = $this.data('coupon-code');
73 73
@@ -139,7 +139,8 @@ function reMarginFooter(fixedElement) { @@ -139,7 +139,8 @@ function reMarginFooter(fixedElement) {
139 139
140 //页面通用底部位置及status设置 140 //页面通用底部位置及status设置
141 (function() { 141 (function() {
142 - var $op = $footer.children('.op-row'); 142 + var $op = $footer.children('.op-row'),
  143 + $backToTop = $('.back-to-top');
143 144
144 var user = getUser(); 145 var user = getUser();
145 146
@@ -165,8 +166,8 @@ function reMarginFooter(fixedElement) { @@ -165,8 +166,8 @@ function reMarginFooter(fixedElement) {
165 ); 166 );
166 } 167 }
167 168
168 - if ($op.find('.back-to-top').length > 0) {  
169 - backToTopHammer = new Hammer($op.find('.back-to-top')[0]); 169 + if ($backToTop.length > 0) {
  170 + backToTopHammer = new Hammer($backToTop[0]);
170 backToTopHammer.on('tap', function(e) { 171 backToTopHammer.on('tap', function(e) {
171 $(window).scrollTop(0); 172 $(window).scrollTop(0);
172 e.srcEvent.preventDefault(); 173 e.srcEvent.preventDefault();
@@ -20,24 +20,25 @@ var $ = require('jquery'), @@ -20,24 +20,25 @@ var $ = require('jquery'),
20 var start = 0, 20 var start = 0,
21 swiperClass, 21 swiperClass,
22 $logotrans = $('.home-header .logo'), 22 $logotrans = $('.home-header .logo'),
  23 + openSideNav = false,
23 isen = true; 24 isen = true;
24 25
25 var navHammer; 26 var navHammer;
26 27
27 lazyLoad($('img.lazy')); 28 lazyLoad($('img.lazy'));
28 29
29 -navHammer = new Hammer($('.nav-btn')[0]);  
30 -navHammer.on('tap', function(event) {  
31 - event.preventDefault(); 30 +$('.nav-btn').on('touchstart', function(event) {
32 $mobileWrap.addClass('menu-open'); 31 $mobileWrap.addClass('menu-open');
33 $overlay.show().css('opacity', 0.3); 32 $overlay.show().css('opacity', 0.3);
34 $sideNav.addClass('on'); 33 $sideNav.addClass('on');
35 -  
36 - event.srcEvent.stopPropagation(); 34 + event.preventDefault();
  35 + event.stopPropagation();
  36 + openSideNav = true;
37 return false; 37 return false;
38 }); 38 });
39 39
40 function hideSideBar() { 40 function hideSideBar() {
  41 + openSideNav = false;
41 if ($mobileWrap.hasClass('menu-open')) { 42 if ($mobileWrap.hasClass('menu-open')) {
42 $mobileWrap.removeClass('menu-open'); 43 $mobileWrap.removeClass('menu-open');
43 $('.overlay').hide(); 44 $('.overlay').hide();
@@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
7 left: 0; 7 left: 0;
8 right: 100rem / $pxConvertRem; 8 right: 100rem / $pxConvertRem;
9 width: 540rem / $pxConvertRem; 9 width: 540rem / $pxConvertRem;
10 - z-index: 4;  
11 overflow: hidden; 10 overflow: hidden;
12 @include transition(all .3s); 11 @include transition(all .3s);
13 12