@italentjs/italent-header
Advanced tools
Comparing version 1.0.27 to 1.0.29
@@ -9,31 +9,31 @@ /* | ||
var jst = (function() { | ||
this["JST"] = this["JST"] || {}; | ||
this["JST"]["header/company-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<div class="company-icon">\n\t<!-- <a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" src="' +((__t = (logo)) == null ? '' : __t) +'"></a> -->\n\t<a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" alt="logo"></a>\n\t<span class="company-name">' +((__t = ( name)) == null ? '' : __t) +'</span>\n</div>';}return __p}; | ||
this["JST"]["header/header"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += ' \n <div class="header-out-wrapper">\n <div class="header-left company-info-region clearfix"></div>\n <div class="header-right clearfix">\n <div class="lang-region"></div>\n <!--用户信息-->\n <div class="header-webim-region"></div>\n <div class="user-info-region"></div>\n <ul class=\'btns-group\'></ul>\n \n </div>\n </div>\n';}return __p}; | ||
this["JST"]["header/icon-view/home-page"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += 'target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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<div class="list-wrapper"></div>\n';}return __p}; | ||
this["JST"]["header/icon-view/lang"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class=\'lang-region-box\'>\n <span class="' +((__t = ( I18NUserLang )) == null ? '' : __t) +'"> </span>\n <div class="btn-tips">\n <div class="entry-trangle-top"></div>\n 语言\n </div>\n</a>\n<div class="dp-down-list ">\n\t\t<ul class="list-ul-box dp-list-front">\n '; Talent._.each(list,function(item,index){ ;__p += '\n <li class="dp-list-item"><a href="javascript:;"data-text="' +((__t = ( item )) == null ? '' : __t) +'" data-value="' +((__t = ( item.value )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n '; }) ;__p += '\n\t\t</ul>\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(list,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>\n\n';}return __p}; | ||
this["JST"]["header/icon-view/message"] = 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) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&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>\n\n'; if(reminds.remindList.length){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">\n\t\t\t\t' +((__t = ( "新通知(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t\t</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="_blank" class="message-item-a">\n\t\t\t\t\t\t\t<span class="icon-box ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">\n\t\t\t\t\t\t\t\t' +((__t = (item.content)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="num">\n\t\t\t\t\t\t\t\t' +((__t = (item.length)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="date">\n\t\t\t\t\t\t\t\t' +((__t = (item.date)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = (reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t</li>\n\t\t</div>\n\t</div>\n\t'; } ;}return __p}; | ||
this["JST"]["header/icon-view/search"] = 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) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message">' +((__t = ( reminds.remindCount )) == null ? '' : __t) +'</span> '; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +__e(searchTip) +'\n\t</div>\n</a>\n<div class="list-wrapper">\n\t<div class="form-input form-input-active">\n\t\t<form action="" data-name="search-form">\n\t\t\t<input placeholder="' +((__t = ( title)) == null ? '' : __t) +'" />\n\t\t</form>\n\t</div>\n\t<div class="comfirm-btn"></div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/settings"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" ';if(href){;__p += ' href="' +((__t = (href)) == null ? '' : __t) +'" ';};__p += ' ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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';if(reminds.remindList && reminds.remindList.length){;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" ';if(item.target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += ' class="message-item-a">\n\t\t\t\t\t\t\t<span class="settings-icon ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">' +((__t = (item.content)) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t</div>\n\t</div>\n';};__p += '\n\n';}return __p}; | ||
this["JST"]["header/icon-view/skin"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\t<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n\t \t'; } ;__p += '\n\t \t<div class="btn-tips">\n\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t</div>\n\t</a>\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="color-title">拖动滑块选择颜色</div>\n\t\t\t<input type="range" class="color-range">\n\t\t\t<div class="selector-btn clearfix">\n\t\t\t\t<div class="check-default check-back">\n\t\t\t\t\t<div class="check-box ">\n\t\t\t\t\t\t<span class="un-check"></span>\n\t\t\t\t\t\t<span class="in-check"></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<label class="text">恢复默认</label>\n\t\t\t\t</div>\n\n\t\t\t\t<span class="comfirm-btn-style comfirm-btn">确定</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/todos-item/todos-item"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t<li class="message-item">\n\t\t\t<a href="' +((__t = ( item.href )) == null ? '' : __t) +'" target="_blank" class="clearfix message-item-a">\n\t\t\t\t'; if(item.avatar.hasAvatar){ ;__p += '\n\t\t\t\t\t<div class="user-pic"><img src="' +((__t = ( item.avatar.medium)) == null ? '' : __t) +'"></div>\n\t\t\t\t'; }else{ ;__p += '\n\t\t\t\t\t<div class="user-pic" style="background-color: ' +((__t = ( item.avatar.color)) == null ? '' : __t) +'">' +((__t = ( item.userName.substr(0,1) || "Name")) == null ? '' : __t) +'</div>\n\t\t\t\t';};__p += '\n\t\t\t\t<div class="item-detail">\n\t\t\t\t\t<div class="detail-head clearfix">\n\t\t\t\t\t\t<span class="user-name">' +((__t = ( item.userName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="user-opr">' +((__t = ( item.teskName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="date">' +((__t = ( item.date )) == null ? '' : __t) +'</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="detail-content">' +((__t = ( item.taskContent )) == null ? '' : __t) +'</div>\n\t\t\t\t</div>\n\t\t\t</a>\n\t\t</li>\n\t'; }) ;__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 += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">' +((__t = ( "我的待办(" + reminds.remindCount + ")")) == null ? '' : __t) +'</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t<div class="spinner">\n\t\t\t\t\t<div class="rect1"></div>\n\t\t\t\t\t<div class="rect2"></div>\n\t\t\t\t\t<div class="rect3"></div>\n\t\t\t\t\t<div class="rect4"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="text-loading">加载中...</div>\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t\t<a href="javascript:void(0)" class="view-ignore-all" data-name="head-ignore-all">\n\t\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t\t点击后仅将招聘和工作计划的待办全部转移到已处理中\t\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span>忽略全部</span>\n\t\t\t\t</a>\n\t\t\t\t';};__p += '\n\t\t\t</li>\n\t\t</div>\n\t</div>\n'; } ;__p += '\n';}return __p}; | ||
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\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["JST"]["header/user-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t<div class="user-info">\n\t\t'; if(userInfo.avatar.hasAvatar){ ;__p += '\n\t\t\t<span class="user-photo"><img src="' +((__t = (userInfo.avatar.small)) == null ? '' : __t) +'"></span>\n\t\t'; }else{ ;__p += '\n\t\t\t<span class="name-pic" style="background-color: ' +((__t = (userInfo.avatar.color)) == null ? '' : __t) +'">' +((__t = ( userInfo.name.substr(0,1) || "Name")) == null ? '' : __t) +'</span>\n\t\t';};__p += '\n\t\t\t<span class="user-name">' +((__t = (userInfo.name)) == null ? '' : __t) +'</span>\n\t</div>\n\n\t<div class="dp-down-list">\n\t\t<ul class="list-ul-box dp-list-front">\n\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t<li class="dp-list-item"><a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="' +((__t = ( item.target )) == null ? '' : __t) +'" data-name="' +((__t = ( item.type )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t'; }) ;__p += '\n\t\t\t<!-- <li class="item-high-light"></li> -->\n\t\t</ul>\n\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>';}return __p}; | ||
this["JST"]["header/webim"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<span class="header-icon-titaim ico-webim disabled"></span>\n<b class="u-unread new-message hide">0<b>\n';}return __p}; | ||
return this["JST"] | ||
})() | ||
this["JST"] = this["JST"] || {}; | ||
this["JST"]["header/company-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<div class="company-icon">\n\t<!-- <a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" src="' +((__t = (logo)) == null ? '' : __t) +'"></a> -->\n\t<a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" alt="logo"></a>\n\t<span class="company-name">' +((__t = ( name)) == null ? '' : __t) +'</span>\n</div>';}return __p}; | ||
this["JST"]["header/header"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += ' \n <div class="header-out-wrapper">\n <div class="header-left company-info-region clearfix"></div>\n <div class="header-right clearfix">\n <div class="lang-region"></div>\n <!--用户信息-->\n <div class="header-webim-region"></div>\n <div class="user-info-region"></div>\n <ul class=\'btns-group\'></ul>\n \n </div>\n </div>\n';}return __p}; | ||
this["JST"]["header/icon-view/home-page"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += 'target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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<div class="list-wrapper"></div>\n';}return __p}; | ||
this["JST"]["header/icon-view/lang"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class=\'lang-region-box\'>\n <span class="' +((__t = ( I18NUserLang )) == null ? '' : __t) +'"> </span>\n <div class="btn-tips">\n <div class="entry-trangle-top"></div>\n 语言\n </div>\n</a>\n<div class="dp-down-list ">\n\t\t<ul class="list-ul-box dp-list-front">\n '; Talent._.each(list,function(item,index){ ;__p += '\n <li class="dp-list-item"><a href="javascript:;"data-text="' +((__t = ( item )) == null ? '' : __t) +'" data-value="' +((__t = ( item.value )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n '; }) ;__p += '\n\t\t</ul>\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(list,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>\n\n';}return __p}; | ||
this["JST"]["header/icon-view/message"] = 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) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&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>\n\n'; if(reminds.remindList.length){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">\n\t\t\t\t' +((__t = ( "新通知(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t\t</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="_blank" class="message-item-a">\n\t\t\t\t\t\t\t<span class="icon-box ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">\n\t\t\t\t\t\t\t\t' +((__t = (item.content)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="num">\n\t\t\t\t\t\t\t\t' +((__t = (item.length)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="date">\n\t\t\t\t\t\t\t\t' +((__t = (item.date)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = (reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t</li>\n\t\t</div>\n\t</div>\n\t'; } ;}return __p}; | ||
this["JST"]["header/icon-view/search"] = 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) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message">' +((__t = ( reminds.remindCount )) == null ? '' : __t) +'</span> '; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +__e(searchTip) +'\n\t</div>\n</a>\n<div class="list-wrapper">\n\t<div class="form-input form-input-active">\n\t\t<form action="" data-name="search-form">\n\t\t\t<input placeholder="' +((__t = ( title)) == null ? '' : __t) +'" />\n\t\t</form>\n\t</div>\n\t<div class="comfirm-btn"></div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/settings"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" ';if(href){;__p += ' href="' +((__t = (href)) == null ? '' : __t) +'" ';};__p += ' ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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';if(reminds.remindList && reminds.remindList.length){;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" ';if(item.target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += ' class="message-item-a">\n\t\t\t\t\t\t\t<span class="settings-icon ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">' +((__t = (item.content)) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t</div>\n\t</div>\n';};__p += '\n\n';}return __p}; | ||
this["JST"]["header/icon-view/skin"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\t<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n\t \t'; } ;__p += '\n\t \t<div class="btn-tips">\n\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t</div>\n\t</a>\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="color-title">拖动滑块选择颜色</div>\n\t\t\t<input type="range" class="color-range">\n\t\t\t<div class="selector-btn clearfix">\n\t\t\t\t<div class="check-default check-back">\n\t\t\t\t\t<div class="check-box ">\n\t\t\t\t\t\t<span class="un-check"></span>\n\t\t\t\t\t\t<span class="in-check"></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<label class="text">恢复默认</label>\n\t\t\t\t</div>\n\n\t\t\t\t<span class="comfirm-btn-style comfirm-btn">确定</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/todos-item/todos-item"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t<li class="message-item">\n\t\t\t<a href="' +((__t = ( item.href )) == null ? '' : __t) +'" target="_blank" class="clearfix message-item-a">\n\t\t\t\t'; if(item.avatar.hasAvatar){ ;__p += '\n\t\t\t\t\t<div class="user-pic"><img src="' +((__t = ( item.avatar.medium)) == null ? '' : __t) +'"></div>\n\t\t\t\t'; }else{ ;__p += '\n\t\t\t\t\t<div class="user-pic" style="background-color: ' +((__t = ( item.avatar.color)) == null ? '' : __t) +'">' +((__t = ( item.userName.substr(0,1) || "Name")) == null ? '' : __t) +'</div>\n\t\t\t\t';};__p += '\n\t\t\t\t<div class="item-detail">\n\t\t\t\t\t<div class="detail-head clearfix">\n\t\t\t\t\t\t<span class="user-name">' +((__t = ( item.userName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="user-opr">' +((__t = ( item.teskName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="date">' +((__t = ( item.date )) == null ? '' : __t) +'</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="detail-content">' +((__t = ( item.taskContent )) == null ? '' : __t) +'</div>\n\t\t\t\t</div>\n\t\t\t</a>\n\t\t</li>\n\t'; }) ;__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 += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\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\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">' +((__t = ( "我的待办(" + reminds.remindCount + ")")) == null ? '' : __t) +'</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t<div class="spinner">\n\t\t\t\t\t<div class="rect1"></div>\n\t\t\t\t\t<div class="rect2"></div>\n\t\t\t\t\t<div class="rect3"></div>\n\t\t\t\t\t<div class="rect4"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="text-loading">加载中...</div>\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t\t<a href="javascript:void(0)" class="view-ignore-all" data-name="head-ignore-all">\n\t\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t\t点击后仅将招聘和工作计划的待办全部转移到已处理中\t\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span>忽略全部</span>\n\t\t\t\t</a>\n\t\t\t\t';};__p += '\n\t\t\t</li>\n\t\t</div>\n\t</div>\n'; } ;__p += '\n';}return __p}; | ||
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\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["JST"]["header/user-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t<div class="user-info">\n\t\t'; if(userInfo.avatar.hasAvatar){ ;__p += '\n\t\t\t<span class="user-photo"><img src="' +((__t = (userInfo.avatar.small)) == null ? '' : __t) +'"></span>\n\t\t'; }else{ ;__p += '\n\t\t\t<span class="name-pic" style="background-color: ' +((__t = (userInfo.avatar.color)) == null ? '' : __t) +'">' +((__t = ( userInfo.name.substr(0,1) || "Name")) == null ? '' : __t) +'</span>\n\t\t';};__p += '\n\t\t\t<span class="user-name">' +((__t = (userInfo.name)) == null ? '' : __t) +'</span>\n\t</div>\n\n\t<div class="dp-down-list">\n\t\t<ul class="list-ul-box dp-list-front">\n\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t<li class="dp-list-item"><a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="' +((__t = ( item.target )) == null ? '' : __t) +'" data-name="' +((__t = ( item.type )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t'; }) ;__p += '\n\t\t\t<!-- <li class="item-high-light"></li> -->\n\t\t</ul>\n\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>';}return __p}; | ||
this["JST"]["header/webim"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<span class="header-icon-titaim ico-webim disabled"></span>\n<b class="u-unread new-message hide">0<b>\n';}return __p}; | ||
return this["JST"] | ||
})(); | ||
@@ -245,40 +245,40 @@ /** 功能按钮单独的view **/ | ||
var Skin = BaseView.extend({ | ||
template: jst["header/icon-view/skin"], | ||
className: "skin-icon-box", | ||
ui: { | ||
iconBtn: ".common-link", | ||
popList: ".list-wrapper", | ||
comfirmBtn: ".comfirm-btn", | ||
inputRange: ".color-range", | ||
checkbox: ".check-default" | ||
}, | ||
events: function() { | ||
var events = {} | ||
events["click " + this.ui.iconBtn] = "listShow" | ||
events["mousedown " + this.ui.popList] = "popListClick" | ||
events["mouseleave " + this.ui.popList] = "autoHideRegister" | ||
events["mouseenter " + this.ui.popList] = "autoHideCancle" | ||
events["click " + this.ui.comfirmBtn] = "getRangeVal" | ||
events["click " + this.ui.checkbox] = "setDefalutColor" | ||
return events | ||
}, | ||
getRangeVal: function() { | ||
template: jst['header/icon-view/skin'] | ||
,className : 'skin-icon-box' | ||
,ui: { | ||
iconBtn:".common-link" | ||
,popList:".list-wrapper" | ||
,comfirmBtn:".comfirm-btn" | ||
,inputRange:".color-range" | ||
,checkbox:".check-default" | ||
} | ||
,events: function () { | ||
var events = {}; | ||
events['click ' + this.ui.iconBtn] = 'listShow'; | ||
events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
events['click ' + this.ui.comfirmBtn] = 'getRangeVal'; | ||
events['click ' + this.ui.checkbox] = 'setDefalutColor'; | ||
return events; | ||
} | ||
,getRangeVal:function(){ | ||
var triggerData = { | ||
target: this.options.type, | ||
id: this.options.id, | ||
exportData: { | ||
rangeValue: this.ui.inputRange.val(), | ||
isDefaultColor: this.ui.checkbox.hasClass("check-go") | ||
target:this.options.type | ||
,id:this.options.id | ||
,exportData:{ | ||
rangeValue:this.ui.inputRange.val() | ||
,isDefaultColor : this.ui.checkbox.hasClass("check-go") | ||
} | ||
} | ||
this.trigger("iconOprEvents", triggerData) | ||
this.listClose() | ||
}, | ||
setDefalutColor: function() { | ||
this.ui.checkbox.toggleClass("check-back").toggleClass("check-go") | ||
}, | ||
messageRenew: function(newMsg) { | ||
this.model.clear({ silent: true }).set(newMsg) | ||
this.trigger("iconOprEvents",triggerData); | ||
this.listClose(); | ||
} | ||
}) | ||
,setDefalutColor:function(){ | ||
this.ui.checkbox.toggleClass("check-back").toggleClass("check-go"); | ||
} | ||
,messageRenew:function(newMsg){ | ||
this.model.clear({silent:true}).set(newMsg); | ||
} | ||
}); | ||
@@ -355,98 +355,80 @@ | ||
var events = {} | ||
// events['click ' + this.ui.iconBtn] = 'selfListShow'; | ||
events["click " + this.ui.showList] = "showList" | ||
events["click " + this.ui.listItem] = "listItemScale" | ||
// events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
// events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
// events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
// events['submit ' + this.ui.searchForm] = 'formSubmit'; | ||
return events | ||
}, | ||
onShow() { | ||
var self = this | ||
Talent.$.ajax({ | ||
url: self.options.i18nInfo.getApiUrl | ||
}).done(function(ret) { | ||
if (ret.Code === 1) { | ||
if (ret.Data.isOpenInternational) { | ||
self.model.set({ | ||
list: formatData(ret.Data.tenantLanguages) | ||
}) | ||
} | ||
} | ||
}) | ||
}, | ||
formatData(list) { | ||
/** | ||
* | ||
* | ||
[{ | ||
text: '中文(简体)', | ||
value: "zh_CN", | ||
}, { | ||
text: '中文(繁体)', | ||
value: 'zh_TW' | ||
}, { | ||
text: '英语(English)', | ||
value: 'en_US' | ||
} | ||
* | ||
*/ | ||
var mapping = { | ||
zh_CN: "中文(简体)", | ||
zh_TW: "中文(繁体)", | ||
en_US: "英语(English)" | ||
} | ||
var data = [] | ||
for (var i = 0; i < list.length; i++) { | ||
var item = list[i] | ||
data.push({ | ||
text: mapping[item], | ||
value: item | ||
}) | ||
} | ||
return data | ||
}, | ||
showList: function(e) { | ||
var self = this | ||
this.ui.listWrap.addClass("dp-down-active") | ||
clearTimeout(self.timer) | ||
Talent.$(document).off("mouseup.alertLang") | ||
Talent.$(document).on("mouseup.alertLang", function(e) { | ||
self.ui.listWrap.removeClass("dp-down-active") | ||
Talent.$(document).off("mouseup.alertLang") | ||
}) | ||
self.timer = setTimeout(function() { | ||
self.ui.listWrap.removeClass("dp-down-active") | ||
}, 6000) | ||
}, | ||
listItemScale: function(e) { | ||
var self = this | ||
var itemIndex = Talent.$(e.target).attr("index") | ||
var target = this.model.toJSON().list[itemIndex] | ||
this.trigger("iconClickEvent", this.model.toJSON().list[itemIndex]) | ||
this.ui.listWrap.removeClass("dp-down-active") | ||
!this.isIE() && this.ui.listShadow.show() | ||
this.model.set({ | ||
I18NUserLang: target.value | ||
}) | ||
this.ui.listShadow | ||
.find(".item-" + itemIndex) | ||
.addClass("li-scale") | ||
.siblings() | ||
.removeClass("li-scale") | ||
setTimeout(function() { | ||
self.ui.listShadow.hide() | ||
self.render() | ||
}, 350) | ||
}, | ||
isIE: function() { | ||
//ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) return true | ||
else return false | ||
} | ||
,ui: { | ||
iconBtn:".lang-region" | ||
,showList:".lang-region-box" | ||
,popList:".dp-down-list" | ||
,listWrap:".dp-down-list" | ||
,listItem:".dp-list-item a" | ||
,listFront:".dp-list-front" | ||
,listShadow:".dp-list-shadow" | ||
} | ||
,initialize:function(options){ | ||
this.options = options; | ||
this.model.set(options.i18nInfo) | ||
this.model.set({ | ||
show: true, | ||
list: [], | ||
}) | ||
} | ||
,events: function () { | ||
var events = {}; | ||
// events['click ' + this.ui.iconBtn] = 'selfListShow'; | ||
events['click ' + this.ui.showList] = 'showList'; | ||
events['click ' + this.ui.listItem] = 'listItemScale'; | ||
return events; | ||
} | ||
,onShow:function(){ | ||
var self = this; | ||
Talent.$.ajax({ | ||
url: self.options.i18nInfo.getApiUrl | ||
}) | ||
.done(function(ret){ | ||
if (ret.Code === 1) { | ||
if (ret.Data.isOpenInternational) { | ||
self.model.set({ | ||
list: ret.Data.tenantLanguageModels || [] | ||
}); | ||
self.render(); | ||
} | ||
} | ||
}); | ||
} | ||
,showList:function(e){ | ||
var self = this; | ||
this.ui.listWrap.addClass("dp-down-active"); | ||
clearTimeout(self.timer); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
Talent.$(document).on('mouseup.alertLang', function(e) { | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
}); | ||
self.timer = setTimeout(function(){ | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
},6000) | ||
} | ||
,listItemScale:function(e){ | ||
var self = this; | ||
var itemIndex = Talent.$(e.target).attr("index"); | ||
var target = this.model.toJSON().list[itemIndex]; | ||
this.trigger('iconClickEvent', this.model.toJSON().list[itemIndex]) | ||
this.ui.listWrap.removeClass("dp-down-active"); | ||
!this.isIE()&&this.ui.listShadow.show(); | ||
this.model.set({ | ||
I18NUserLang: target.value, | ||
}); | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
self.render(); | ||
},350); | ||
} | ||
}) | ||
@@ -640,15 +622,18 @@ | ||
}, | ||
langShow() { | ||
langShow: function() { | ||
var self = this; | ||
const langView = new Lang({ | ||
i18nInfo: this.options.i18nInfo, | ||
}) | ||
this.langRegion.show(langView); | ||
this.listenTo(langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
if (this.options.i18nInfo) { | ||
var langView = new Lang({ | ||
i18nInfo: this.options.i18nInfo, | ||
}) | ||
this.langRegion.show(langView); | ||
this.listenTo(langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
}); | ||
}); | ||
}); | ||
} | ||
}, | ||
@@ -717,5 +702,3 @@ //render userInfo | ||
webIMShow: function() { | ||
//var version = this._checkIEVersion(); | ||
//if(version == 8 || version == 9) return; | ||
this.webIMView = new WebIMView() | ||
@@ -722,0 +705,0 @@ this.webIMRegion.show(this.webIMView) |
@@ -8,6 +8,8 @@ { | ||
"configUser": "ux", | ||
"version": "1.0.27", | ||
"version": "1.0.29", | ||
"scripts": { | ||
"build-prod": "rm -rf index.css && rm -rf index.js && grunt build", | ||
"auto-publish": "npm run build-prod && git add . && git commit -m 'fix: 修复一些已知问题' && npm version patch && npm publish" | ||
"auto-publish": "npm run build-prod && git add . && git commit -m 'fix: 修复一些已知问题' && npm version patch && npm publish", | ||
"prepublish": "grunt build", | ||
"start": "grunt dev" | ||
}, | ||
@@ -14,0 +16,0 @@ "dependencies": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10628218
408
73585
29