@italentjs/italent-header
Advanced tools
Comparing version 1.0.60 to 1.0.61
@@ -31,3 +31,3 @@ /* | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" data-name="view-all" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
@@ -138,3 +138,7 @@ this["JST"]["header/icon-view/upgrade"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" target="_blank" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t<!-- '; if(reminds.remindCount){ ;__p += ' -->\n\t\t\t<!-- TODO:new图标 -->\n\t\t\t<span class="new-icon">\n\n\t\t\t</span>\n\t\t\t<!-- '; } ;__p += ' -->\n\t\t\t<div class="btn-tips">\n\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t</div>\n</a>\n<div class="list-wrapper">\n</div>\n<div class="list-wrapper-mask"></div>\n\n<!-- <a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a> -->';}return __p}; | ||
this.ui.valueInput.blur() | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose() | ||
@@ -189,7 +193,7 @@ return false | ||
events['click ' + this.ui.iconBtn] = 'listShow'; | ||
events['click ' + this.ui.messageItem] = 'listClose'; | ||
events['click ' + this.ui.messageItem] = 'close'; | ||
events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
events['click ' + this.ui.viewAll] = 'listClose'; | ||
events['click ' + this.ui.viewAll] = 'close'; | ||
events['click ' + this.ui.popMask] = 'listClose'; | ||
@@ -202,2 +206,10 @@ return events; | ||
} | ||
,close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
}); | ||
@@ -239,3 +251,3 @@ | ||
messageItem: ".message-item", | ||
viewAll: ".view-all a", | ||
viewAll: '[data-name="view-all"]', | ||
headIgnoreAll: '[data-name="head-ignore-all"]', | ||
@@ -251,4 +263,4 @@ popMask: ".list-wrapper-mask" | ||
events["mouseenter " + this.ui.popList] = "autoHideCancle" | ||
events["click " + this.ui.messageItem] = "listClose" | ||
events["click " + this.ui.viewAll] = "listClose" | ||
events["click " + this.ui.messageItem] = "close" | ||
events["click " + this.ui.viewAll] = "close" | ||
events["click " + this.ui.headIgnoreAll] = "_headIgnoreAll" | ||
@@ -275,2 +287,11 @@ events['click ' + this.ui.popMask] = 'listClose'; | ||
this.trigger("ignoreAllTodo") | ||
this.listClose(); | ||
}, | ||
close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他-todo") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
@@ -396,3 +417,3 @@ }) | ||
messageRenew: function(newMsg) { | ||
this.model.set(newMsg) | ||
this.model.set("isShowNew", newMsg) | ||
}, | ||
@@ -514,3 +535,3 @@ }) | ||
/** 用户信息类 **/ | ||
var UserInfo = Talent.Layout.extend({ | ||
@@ -522,3 +543,3 @@ template: jst['header/user-info'] | ||
this.options = options; | ||
this.model = new Talent.Model(options); | ||
this.model = new Talent.Model(options); | ||
} | ||
@@ -530,3 +551,3 @@ ,ui: { | ||
,listItem:".list-ul-box .dp-list-item a" | ||
,listFront:".dp-list-front" | ||
@@ -561,13 +582,17 @@ ,listShadow:".dp-list-shadow" | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
},350); | ||
// 我要吐槽记录来源要清空 | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
}); | ||
@@ -574,0 +599,0 @@ |
@@ -53,4 +53,4 @@ define(["talent", "templates/common", "header"], function(Talent, jst, Header) { | ||
title: "个人主页", | ||
href: "javascript:void(0)", | ||
target: "_self", | ||
href:"https://www.italent.link/114246255/ITalentHome#widget%2Fitalent%3FiTalentFrameType%3Diframe%26iTalentFrame%3Dhttps%253A%252F%252Fwww.italent.link%252F105983456%252FPageBuilderForEdit%2523%252Fview%253Fto_user_id%253D105983456%26", | ||
target:"_blank", | ||
type: "xxxx" | ||
@@ -57,0 +57,0 @@ }, |
61
index.js
@@ -31,3 +31,3 @@ /* | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" data-name="view-all" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
@@ -138,3 +138,7 @@ this["JST"]["header/icon-view/upgrade"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" target="_blank" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t<!-- '; if(reminds.remindCount){ ;__p += ' -->\n\t\t\t<!-- TODO:new图标 -->\n\t\t\t<span class="new-icon">\n\n\t\t\t</span>\n\t\t\t<!-- '; } ;__p += ' -->\n\t\t\t<div class="btn-tips">\n\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t</div>\n</a>\n<div class="list-wrapper">\n</div>\n<div class="list-wrapper-mask"></div>\n\n<!-- <a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a> -->';}return __p}; | ||
this.ui.valueInput.blur() | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose() | ||
@@ -189,7 +193,7 @@ return false | ||
events['click ' + this.ui.iconBtn] = 'listShow'; | ||
events['click ' + this.ui.messageItem] = 'listClose'; | ||
events['click ' + this.ui.messageItem] = 'close'; | ||
events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
events['click ' + this.ui.viewAll] = 'listClose'; | ||
events['click ' + this.ui.viewAll] = 'close'; | ||
events['click ' + this.ui.popMask] = 'listClose'; | ||
@@ -202,2 +206,10 @@ return events; | ||
} | ||
,close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
}); | ||
@@ -239,3 +251,3 @@ | ||
messageItem: ".message-item", | ||
viewAll: ".view-all a", | ||
viewAll: '[data-name="view-all"]', | ||
headIgnoreAll: '[data-name="head-ignore-all"]', | ||
@@ -251,4 +263,4 @@ popMask: ".list-wrapper-mask" | ||
events["mouseenter " + this.ui.popList] = "autoHideCancle" | ||
events["click " + this.ui.messageItem] = "listClose" | ||
events["click " + this.ui.viewAll] = "listClose" | ||
events["click " + this.ui.messageItem] = "close" | ||
events["click " + this.ui.viewAll] = "close" | ||
events["click " + this.ui.headIgnoreAll] = "_headIgnoreAll" | ||
@@ -275,2 +287,11 @@ events['click ' + this.ui.popMask] = 'listClose'; | ||
this.trigger("ignoreAllTodo") | ||
this.listClose(); | ||
}, | ||
close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他-todo") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
@@ -396,3 +417,3 @@ }) | ||
messageRenew: function(newMsg) { | ||
this.model.set(newMsg) | ||
this.model.set("isShowNew", newMsg) | ||
}, | ||
@@ -514,3 +535,3 @@ }) | ||
/** 用户信息类 **/ | ||
var UserInfo = Talent.Layout.extend({ | ||
@@ -522,3 +543,3 @@ template: jst['header/user-info'] | ||
this.options = options; | ||
this.model = new Talent.Model(options); | ||
this.model = new Talent.Model(options); | ||
} | ||
@@ -530,3 +551,3 @@ ,ui: { | ||
,listItem:".list-ul-box .dp-list-item a" | ||
,listFront:".dp-list-front" | ||
@@ -561,13 +582,17 @@ ,listShadow:".dp-list-shadow" | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
},350); | ||
// 我要吐槽记录来源要清空 | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
}); | ||
@@ -574,0 +599,0 @@ |
{ | ||
"author": "Guo Meishan", | ||
"author": "GuoMeishan", | ||
"description": "iTalent header", | ||
@@ -8,3 +8,3 @@ "name": "@italentjs/italent-header", | ||
"configUser": "ux", | ||
"version": "1.0.60", | ||
"version": "1.0.61", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "build-prod": "rm -rf index.css && rm -rf index.js && grunt build", |
@@ -10,3 +10,3 @@ #iTalent-header通用头部组件 | ||
(I)企业LOGO展示 | ||
(II)用户自定义操作按钮 | ||
@@ -20,3 +20,3 @@ 1.搜索:Search | ||
7.升级公告:Upgrade | ||
在配置图标按钮数据时,type字段的值,#必须是以上列表中得一个。 | ||
@@ -32,5 +32,5 @@ icon-font对应的className: | ||
”通知“下拉菜单可能的取值: | ||
@我:header-icon-at-me | ||
@我:header-icon-at-me | ||
@部门动态:header-icon-at-department | ||
@@ -40,3 +40,3 @@ @公告:header-icon-at-notice | ||
@团队:header-icon-at-team | ||
新回复:header-icon-reply | ||
新回复:header-icon-reply | ||
@工作通知:header-icon-work-notice | ||
@@ -50,3 +50,3 @@ 团队通知:header-icon-team-notice | ||
###依赖数据 | ||
this.headerJson = { | ||
@@ -135,3 +135,3 @@ companyInfo:{ | ||
,length:12 | ||
,className:"header-iconcus-huifu" | ||
,className:"header-iconcus-huifu" | ||
,href:"#" | ||
@@ -143,6 +143,6 @@ } | ||
,length:12 | ||
,className:"header-iconcus-shoushang" | ||
,className:"header-iconcus-shoushang" | ||
,href:"#" | ||
} | ||
] | ||
] | ||
} | ||
@@ -196,4 +196,4 @@ } | ||
} | ||
] | ||
] | ||
} | ||
@@ -218,2 +218,1 @@ } | ||
###版本信息: | ||
@@ -26,4 +26,4 @@ var Appstore = BaseView.extend({ | ||
messageRenew: function(newMsg) { | ||
this.model.set(newMsg) | ||
this.model.set("isShowNew", newMsg) | ||
}, | ||
}) |
@@ -17,7 +17,7 @@ var Message = BaseView.extend({ | ||
events['click ' + this.ui.iconBtn] = 'listShow'; | ||
events['click ' + this.ui.messageItem] = 'listClose'; | ||
events['click ' + this.ui.messageItem] = 'close'; | ||
events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
events['click ' + this.ui.viewAll] = 'listClose'; | ||
events['click ' + this.ui.viewAll] = 'close'; | ||
events['click ' + this.ui.popMask] = 'listClose'; | ||
@@ -30,2 +30,10 @@ return events; | ||
} | ||
,close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
}); |
@@ -48,3 +48,7 @@ var Search = BaseView.extend({ | ||
this.ui.valueInput.blur() | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose() | ||
@@ -51,0 +55,0 @@ return false |
@@ -11,3 +11,3 @@ var Todos = BaseView.extend({ | ||
messageItem: ".message-item", | ||
viewAll: ".view-all a", | ||
viewAll: '[data-name="view-all"]', | ||
headIgnoreAll: '[data-name="head-ignore-all"]', | ||
@@ -23,4 +23,4 @@ popMask: ".list-wrapper-mask" | ||
events["mouseenter " + this.ui.popList] = "autoHideCancle" | ||
events["click " + this.ui.messageItem] = "listClose" | ||
events["click " + this.ui.viewAll] = "listClose" | ||
events["click " + this.ui.messageItem] = "close" | ||
events["click " + this.ui.viewAll] = "close" | ||
events["click " + this.ui.headIgnoreAll] = "_headIgnoreAll" | ||
@@ -47,3 +47,12 @@ events['click ' + this.ui.popMask] = 'listClose'; | ||
this.trigger("ignoreAllTodo") | ||
this.listClose(); | ||
}, | ||
close: function() { | ||
// 我要吐槽记录来源要清空 | ||
console.log("吐槽-其他-todo") | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
this.listClose(); | ||
} | ||
}) |
@@ -1,2 +0,2 @@ | ||
var UserInfo = Talent.Layout.extend({ | ||
@@ -8,3 +8,3 @@ template: jst['header/user-info'] | ||
this.options = options; | ||
this.model = new Talent.Model(options); | ||
this.model = new Talent.Model(options); | ||
} | ||
@@ -16,3 +16,3 @@ ,ui: { | ||
,listItem:".list-ul-box .dp-list-item a" | ||
,listFront:".dp-list-front" | ||
@@ -47,13 +47,17 @@ ,listShadow:".dp-list-shadow" | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
},350); | ||
// 我要吐槽记录来源要清空 | ||
window.localStorage.setItem('italent_active_appId', 319); | ||
window.localStorage.setItem('italent_active_appName', '其他'); | ||
window.localStorage.setItem('italent_active_id', ''); | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
,isIE:function() { //ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) | ||
return true; | ||
else | ||
return false; | ||
} | ||
}); |
@@ -23,3 +23,3 @@ this["JST"] = this["JST"] || {}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a\n\tclass="common-link ' +((__t = (iconName)) == null ? '' : __t) +'"\n\thref="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'"\n\t';if(!reminds.remindCount&&target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message"\n\t\t>' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span\n\t>\n\t'; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n<div class="list-wrapper">\n\t<div class="content-visible">\n\t\t<div class="title">\n\t\t\t' +((__t = ( (reminds.myTodoText||"我的待办")+"(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t</div>\n\t\t<ul class="message-list">\n\t\t\t<div class="spinner">\n\t\t\t\t<div class="rect1"></div>\n\t\t\t\t<div class="rect2"></div>\n\t\t\t\t<div class="rect3"></div>\n\t\t\t\t<div class="rect4"></div>\n\t\t\t</div>\n\t\t\t<div class="text-loading">加载中...</div>\n\t\t</ul>\n\t\t<li class="view-all">\n\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" data-name="view-all" target="_blank"\n\t\t\t\t>' +((__t = ( reminds.viewAllText||"查看全部" )) == null ? '' : __t) +'</a\n\t\t\t>\n\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t<a\n\t\t\t\thref="javascript:void(0)"\n\t\t\t\tclass="view-ignore-all"\n\t\t\t\tdata-name="head-ignore-all"\n\t\t\t>\n\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t' +((__t = ( reminds.ignoreAllTip||"点击后除审批外的待办全部转移到已处理中")) == null ? '' : __t) +'\n\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t</div>\n\t\t\t\t<span>' +((__t = ( reminds.ignoreAllText||"忽略全部" )) == null ? '' : __t) +'</span>\n\t\t\t</a>\n\t\t\t';};__p += '\n\t\t</li>\n\t</div>\n</div>\n<div class="list-wrapper-mask"></div>\n'; } ;__p += '\n';}return __p}; | ||
@@ -26,0 +26,0 @@ this["JST"]["header/icon-view/upgrade"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" target="_blank" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t<!-- '; if(reminds.remindCount){ ;__p += ' -->\n\t\t\t<!-- TODO:new图标 -->\n\t\t\t<span class="new-icon">\n\n\t\t\t</span>\n\t\t\t<!-- '; } ;__p += ' -->\n\t\t\t<div class="btn-tips">\n\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t</div>\n</a>\n<div class="list-wrapper">\n</div>\n<div class="list-wrapper-mask"></div>\n\n<!-- <a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a> -->';}return __p}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
7
10953466
430
75929
210