Authored by hf

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

1 -var $ = require('jquery'); 1 +var $ = require('jquery'),
  2 + tip = require('../../plugin/tip');
2 var commentsNum; 3 var commentsNum;
3 4
4 5
@@ -25,11 +26,11 @@ var commentsNum; @@ -25,11 +26,11 @@ var commentsNum;
25 26
26 })(); 27 })();
27 28
28 -$('#nav-tab li').on('click', function() { 29 +$('#nav-tab li').on('touchend', function() {
29 var index = $(this).index(); 30 var index = $(this).index();
30 31
31 if ($(this).hasClass('comment-nav') && 0 === commentsNum) { 32 if ($(this).hasClass('comment-nav') && 0 === commentsNum) {
32 - alert('暂无商品评价'); 33 + tip.show('暂无商品评价');
33 } else { 34 } else {
34 if (!$(this).hasClass('focus')) { 35 if (!$(this).hasClass('focus')) {
35 36