notice.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {template 'common/header'}
  2. <ul class="we7-page-tab">
  3. <li {if empty($type)}class="active" {/if} ><a href="{php echo url('message/notice')}">全部</a></li>
  4. {if $_W['isfounder'] && uni_user_see_more_info(ACCOUNT_MANAGE_NAME_VICE_FOUNDER, false)}
  5. <li {if $type == MESSAGE_ORDER_TYPE}class="active" {/if}><a href="{php echo url('message/notice', array('type' => MESSAGE_ORDER_TYPE))}">订单消息</a></li>
  6. {/if}
  7. <li {if $type == MESSAGE_ACCOUNT_EXPIRE_TYPE}class="active" {/if}><a href="{php echo url('message/notice', array('type' => MESSAGE_ACCOUNT_EXPIRE_TYPE))}">到期消息</a></li>
  8. {if $_W['isfounder'] && uni_user_see_more_info(ACCOUNT_MANAGE_NAME_VICE_FOUNDER, false)}
  9. <li {if $type == MESSAGE_REGISTER_TYPE}class="active" {/if}><a href="{php echo url('message/notice', array('type' => MESSAGE_REGISTER_TYPE))}">注册提醒</a></li>
  10. <li {if $type == MESSAGE_WORKORDER_TYPE}class="active" {/if} ><a href="{php echo url('message/notice', array('type' => MESSAGE_WORKORDER_TYPE))}">工单提醒</a></li>
  11. {/if}
  12. </ul>
  13. <table class="table we7-table table-hover vertical-middle" id="message-notice" ng-controller="messageNoticeCtrl" ng-cloak>
  14. <col>
  15. <col>
  16. <col>
  17. <tr>
  18. <th colspan="3" class="text-left filter">
  19. <div class="dropdown dropdown-toggle we7-dropdown">
  20. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  21. 全部
  22. <span class="caret"></span>
  23. </a>
  24. <ul class="dropdown-menu" aria-labelledby="dLabel">
  25. <li><a href="{php echo filter_url('is_read:');}" class="active">全部</a></li>
  26. <li><a href="{php echo filter_url('is_read:' . MESSAGE_READ);}" class="active">已读</a></li>
  27. <li><a href="{php echo filter_url('is_read:' . MESSAGE_NOREAD);}" class="active">未读</a></li>
  28. </ul>
  29. </div>
  30. </th>
  31. </tr>
  32. <tr>
  33. <th>标题内容</th>
  34. <th class="text-center">提交时间</th>
  35. <th class="text-right">操作</th>
  36. </tr>
  37. <tr ng-repeat="list in lists">
  38. <td class="tip-before unread" ng-if ="list.is_read == 1" ng-bind="list.message"></td>
  39. <td class="tip-before " ng-if ="list.is_read == 2" ng-bind="list.message"></td>
  40. <td class="text-muted text-center" ng-bind = "list.create_time"></td>
  41. <td>
  42. <div class="link-group">
  43. <a ng-href="{{list.url}}" ng-if="list.type==1">查看我的订单</a>
  44. <a ng-href="{{list.url}}" ng-if="list.type==3">进入工单</a>
  45. <a ng-href="{{list.url}}" ng-if="list.type==2">查看公众号</a>
  46. <a ng-href="{{list.url}}" ng-if="list.type==5">查看小程序</a>
  47. <a ng-href="{{list.url}}" ng-if="list.type==6">查看pc</a>
  48. <a ng-href="{{list.url}}" ng-if="list.type==4 && list.status==1">查看我的待审核用户</a>
  49. <a ng-href="{{list.url}}" ng-if="list.type==7">查看我的账号</a>
  50. </div>
  51. </td>
  52. </tr>
  53. </table>
  54. <div class="text-right we7-margin-top">
  55. {$pager}
  56. </div>
  57. <script type="text/javascript">
  58. angular.module('messageApp').value('config', {
  59. 'type' : '{php echo $type}',
  60. 'lists': {php echo !empty($lists) ? json_encode($lists) : 'null'},
  61. });
  62. angular.bootstrap($('#message-notice'), ['messageApp']);
  63. </script>
  64. {template 'common/footer'}