Authored by zhangxiaoru

editorial

... ... @@ -17,7 +17,7 @@ var $commentList = $commentArea.find('.comments-wrap'),
$commentBtn = $('#comment-btn'),
MAX_COMMENTS_WORDS = 100,
$wordCountTip = $('#word-count-tip'),
_alert = dialog.Alert;
_alert = dialog.Alert;
require('../plugins/share');
... ...
... ... @@ -8,13 +8,13 @@ var $ = require('yoho-jquery'),
lazyLoad = require('yoho-jquery-lazyload'),
dialog = require('../plugins/dialog');
var _alert = dialog.Alert;
require('../common/header');
require('../common/return-top');
lazyLoad($('.content-msg img.lazy'));
var _alert = dialog.Alert;
$('.editorial-index-page').on('click', '.like-icon', function() {
var $this = $(this),
... ...
... ... @@ -2,13 +2,13 @@ var $ = require('yoho-jquery'),
lazyLoad = require('yoho-jquery-lazyload'),
dialog = require('../plugins/dialog');
var _alert = dialog.Alert;
require('../common/header');
require('../common/return-top');
lazyLoad($('.content-msg img.lazy'));
var _alert = dialog.Alert;
$('.editorial-list-page').on('click', '.like-icon', function() {
var $this = $(this),
... ... @@ -35,6 +35,7 @@ $('.editorial-list-page').on('click', '.like-icon', function() {
if (data.code === 500) {
new _alert(data.message).show();
}
// if (data.code === 200) {
// if (data.data * 1 === 0) {
// $this.next('b').addClass('num-0').children('.num').html('0'); // 隐藏数字显示
... ...