Authored by hf

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

@@ -24,11 +24,11 @@ class Yohobuy @@ -24,11 +24,11 @@ class Yohobuy
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 //java API 26 //java API
27 - /**const API_URL = 'http://apih5.yoho.cn/';  
28 - const API_URL2 = 'http://apih5.yoho.cn/';  
29 - const SERVICE_URL = 'http://serviceh5.yoho.cn/';  
30 - const YOHOBUY_URL = 'http://www.yohobuy.com/';  
31 - const API_OLD = 'http://api2.open.yohobuy.com/';**/ 27 +// const API_URL = 'http://apih5.yoho.cn/';
  28 +// const API_URL2 = 'http://apih5.yoho.cn/';
  29 +// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
  30 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
  31 +// const API_OLD = 'http://api2.open.yohobuy.com/';
32 32
33 /* 测试环境 */ 33 /* 测试环境 */
34 const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' 34 const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
@@ -1708,6 +1708,7 @@ var start = 0, @@ -1708,6 +1708,7 @@ var start = 0,
1708 lazyLoad($('img.lazy')); 1708 lazyLoad($('img.lazy'));
1709 1709
1710 $('.nav-btn').on('touchstart', function(event) { 1710 $('.nav-btn').on('touchstart', function(event) {
  1711 + $sideNav.css('pointer-events', 'none');
1711 $mobileWrap.addClass('menu-open'); 1712 $mobileWrap.addClass('menu-open');
1712 $overlay.show().css('opacity', 0.3); 1713 $overlay.show().css('opacity', 0.3);
1713 $sideNav.addClass('on'); 1714 $sideNav.addClass('on');
@@ -1720,6 +1721,11 @@ $('.nav-btn').on('touchstart', function(event) { @@ -1720,6 +1721,11 @@ $('.nav-btn').on('touchstart', function(event) {
1720 height: $(window).height(), 1721 height: $(window).height(),
1721 overflow: 'hidden' 1722 overflow: 'hidden'
1722 }); 1723 });
  1724 +
  1725 + setTimeout(function() {
  1726 + $sideNav.css('pointer-events', 'auto');
  1727 + }, 400);
  1728 +
1723 return false; 1729 return false;
1724 }); 1730 });
1725 1731
@@ -6933,7 +6939,7 @@ function loadData($parent, url, page) { @@ -6933,7 +6939,7 @@ function loadData($parent, url, page) {
6933 //处理data等于end时如果loadingMask存在且没有hide样式的情况 6939 //处理data等于end时如果loadingMask存在且没有hide样式的情况
6934 if ($loadingMask && !$loadingMask.hasClass('hide')) { 6940 if ($loadingMask && !$loadingMask.hasClass('hide')) {
6935 $loadingMask.addClass('hide'); 6941 $loadingMask.addClass('hide');
6936 - $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); 6942 + //$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
6937 } 6943 }
6938 6944
6939 $parent.closest('.fav-type').find('.fav-load-background') 6945 $parent.closest('.fav-type').find('.fav-load-background')
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
@@ -66,7 +66,7 @@ $('.overlay').on('touchstart', function(e) { @@ -66,7 +66,7 @@ $('.overlay').on('touchstart', function(e) {
66 }); 66 });
67 67
68 //点击一级导航,弹出二级导航 68 //点击一级导航,弹出二级导航
69 -$sideNav.on('touchstart', 'li', function(e) { 69 +$sideNav.on('touchend', 'li', function(e) {
70 if ($(this).find('.sub-nav').size() > 0) { 70 if ($(this).find('.sub-nav').size() > 0) {
71 $('.sub-nav').removeClass('show'); 71 $('.sub-nav').removeClass('show');
72 $(this).find('.sub-nav').addClass('show'); 72 $(this).find('.sub-nav').addClass('show');