Commit aeeb6978 by yangfangfang

公告

parent cc7b2756
......@@ -51,8 +51,8 @@ module.exports = function(grunt) {
connect: {
proxies: [{
context: ['/api'],
// host: 'localhost',
host: '192.168.2.37',
host: 'localhost',
// host: '192.168.2.37',
port: 8091,
https: false,
xforward: true,
......
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.3226349928881973">
<script src="scripts/change.js?r=0.7112433344591409"></script>
<script src="scripts/regcom1.js?r=0.8485788230318576"></script>
<script src="scripts/regui.js?r=0.6336440013255924"></script>
<link rel="stylesheet" href="styles/login.css?r=0.41036946419626474">
<script src="scripts/change.js?r=0.5875886247958988"></script>
<script src="scripts/regcom1.js?r=0.49364342424087226"></script>
<script src="scripts/regui.js?r=0.5866878852248192"></script>
</head>
<body ng-app="app" ng-controller="acvitationCtrl">
......
......@@ -7,8 +7,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script src="scripts/change.js?r=0.8273717106785625"></script>
<script src="scripts/demo.js?r=0.6742043008562177"></script>
<script src="scripts/change.js?r=0.16010478581301868"></script>
<script src="scripts/demo.js?r=0.6772886510007083"></script>
<script type="text/javascript">
$.get("/api/demo",function(data) {
......
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.004987573949620128">
<script src="scripts/change.js?r=0.7360319485887885"></script>
<script src="scripts/regcom2.js?r=0.9184650341048837"></script>
<script src="scripts/failure.js?r=0.9326669548172504"></script>
<link rel="stylesheet" href="styles/login.css?r=0.9322576317936182">
<script src="scripts/change.js?r=0.41538010514341295"></script>
<script src="scripts/regcom2.js?r=0.2466718212235719"></script>
<script src="scripts/failure.js?r=0.16402682894840837"></script>
</head>
<body ng-app="app" ng-controller="failureCtrl">
......
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.8714517550542951">
<script src="scripts/change.js?r=0.722045328002423"></script>
<script src="scripts/regcom3.js?r=0.9209529019426554"></script>
<script src="scripts/forget.js?r=0.02848458243533969"></script>
<link rel="stylesheet" href="styles/login.css?r=0.24020749446935952">
<script src="scripts/change.js?r=0.9423119300045073"></script>
<script src="scripts/regcom3.js?r=0.4566480740904808"></script>
<script src="scripts/forget.js?r=0.7468544060830027"></script>
</head>
<body ng-app="app" ng-controller="forgetCtrl">
......
......@@ -7,11 +7,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/home.css?r=0.12386019225232303">
<link rel="stylesheet" href="styles/home.css?r=0.9637537989765406">
<script src="scripts/change.js?r=0.012064240872859955"></script>
<script src="scripts/home.js?r=0.8174812090583146"></script>
<script src="scripts/homectrl.js?r=0.19571213447488844"></script>
<script src="scripts/change.js?r=0.34539868822321296"></script>
<script src="scripts/home.js?r=0.26635574689134955"></script>
<script src="scripts/homectrl.js?r=0.15901376772671938"></script>
<script>
var _hmt = _hmt || [];
......
......@@ -8,12 +8,12 @@
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/index.css?r=0.37707017827779055">
<script src="scripts/change.js?r=0.820802059955895"></script>
<script src="scripts/com.js?r=0.2901791038457304"></script>
<script src="scripts/app.js?r=0.8841697168536484"></script>
<link rel="stylesheet" href="styles/index.css?r=0.48852341808378696">
<script src="scripts/change.js?r=0.20058486447669566"></script>
<script src="scripts/com.js?r=0.8575117164291441"></script>
<script src="scripts/app.js?r=0.5790868964977562"></script>
<script src="scripts/ui.js?r=0.6637934029567987"></script>
<script src="scripts/ui.js?r=0.03460360551252961"></script>
</head>
<body ng-app="app" ng-controller="indexCtrl" ng-class="{'noreport':backReport}">
......
......@@ -7,11 +7,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.09618336986750364">
<link rel="stylesheet" href="styles/login.css?r=0.11575359338894486">
<script src="scripts/change.js?r=0.05420921300537884"></script>
<script src="scripts/lgcom4.js?r=0.7121068546548486"></script>
<script src="scripts/lgui.js?r=0.24842062732204795"></script>
<script src="scripts/change.js?r=0.6097557554021478"></script>
<script src="scripts/lgcom4.js?r=0.33344802912324667"></script>
<script src="scripts/lgui.js?r=0.2212034841068089"></script>
<script>
var _hmt = _hmt || [];
......
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.31149819074198604">
<script src="scripts/change.js?r=0.8929546170402318"></script>
<script src="scripts/regcom5.js?r=0.5510864944662899"></script>
<script src="scripts/olduser.js?r=0.7056754943914711"></script>
<link rel="stylesheet" href="styles/login.css?r=0.7841710445936769">
<script src="scripts/change.js?r=0.4421499124728143"></script>
<script src="scripts/regcom5.js?r=0.2624261521268636"></script>
<script src="scripts/olduser.js?r=0.6676868912763894"></script>
</head>
<body ng-app="app" ng-controller="olduserCtrl">
......
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.5230596014298499">
<script src="scripts/change.js?r=0.7893789829686284"></script>
<script src="scripts/regcom7.js?r=0.5114126577973366"></script>
<script src="scripts/resetpwd.js?r=0.8044941681437194"></script>
<link rel="stylesheet" href="styles/login.css?r=0.8538161558099091">
<script src="scripts/change.js?r=0.33458543848246336"></script>
<script src="scripts/regcom7.js?r=0.6433788833674043"></script>
<script src="scripts/resetpwd.js?r=0.8525168120395392"></script>
</head>
<body ng-app="app" ng-controller="resetpwdCtrl">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -338,3 +338,5 @@ show:!0,x:5,y:12,textStyle:{align:"left",color:"#000",fontFamily:"Arial",fontSiz
;
/*! jquery.cookie v1.4.1 | MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
;
(function(){String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var t={chrsz:8,hexcase:0,binl2hex:function(t){var i=this.hexcase?"0123456789ABCDEF":"0123456789abcdef";var e="";for(var s=0;s<t.length*4;s++){e+=i.charAt(t[s>>2]>>s%4*8+4&15)+i.charAt(t[s>>2]>>s%4*8&15)}return e},str2binl:function(t){var i=Array();var e=(1<<this.chrsz)-1;for(var s=0;s<t.length*this.chrsz;s+=this.chrsz)i[s>>5]|=(t.charCodeAt(s/this.chrsz)&e)<<s%32;return i},md5_cmn:function(t,i,e,s,n,r){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(i,t),this.safe_add(s,r)),n),e)},md5_ff:function(t,i,e,s,n,r,h){return this.md5_cmn(i&e|~i&s,t,i,n,r,h)},md5_gg:function(t,i,e,s,n,r,h){return this.md5_cmn(i&s|e&~s,t,i,n,r,h)},md5_hh:function(t,i,e,s,n,r,h){return this.md5_cmn(i^e^s,t,i,n,r,h)},md5_ii:function(t,i,e,s,n,r,h){return this.md5_cmn(e^(i|~s),t,i,n,r,h)},safe_add:function(t,i){var e=(t&65535)+(i&65535);var s=(t>>16)+(i>>16)+(e>>16);return s<<16|e&65535},bit_rol:function(t,i){return t<<i|t>>>32-i},core_md5:function(t,i){t[i>>5]|=128<<i%32;t[(i+64>>>9<<4)+14]=i;var e=1732584193;var s=-271733879;var n=-1732584194;var r=271733878;for(var h=0;h<t.length;h+=16){var a=e;var d=s;var m=n;var o=r;e=this.md5_ff(e,s,n,r,t[h+0],7,-680876936);r=this.md5_ff(r,e,s,n,t[h+1],12,-389564586);n=this.md5_ff(n,r,e,s,t[h+2],17,606105819);s=this.md5_ff(s,n,r,e,t[h+3],22,-1044525330);e=this.md5_ff(e,s,n,r,t[h+4],7,-176418897);r=this.md5_ff(r,e,s,n,t[h+5],12,1200080426);n=this.md5_ff(n,r,e,s,t[h+6],17,-1473231341);s=this.md5_ff(s,n,r,e,t[h+7],22,-45705983);e=this.md5_ff(e,s,n,r,t[h+8],7,1770035416);r=this.md5_ff(r,e,s,n,t[h+9],12,-1958414417);n=this.md5_ff(n,r,e,s,t[h+10],17,-42063);s=this.md5_ff(s,n,r,e,t[h+11],22,-1990404162);e=this.md5_ff(e,s,n,r,t[h+12],7,1804603682);r=this.md5_ff(r,e,s,n,t[h+13],12,-40341101);n=this.md5_ff(n,r,e,s,t[h+14],17,-1502002290);s=this.md5_ff(s,n,r,e,t[h+15],22,1236535329);e=this.md5_gg(e,s,n,r,t[h+1],5,-165796510);r=this.md5_gg(r,e,s,n,t[h+6],9,-1069501632);n=this.md5_gg(n,r,e,s,t[h+11],14,643717713);s=this.md5_gg(s,n,r,e,t[h+0],20,-373897302);e=this.md5_gg(e,s,n,r,t[h+5],5,-701558691);r=this.md5_gg(r,e,s,n,t[h+10],9,38016083);n=this.md5_gg(n,r,e,s,t[h+15],14,-660478335);s=this.md5_gg(s,n,r,e,t[h+4],20,-405537848);e=this.md5_gg(e,s,n,r,t[h+9],5,568446438);r=this.md5_gg(r,e,s,n,t[h+14],9,-1019803690);n=this.md5_gg(n,r,e,s,t[h+3],14,-187363961);s=this.md5_gg(s,n,r,e,t[h+8],20,1163531501);e=this.md5_gg(e,s,n,r,t[h+13],5,-1444681467);r=this.md5_gg(r,e,s,n,t[h+2],9,-51403784);n=this.md5_gg(n,r,e,s,t[h+7],14,1735328473);s=this.md5_gg(s,n,r,e,t[h+12],20,-1926607734);e=this.md5_hh(e,s,n,r,t[h+5],4,-378558);r=this.md5_hh(r,e,s,n,t[h+8],11,-2022574463);n=this.md5_hh(n,r,e,s,t[h+11],16,1839030562);s=this.md5_hh(s,n,r,e,t[h+14],23,-35309556);e=this.md5_hh(e,s,n,r,t[h+1],4,-1530992060);r=this.md5_hh(r,e,s,n,t[h+4],11,1272893353);n=this.md5_hh(n,r,e,s,t[h+7],16,-155497632);s=this.md5_hh(s,n,r,e,t[h+10],23,-1094730640);e=this.md5_hh(e,s,n,r,t[h+13],4,681279174);r=this.md5_hh(r,e,s,n,t[h+0],11,-358537222);n=this.md5_hh(n,r,e,s,t[h+3],16,-722521979);s=this.md5_hh(s,n,r,e,t[h+6],23,76029189);e=this.md5_hh(e,s,n,r,t[h+9],4,-640364487);r=this.md5_hh(r,e,s,n,t[h+12],11,-421815835);n=this.md5_hh(n,r,e,s,t[h+15],16,530742520);s=this.md5_hh(s,n,r,e,t[h+2],23,-995338651);e=this.md5_ii(e,s,n,r,t[h+0],6,-198630844);r=this.md5_ii(r,e,s,n,t[h+7],10,1126891415);n=this.md5_ii(n,r,e,s,t[h+14],15,-1416354905);s=this.md5_ii(s,n,r,e,t[h+5],21,-57434055);e=this.md5_ii(e,s,n,r,t[h+12],6,1700485571);r=this.md5_ii(r,e,s,n,t[h+3],10,-1894986606);n=this.md5_ii(n,r,e,s,t[h+10],15,-1051523);s=this.md5_ii(s,n,r,e,t[h+1],21,-2054922799);e=this.md5_ii(e,s,n,r,t[h+8],6,1873313359);r=this.md5_ii(r,e,s,n,t[h+15],10,-30611744);n=this.md5_ii(n,r,e,s,t[h+6],15,-1560198380);s=this.md5_ii(s,n,r,e,t[h+13],21,1309151649);e=this.md5_ii(e,s,n,r,t[h+4],6,-145523070);r=this.md5_ii(r,e,s,n,t[h+11],10,-1120210379);n=this.md5_ii(n,r,e,s,t[h+2],15,718787259);s=this.md5_ii(s,n,r,e,t[h+9],21,-343485551);e=this.safe_add(e,a);s=this.safe_add(s,d);n=this.safe_add(n,m);r=this.safe_add(r,o)}return Array(e,s,n,r)},getMD5Str:function(t){return this.binl2hex(this.core_md5(this.str2binl(t),t.length*this.chrsz))}};function i(){this._getInstance=function(){var t;if(window.ActiveXObject){var i=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var e=0;e<i.length;e++){try{t=new ActiveXObject(i[e]);return t}catch(t){}}}else if(window.XMLHttpRequest){t=new XMLHttpRequest;return t}else{return null}};this._ins=this._getInstance();this.sendURL=function(t,i,e){var s=this._ins;s.open("post",t,true);s.onreadystatechange=function(){if(s.readyState==4&&(s.status==200||s.status==304)){if(typeof e=="function"){e(s.response)}}};s.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");s.send(JSON.stringify(i))};this.quit=function(){this._ins.abort()}}var e={};var s={locationurl:"",preurl:"https://log.reyun.com/receive/tkio/",getSessionId:function(){var i=s.getItem("ryh5_sessionid");if(i&&i!=""){return i}var e=document.cookie,n=e.split(";"),r="";for(var h=0;h<n.length;h++){var a=n[h],d=a.split("=");if(d[0].trim()==="JSESSIONID"){r=d[1];break}}if(r==""){r=t.getMD5Str(navigator.userAgent+String((new Date).getTime()+Math.random()));s.setItem("ryh5_sessionid",r)}else{r=t.getMD5Str(r+String((new Date).getTime()+Math.random()))}return r},getItem:function(t){try{localStorage.setItem("rmdkk",111);localStorage.removeItem("rmdkk");var i=localStorage.getItem(t);return i==null?"":i}catch(s){var i=e[t];return i==undefined?"":i}},setItem:function(t,i){try{localStorage.setItem(t,i)}catch(s){e[t]=i}},getValue:function(i){var e="";switch(i){case"who":e=s.getItem("ryh5_usid");if(e==""){e=this.getSessionId()}break;case"deviceid":e=s.getItem("ryh5_usid");if(e==""){e=this.getSessionId()}else{e=t.getMD5Str(e)}break;default:e=this.getItem(i);break}return e},getCommonParams:function(t){var i={appid:this.getItem("ryh5_appid"),who:this.getValue("who"),context:{_deviceid:this.getValue("deviceid"),_cid:this.getItem("ryh5_cid"),_campaignid:this.getItem("ryh5_campid"),_apptype:"wap",_ua:navigator.userAgent}};if(t&&typeof t==="object"){for(var e in t){i.context[e]=t[e]}}return i},send:function(t,e,s){var n=this.preurl+t;var r=new i;r.sendURL(n,e,s)}};var n=new function(){this.version="v1.1.0";var t=function(){setTimeout(function(){var t=document.location.href;if(s.locationurl==t){return false}var i=s.getCommonParams();s.locationurl=i.context._url=t;i.what="pageview";s.send("event",i)},200)};this.init=function(i){s.setItem("ryh5_appid",i);var e=window.location.href,n=e.substring(e.indexOf("?")+1),r=n.split("&");var h=s.getItem("ryh5_cid"),a=s.getItem("ryh5_campid"),d=s.getItem("ryh5_sessionid");h=h==""?"-1":h;a=a==""?"_default_":a;d=d==""?s.getSessionId():d;for(var m=0;m<r.length;m++){var o=r[m].split("=");if(o[0]=="cid"){h=o[1]}if(o[0]=="campaignid"){a=o[1]}}if(!/^-?\d+$/.test(h)){h=-1}s.setItem("ryh5_cid",h);s.setItem("ryh5_campid",a);s.setItem("ryh5_sessionid",d);t();};this.register=function(t,i){var e=s.getCommonParams(i);e.who=t;s.send("register",e)};this.loggedin=function(i,e){var n=s.getCommonParams(e);n.who=i;s.setItem("ryh5_usid",i);s.send("loggedin",n);t()};this.download=function(t){var i=s.getCommonParams(t);i.what="download";s.send("event",i)};this.order=function(t,i){var e=s.getCommonParams(i);e.what="order";e.context._transactionid=t;s.send("event",e)};this.payment=function(t,i,e,n,r){var h=s.getCommonParams(r);h.context._transactionid=t;h.context._currencyamount=i;h.context._currencytype=e;h.context._paymenttype=n;s.send("payment",h)};this.event=function(t,i){var i=s.getCommonParams(i);i.what=t;s.send("event",i)}};window["TrackingIO"]=n})();
......@@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/login.css?r=0.055841729044914246">
<script src="scripts/change.js?r=0.5346511888783425"></script>
<script src="scripts/regcom8.js?r=0.2486923444084823"></script>
<script src="scripts/success.js?r=0.444347481476143"></script>
<link rel="stylesheet" href="styles/login.css?r=0.760400326224044">
<script src="scripts/change.js?r=0.6985495439730585"></script>
<script src="scripts/regcom8.js?r=0.22244378668256104"></script>
<script src="scripts/success.js?r=0.7736186757683754"></script>
</head>
<body ng-app="app" ng-controller="successCtrl">
......
......@@ -233,6 +233,7 @@
</div>
</div>
<notice></notice>
</div>
<div class="helpTipWrap winTips" id="winTC"></div>
</div>
......
......@@ -244,55 +244,10 @@
});
}
$scope.showNoticew = false;
$scope.queryNotice = function(){
var noticePM = HttpService.getInfo("notice/findDeploy", {});
noticePM.then(function(data){
$scope.noticeList = data;
var sortNotice = UtilService.cloneJSON(data);
if(sortNotice && angular.isArray(sortNotice)){
sortNotice.sort(function(a,b){
return new Date(a.deployDate) > new Date(b.deployDate) ? -1 : 1;
});
}
else{
sortNotice = [];
}
if(sortNotice.length>0){
$scope.newNoticeInfo = sortNotice[0];
}
});
$timeout($scope.queryNotice,1000*60*3);
}
$scope.showNoticeWin = function(){
$scope.showNoticew = true;
ToolService.showAlp();
}
$scope.hideNoticeWin = function(){
$scope.showNoticew = false;
ToolService.hideAlp();
}
$scope.clickNotice = function(news){
var id = news.id;
if($scope.curNoticeId == id){
$scope.curNoticeId = -1;
}
else{
$scope.curNoticeId = id;
if(!news.isRead){
news.isRead = true;
if($scope.newNoticeInfo && $scope.newNoticeInfo.id == id){
$scope.newNoticeInfo.isRead = true;
}
HttpService.postInfo("notice/saveReadLog/"+id, {});
}
}
}
$scope.initpage = function(){
$scope.queryLimit();
$scope.queryApp();
$scope.queryNotice();
}
var lpath = $location.path();
......
......@@ -29,7 +29,8 @@
.directive("fileModel",["$parse",fileModel])
.directive("searchGroup",[searchGroup])
.directive("bigTable",["$timeout","$compile",bigTable])
.directive("dragOrder",[dragOrder]);
.directive("dragOrder",[dragOrder])
.directive("notice",["HttpService","$timeout",notice]);
function delTip(){
return{
......@@ -2024,4 +2025,56 @@
}
};
}
//消息
function notice(HttpService,$timeout){
return {
restrict: 'E',
replace:true,
scope:{
},
templateUrl : '/template/common/notice.html?r='+tempVersion,
link: function($scope, element, attrs) {
$scope.isLookList = false;
$scope.isDetail = false;
$scope.queryNotice = function(){
var noticePM = HttpService.getInfo("notice/findDeploy", {});
noticePM.then(function(data){
$scope.list = data;
$scope.noreadList = $scope.list.filter(function(item){
return item.isRead === false;
})
});
$timeout($scope.queryNotice,1000*60*3);
}
$scope.queryNotice();
$scope.changeLook = function(){
$scope.isLookList = !$scope.isLookList;
$scope.isDetail = false;
}
$scope.curNoticeInfo = {};
$scope.clickNotice = function(news){
if(!news.isRead){
HttpService.postInfo("notice/saveReadLog/"+news.id, {});
}
news.isRead = true;
$scope.curNoticeInfo = news;
$scope.isDetail = true;
$scope.noreadList = $scope.list.filter(function(item){
return item.isRead === false;
})
}
$scope.backList = function(){
$scope.isDetail = false;
}
}
};
}
})();
......@@ -6761,3 +6761,175 @@ pre{
.export ul li:hover{
color:$activebgcolor;
}
.noticeBox{
position: fixed;
right:24px;
bottom:20px;
.newInfo{
padding:10px 15px;
background:#ffffff;
border:1px solid #ebebeb;
box-shadow:0 1px 10px 0 rgba(0,0,0,0.10);
border-radius:2px;
cursor: pointer;
i{
background: url(../images/notice_ling.png) no-repeat center center;
width:18px;
height: 20px;
vertical-align: middle;
margin-top: -3px;
display: inline-block;
position: relative;
margin-right: 5px;
&:after{
content: "";
position: absolute;
right:0px;
top:0px;
display: inline-block;
background:#ff685c;
width:5px;
height:5px;
border-radius:100%;
}
}
}
.noNewInfo{
background: url(../images/notice_info.png) no-repeat center center;
width:40px;
height:40px;
cursor: pointer;
}
.noticeWin{
width:425px;
overflow: hidden;
.winTitle{
background:#5f97fb;
height: 50px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding-left: 20px;
line-height: 50px;
color:#fff;
font-size: 16px;
.noticeBack{
background: url(../images/notice_back.png) no-repeat center center;
width:20px;
height: 100%;
display: inline-block;
vertical-align: middle;
margin-left: -10px;
cursor: pointer;
}
.photo{
background: url(../images/notice_photo.png) no-repeat center center;
height: 100%;
width:24px;
border-radius: 100%;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
&.small{font-size: 14px;}
}
.winCont{
height: 370px;
max-height: 370px;
overflow-y: auto;
padding:0px 20px;
background-color: #fff;
border:1px solid #ebebeb;
border-top: none;
box-shadow:0 1px 10px 0 rgba(0,0,0,0.10);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
ul li{
border-bottom:1px solid #e4e4e4;
i{
opacity:0.9;
background:#ff685c;
width:8px;
height:8px;
border-radius:100%;
float:left;
margin-top:22px;
visibility: hidden;
}
h6{
padding-top:17px;
padding-bottom: 5px;
font-size: 14px;
text-align: left;
@extend .nowrap;
margin-left: 15px;
color:#666;
font-weight: normal;
cursor: pointer;
}
em{
display: block;
text-align: right;
color:#999;
padding-bottom: 13px;
}
&.new{
i{visibility: visible;}
h6{
color:#333;
text-decoration: underline;
}
}
}
.noticeLogo{
background: url(../images/notice_logo.png) no-repeat center right;
width:100%;
height: 25px;
margin-top: 20px;
}
&.noInfo{
display: flex;
justify-content: center;
align-items: center;
.noTips{
background: url(../images/notice_icon.png) no-repeat center top;
width:60px;
height: 60px;
position: relative;
p{
font-size: 14px;
color:#666;
text-align: center;
margin-top: 38px;
}
}
}
.noticeDetail{
padding-top: 22px;
h5{
font-size:16px;
}
p{
color:#999999;
}
.noticeNews{
line-height: 24px;
padding-top: 20px;
}
}
}
}
.hideNotice{
background: url(../images/notice_shou.png) no-repeat center center;
width:40px;
height:40px;
cursor: pointer;
margin-top: 10px;
float: right;
}
}
<div class="noticeBox">
<div class="newInfo" ng-if="noreadList.length>0 && !isLookList" ng-click="changeLook()"><i></i>您有{{noreadList.length}}条新公告</div>
<div class="noNewInfo" ng-if="noreadList.length==0 && !isLookList" ng-click="changeLook()"></div>
<div class="noticeWin" ng-if="isLookList && !isDetail">
<div class="winTitle">公告</div>
<div class="winCont" ng-class="{'noInfo':list.length==0}">
<ul ng-if="list.length>0">
<li ng-repeat="info in list track by $index" ng-class="{'new':!info.isRead}" ng-click="clickNotice(info)">
<i></i>
<h6>{{info.title}}</h6>
<em>{{info.deployDate | date:'yyyy-MM-dd HH:mm:ss'}}</em>
</li>
</ul>
<div class="noTips" ng-if="list.length==0"><p>暂无公告</p></div>
</div>
<div class="hideNotice" ng-click="changeLook()"></div>
</div>
<div class="noticeWin" ng-if="isLookList && isDetail">
<div class="winTitle small" ng-click="backList()">
<div class="noticeBack" ng-click="backList()"></div>
<div class="photo"></div>热云数据运营团队
</div>
<div class="winCont">
<div class="noticeDetail">
<h5>{{curNoticeInfo.title}}</h5>
<p>{{curNoticeInfo.deployDate | date:'yyyy-MM-dd HH:mm:ss'}}</p>
<div class="noticeNews" ng-bind-html="curNoticeInfo.content | filterHtml"></div>
<div class="noticeLogo"></div>
</div>
</div>
<div class="hideNotice" ng-click="changeLook()"></div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment