日期:2014-05-16 浏览次数:20476 次
self.on('panel_showed', function (e, showDetail) {
var hasGet = false, unreadsData;
self.resetPosition();
// 显示面板内容
if (unreads !== 0) {
self.getUnreads(self.showListCbWrap(function (err, data, loading) {
unreads = 0;
unreadsData = data.data;
}));
hasGet = true;
}
if (!hasReadedItems) {
$('.notice_content', self.Dom.wrap).empty();
self.getAllReaded(self.showListCbWrap(function (err, data, loading) {
hasReadedItems = true;
}));
hasGet = true;
}
if (hasGet) {
self.Dom.wrap.one('list_showed', function (e, err) {
if (err) {
self.error(err);
} else {
if(showDetail) {
var unreadsItem = $('.notice_list_con .unread', self.Dom.wrap);
if(unreadsItem.length === 1) {
unre