12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
-
- @model ReportListViewModel
- @section style{
- <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/plugins/page/paging.css">
- <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/css/user.css">
- <style>
- @@media(min-width:768px) {
- .m-header {
- height: 84px;
- display: block !important;
- }
- }
- </style>
- }
- <div class="container user-box">
- <div class="row">
- <div class="col-sm-3 left">
- <div class="user">
- <img src="@(string.IsNullOrWhiteSpace(Model.Head_Url)?"/assets/image/avatar.png":Model.Head_Url)" alt="">
- <p>@(string.IsNullOrWhiteSpace(Model.NickName) ? "用户名" : @Model.NickName)</p>
- </div>
- <div class="user-tab">
- @if (string.IsNullOrWhiteSpace(Model.User.Core_customer_code))
- {
- <a href="@Url.Action("Notice","User")">绑定操作指引</a>
- }
- <a href="@Url.Action("Index","User")">基本信息</a>
- <a class="cur" href="@Url.Action("MyPolicy","User")">我的保单</a>
- </div>
- </div>
- <div class="col-sm-9 right">
- <div class="con">
- <div class="title-h">
- <h2>我的保单</h2>
- </div>
- <div class="policy-list">
- <table class="table table-striped">
- <thead>
- <tr>
- <th width="50%">投保单号</th>
- <th>生效日期</th>
- <th>保单状态</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var item in Model.ReportNoList)
- {
- <tr>
- <td class="color">
- @item.ContNo
- </td>
- <td>
- @item.StartTime
- </td>
- <td>
- @item.State
- </td>
- <td><a href="@Url.Action("PolicyDetail","User",new { contNo=item.ContNo})">查看详情</a></td>
- </tr>
- }
- </tbody>
- </table>
- <div class="pageDiv"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- @section script{
- <script src="/assets/plugins/page/jquery.page.js"></script>
- <script>
- window.dataMark = "0$15231983314041342$$15231984162518026$";
- $(function () {
- //分页
- var pageSize = 10;
- var rowsCount = @(ViewData["pageCount"] );
- var pageIndex = @(ViewData["pageIndex"] );
- $(".pageDiv").createPage({
- pageCount: Math.ceil(rowsCount / pageSize), //总页数
- current: pageIndex, //当前页
- turndown: 'false',
- backFn: function (p) {
- pageIndex = p;
- location.href = "@(Url.Action("MyPolicy", "User"))?pageIndex=" + pageIndex + "&pageSize=" + pageSize;
- }
- });
- console.log(rowsCount)
- })
- </script>
- }
|