Authored by 梁志锋

测试fastclick效果

@@ -283,6 +283,8 @@ $.extend({ @@ -283,6 +283,8 @@ $.extend({
283 } 283 }
284 }); 284 });
285 285
  286 +FastClick.attach(document.body);
  287 +
286 //暴露公共接口 288 //暴露公共接口
287 window.cookie = cookie; 289 window.cookie = cookie;
288 290
@@ -78,7 +78,7 @@ $sideNav.on('touchend', 'li', function(e) { @@ -78,7 +78,7 @@ $sideNav.on('touchend', 'li', function(e) {
78 78
79 // 返回一级导航,收起二级导航 79 // 返回一级导航,收起二级导航
80 $subNav.each(function() { 80 $subNav.each(function() {
81 - $(this).find('li').eq(0).on('touchstart', function() { 81 + $(this).find('li').eq(0).on('click', function() {
82 82
83 $sideNav.css('pointer-events', 'none'); 83 $sideNav.css('pointer-events', 'none');
84 setTimeout(function() { 84 setTimeout(function() {
1 {{> layout/page_footer}} 1 {{> layout/page_footer}}
2 {{> layout/download_app}} 2 {{> layout/download_app}}
  3 +<script type="text/javascript" src="//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
3 {{#if hasWxShare}} 4 {{#if hasWxShare}}
4 <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 5 <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
5 {{/if}} 6 {{/if}}