Authored by Lynnic

update

var $ = require('jquery');
var $ = require('jquery'),
tip = require('../../plugin/tip');
var commentsNum;
... ... @@ -25,11 +26,11 @@ var commentsNum;
})();
$('#nav-tab li').on('click', function() {
$('#nav-tab li').on('touchend', function() {
var index = $(this).index();
if ($(this).hasClass('comment-nav') && 0 === commentsNum) {
alert('暂无商品评价');
tip.show('暂无商品评价');
} else {
if (!$(this).hasClass('focus')) {
... ...