You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

103 lines
3.6 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" name="viewport"
  5. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  6. <title>我的{$kx.config.user.ticket_caption} - {$kx.config.sitename}</title>
  7. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxmobileno1/css/global.css"/>
  8. <script src="{$kx.config.resurl}/template/kxmobileno1/js/flexible.min.js"></script>
  9. </head>
  10. <body>
  11. <div class="w100">
  12. <div class="w100 bg-red flex-wrp flex-align-center flex-between lh100 plr15 ptb15">
  13. <img src="{$kx.config.resurl}/template/kxmobileno1/images/return.png" class="pt-return">
  14. <div class="size18 color1">我的{$kx.config.user.ticket_caption}</div>
  15. <div></div>
  16. </div>
  17. <div class="bg-red color1 pt10 pl20">
  18. <p>当前可用{$kx.config.user.ticket_caption}(张)</p>
  19. <span class="bold" style="font-size: 40px;">{$userinfo.assets.surplus_ticket}</span>
  20. </div>
  21. <style>
  22. .ticket_list {
  23. padding: 0;
  24. }
  25. .ticket_list .label {
  26. text-align: center;
  27. border-bottom: 1px solid #E9E9E9;
  28. }
  29. .ticket_list .label li {
  30. display: inline-block;
  31. height: 40px;
  32. line-height: 40px;
  33. font-size: 16px;
  34. margin: 5px 20px 0;
  35. }
  36. .ticket_list .label li.active {
  37. border-bottom: 4px solid #f55;
  38. }
  39. .ticket_list .container > li {
  40. display: none;
  41. min-height: 480px;
  42. }
  43. .ticket_list .container > li.active{
  44. display: block;
  45. }
  46. .ticket_list .container ul li{
  47. border-bottom: 1px solid #E9E9E9;
  48. line-height: 40px;
  49. height: 40px;
  50. padding: 0 20px;
  51. }
  52. .ticket_list .container ul li span:first-child{
  53. width: 100px;
  54. }
  55. </style>
  56. <div class="bg-white mb10 pt-list ticket_list">
  57. <ul class="label">
  58. <li data-type="obtain" class="active">获取记录</li>
  59. <li data-type="use">使用记录</li>
  60. </ul>
  61. {block method="user.ticketList" name=tickets userid=$userinfo.id num=50}
  62. <ul class="container">
  63. <li class="obtain active">
  64. <ul>
  65. {loop=$tickets}
  66. <li>
  67. <span class="inline-block">{$loop.create_time|date='Y-m-d'}</span>
  68. <span class="inline-block">{=is_numeric($loop.ext)?$loop.ext.'消费返还':$loop.ext}</span>
  69. <span class="inline-block fr color32">+1张</span>
  70. </li>
  71. {/loop}
  72. </ul>
  73. </li>
  74. <li class="use">
  75. <ul>
  76. {loop=$tickets}
  77. {~if(!$loop.novel_id)continue;}
  78. <li>
  79. <span class="inline-block">{$loop.used_time|date='Y-m-d'}</span>
  80. <span class="inline-block">{$loop.novel.name}</span>
  81. <span class="inline-block fr color32">-1张</span>
  82. </li>
  83. {/loop}
  84. </ul>
  85. </li>
  86. </ul>
  87. </div>
  88. </div>
  89. <!-- 底部版权 -->
  90. {include file="/system/footer"}
  91. <script src="{$kx.config.resurl}/template/kxmobileno1/js/layer/mobile/layer.js"></script>
  92. <script>
  93. $('.ticket_list .label li').click(function () {
  94. $(this).addClass('active').siblings().removeClass('active');
  95. $('.ticket_list .container .' + $(this).data('type')).addClass('active').siblings().removeClass('active');
  96. });
  97. </script>
  98. </body>
  99. </html>