123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <div class="message_title">
- 消息列表
- </div>
- <div class="message_type">
- <div class="message_body">
- <div class="message_no" ng-click="message_no(2)" ng-class="{'active':message_type==2}">
- 未读信息
- </div>
- <div class="message_yes" ng-click="message_yes(1)" ng-class="{'active':message_type==1}">
- 已读信息
- </div>
- </div>
- <div class='message-list' ng-if="message_type==2">
- <div class="message_content" ng-repeat="item in msg" ng-if="!msg_noType">
- <div style="overflow: hidden;border-bottom: 1px dashed #ccc;">
- <div class="content_title">{{item.title}}</div>
- <div class="content_time">{{item.releaseTime}}</div>
- </div>
- <div class="content_text">
- {{item.content}}
- </div>
- <div class="red">
- <button class="redbtn" ng-click="redIn(item)">设置已读</button>
- </div>
- </div>
- <div ng-if="msg_noType">暂无信息</div>
- </div>
- <div class='message-list' ng-if="message_type==1">
- <div class="message_content" ng-repeat="item in msg" ng-if="!msg_yesType">
- <div style="overflow: hidden;border-bottom: 1px dashed #ccc;">
- <div class="content_title">{{item.title}}</div>
- <div class="content_time">{{item.releaseTime}}</div>
- </div>
- <div class="content_text">
- {{item.content}}
- </div>
- </div>
- <div ng-if="msg_yesType">
- 暂无信息
- </div>
- </div>
- </div>
- <!-- 分页控件指令 ,可以是元素 或者 属性 -->
- <div style="text-align: center;
- margin-top: 2%;padding-right: 2%;">
- <!-- <my-pagination page-option="option"></my-pagination> -->
- <button ng-click="sBtn()" class="sBtn" ng-hide="msgData.idx==0" id="sBtn1">上一页</button>
- <button ng-click="xBtn()" class="sBtn" ng-hide="wt_msgData.list.length<5" id="xBtn1">下一页</button>
- <div class="wt_page">
- <span>当前页:{{wt_msgData.pageIndex+1}} / 总页数:{{wt_msgData.pageCount}}</span>
- </div>
- </div>
- <!-- <nav aria-label="Page navigation" class="wt_nav">
- <ul class="pagination">
- <li>
- <a href="#" aria-label="Previous">
- <span aria-hidden="true">«</span>
- </a>
- </li>
- <li>
- <a href="#">1</a>
- </li>
- <li>
- <a href="#">2</a>
- </li>
- <li>
- <a href="#">3</a>
- </li>
- <li>
- <a href="#">4</a>
- </li>
- <li>
- <a href="#">5</a>
- </li>
- <li>
- <a href="#" aria-label="Next">
- <span aria-hidden="true">»</span>
- </a>
- </li>
- </ul>
- </nav> -->
- <style>
- .wt_page{
- display: inline-block;
- float: right;
- }
- .sBtnD {
- background: #ccc;
- }
- .sBtn {
- display: inline-block;
- color:#005395;
- width: 80px;
- height: 30px;
- border: 1px solid #ccc;
- line-height: 30px;
- border-radius: 2px;
- cursor: pointer;
- background-color: #fff !important;
- }
- .sBtn:hover {
- background-color: #005395 !important;
- color: #fff
- }
- .wt_nav {
- text-align: center;
- }
- .pagination>li>a:hover {
- background-color: #005395 !important;
- border-color: #005395 !important;
- color: #fff !important;
- }
- .pagination>li>a:focus {
- background-color: #005395 !important;
- border-color: #005395 !important;
- color: #fff !important;
- }
- .pagination>li>a {
- color: #005395 !important;
- }
- .modal-content {
- /* width: 540px; */
- height: 600px;
- border-radius: 2px;
- overflow: auto;
- }
- .message_title {
- height: 6%;
- border-bottom: 1px solid #EAEAEA;
- font-size: 18px;
- line-height: 39px;
- text-align: center;
- color: #005395;
- /* position: fixed; */
- width: 100%;
- background: #fff;
- }
- .message_body {
- /* position: fixed; */
- width: 100%;
- background: #fff;
- /* margin-top: 19px; */
- /* border-bottom: 1px solid #EAEAEA;
- border-top: 1px solid #EAEAEA; */
- border: 1px solid #EAEAEA;
- }
- .message-list {
- /* position: fixed;
- top: 102px;
- left: 12px; */
- height: 97%;
- overflow-y: auto;
- width: 100%;
- border-left: 1px solid #EAEAEA;
- }
- .message_type {
- margin: 0 auto;
- /* margin-top: 60px; */
- /* border: 1px solid #EAEAEA; */
- border-top: 0px;
- width: 100%;
- height: 80%;
- /* padding: 20px; */
- padding: 20px 20px 0px 20px;
- }
- .message_yes {
- float: left;
- display: inline-block;
- width: 50%;
- height: 40px;
- text-align: center;
- color: #005395;
- font-size: 16px;
- line-height: 40px;
- cursor: pointer;
- }
- .message_yes:hover {
- background-color: #005395 !important;
- border-color: #005395 !important;
- color: #fff !important;
- }
- .message_no:hover {
- background-color: #005395 !important;
- border-color: #005395 !important;
- color: #fff !important;
- }
- .message_no {
- float: left;
- display: inline-block;
- line-height: 40px;
- width: 50%;
- height: 40px;
- text-align: center;
- color: #005395;
- font-size: 16px;
- border-left: 1px solid #EAEAEA;
- cursor: pointer;
- }
- .message_content {
- padding: 10px 10px 0px 10px;
- /* border-top: 1px solid #EAEAEA; */
- border-bottom: 1px solid #EAEAEA;
- overflow: hidden;
- height: 18%;
- background: #eee;
- margin-bottom: 5px;
- }
- .red {
- float: left;
- /* display: inline-block; */
- margin-top: 13px;
- }
- .redbtn {
- width: 70px;
- height: 25px;
- color: #fff;
- border-radius: 2px;
- background: #005395;
- border: 0px;
- }
- .redbtn:hover {
- background: #DBE8E6;
- color: #005395;
- border: 1px solid #005395;
- }
- .content_title {
- float: left;
- width: 50%;
- font-size: 16px;
- color: #005395;
- }
- .content_time {
- float: left;
- width: 50%;
- text-align: right;
- font-size: 14px;
- color: #999;
- }
- .content_text {
- margin-top: 6px;
- font-size: 14px;
- color: #666;
- display: inline-block;
- width: 92%;
- /* height: 86%; */
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- float: left;
- }
- .active {
- border: 1px solid #7BC2B4;
- background: #005395;
- color: #fff;
- border-bottom: 0px;
- }
- </style>
|