MyPolicy.cshtml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. 
  2. @model ReportListViewModel
  3. @section style{
  4. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/plugins/page/paging.css">
  5. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/css/user.css">
  6. <style>
  7. @@media(min-width:768px) {
  8. .m-header {
  9. height: 84px;
  10. display: block !important;
  11. }
  12. }
  13. </style>
  14. }
  15. <div class="container user-box">
  16. <div class="row">
  17. <div class="col-sm-3 left">
  18. <div class="user">
  19. <img src="@(string.IsNullOrWhiteSpace(Model.Head_Url)?"/assets/image/avatar.png":Model.Head_Url)" alt="">
  20. <p>@(string.IsNullOrWhiteSpace(Model.NickName) ? "用户名" : @Model.NickName)</p>
  21. </div>
  22. <div class="user-tab">
  23. @if (string.IsNullOrWhiteSpace(Model.User.Core_customer_code))
  24. {
  25. <a href="@Url.Action("Notice","User")">绑定操作指引</a>
  26. }
  27. <a href="@Url.Action("Index","User")">基本信息</a>
  28. <a class="cur" href="@Url.Action("MyPolicy","User")">我的保单</a>
  29. </div>
  30. </div>
  31. <div class="col-sm-9 right">
  32. <div class="con">
  33. <div class="title-h">
  34. <h2>我的保单</h2>
  35. </div>
  36. <div class="policy-list">
  37. <table class="table table-striped">
  38. <thead>
  39. <tr>
  40. <th width="50%">投保单号</th>
  41. <th>生效日期</th>
  42. <th>保单状态</th>
  43. <th>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach (var item in Model.ReportNoList)
  48. {
  49. <tr>
  50. <td class="color">
  51. @item.ContNo
  52. </td>
  53. <td>
  54. @item.StartTime
  55. </td>
  56. <td>
  57. @item.State
  58. </td>
  59. <td><a href="@Url.Action("PolicyDetail","User",new { contNo=item.ContNo})">查看详情</a></td>
  60. </tr>
  61. }
  62. </tbody>
  63. </table>
  64. <div class="pageDiv"></div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. @section script{
  71. <script src="/assets/plugins/page/jquery.page.js"></script>
  72. <script>
  73. window.dataMark = "0$15231983314041342$$15231984162518026$";
  74. $(function () {
  75. //分页
  76. var pageSize = 10;
  77. var rowsCount = @(ViewData["pageCount"] );
  78. var pageIndex = @(ViewData["pageIndex"] );
  79. $(".pageDiv").createPage({
  80. pageCount: Math.ceil(rowsCount / pageSize), //总页数
  81. current: pageIndex, //当前页
  82. turndown: 'false',
  83. backFn: function (p) {
  84. pageIndex = p;
  85. location.href = "@(Url.Action("MyPolicy", "User"))?pageIndex=" + pageIndex + "&pageSize=" + pageSize;
  86. }
  87. });
  88. console.log(rowsCount)
  89. })
  90. </script>
  91. }