Browse Source

首页公共询价、公告已读未读、今日非今日标识

hangb 8 years ago
parent
commit
2dca938916
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main/webapp/resources/tpl/index/home/left.html

+ 4 - 3
src/main/webapp/resources/tpl/index/home/left.html

@@ -169,7 +169,8 @@
 		</div>
 		<div class="pane-body">
 			<ul class="list-unstyled detail details">
-				<li ng-repeat="notice in notices" ng-class="isCurrentTime(dateTime, notice.date) && notice.readStatus == 1 ? day-read : nonday">
+				<li ng-repeat="notice in notices"
+					ng-class="isCurrentTime(dateTime, notice.date) && notice.readStatus == 1 ? 'day-read' : isCurrentTime(dateTime, notice.date) && notice.readStatus == 0 ? 'day-unread' : 'nonday'">
                     <a ng-click="setReadStatus(notice.id)" href="public#/notice/{{notice.id}}" class="" ng-bind="::notice.title" target="_blank"></a><img src="static/img/home/new.png" ng-show="isCurrentTime(dateTime, notice.date)">
                 </li>
 			</ul>
@@ -182,11 +183,11 @@
 		</div>
 		<div class="pane-body">
 			<ul class="list-unstyled detail">
-				<li ng-repeat="msg in message | orderBy : '- inid'" class="day-unread">
+				<li ng-repeat="msg in message | orderBy : '- inid'" class="day-unread" ng-class="msg.lastest?'nonday':'day-read'">
 					<!--<span ng-show="tender.isNew"><img src="static/img/home/newTender.png"></span>-->
 					<a ng-click="setReadStatus(msg)" ui-sref="baseInfo.inquiryListDetail({id:msg.inid})" class="text-light">
 						<em style="font-style: normal;">{{msg.pordName}}</em>
-						<img src="static/img/home/new.png" ng-if="msg.isToday"/>
+						<img src="static/img/home/new.png" ng-if="msg.lastest"/>
 					</a>
 				</li>
 				<li ng-show="message == null || message == ''" class="grey">