Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

3 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>用户中心 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/global.css"/>
  7. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/style.css"/>
  8. </head>
  9. <body>
  10. <!-- 头部 -->
  11. {include file="/system/header"}
  12. <!-- 内容 -->
  13. <div class="pt-content">
  14. <!-- 面包屑 -->
  15. <div class="pt-crumb">
  16. <img src="{$kx.config.resurl}/template/kxwebno1/images/crumb_icon.png" class="pt-crumb-icon">
  17. <span class="color5">
  18. <a href="{$kx.config.siteurl}">{$kx.config.sitename}</a> > <a href="{link=user.index.index}" class="color5">用户中心</a>
  19. </span>
  20. </div>
  21. <!-- 一楼 -->
  22. <div class="pt-floor1">
  23. {include file="/system/userleft"}
  24. <div class="relative pt-rank pt-user">
  25. <div class="pt-user-first">
  26. <div class="inline-block fl mr20">
  27. <img src="{$userinfo.avatar}" alt="{$userinfo.name}">
  28. </div>
  29. <div class="inline-block fl pt-user-info">
  30. <div>
  31. {block method=user.isvip userid=$userinfo.id name=$isvip}
  32. <a href="{link=user.vip.index}">
  33. <img class="mr15" src="{$kx.config.resurl}/template/kxwebno1/images/vip{=$isvip?'_active':''}.png" alt="超级会员" style="vertical-align: middle;margin-top: -5px;">
  34. </a>
  35. <span class="inline-block size18 bold color6 mr40 username">{=$userinfo.nickname?:$userinfo.name}</span>
  36. {if date('Ymd')>$userinfo.data.sign_day}
  37. <button class="btn-sign">签到</button>
  38. {else}
  39. <button class="btn-sign btn-signed">已签到</button>
  40. {/if}
  41. </div>
  42. <div class="color6 pt-user-data">
  43. <div class="inline-block fl">
  44. <ul>
  45. <li>我的等级:<span class="user-level-name">{$userinfo.group.name}</span></li>
  46. <li>我的{$kx.config.user.exp_caption}:<span class="user-exp">{$userinfo.exp}</span></li>
  47. <li>我的{$kx.config.user.point_caption}:<span class="user-print">{$userinfo.point}</span></li>
  48. <li>登录次数:{$userinfo.data.login_num}次</li>
  49. <li>{$kx.config.user.money_caption}余额:<span class="color2 user-money">{$userinfo.assets.balance}</span></li>
  50. <li>{$kx.config.user.ticket_caption}数量:<span class="color2 user-free-money">{$userinfo.assets.surplus_ticket}</span></li>
  51. </ul>
  52. </div>
  53. <div class="inline-block fl">
  54. <div>
  55. 我的登录进度:
  56. <div class="inline-block pt-user-level">
  57. <div class="inline-block user-level-name">{$userinfo.group.name}</div>
  58. <div class="inline-block w120 progress">
  59. {if empty($userinfo.group.next)}
  60. <div class="progress-bar" style="width: 100%;"></div>
  61. {else}
  62. <div class="progress-bar" style="width: {=$userinfo.group.next.progress}%;"></div>
  63. {/if}
  64. </div>
  65. {if !empty($userinfo.group.next)}
  66. <div class="inline-block color2 user-next-level-name">{$userinfo.group.next.name}</div>
  67. {/if}
  68. </div>
  69. </div>
  70. <div>
  71. 上次登录时间:{$userinfo.data.login_time|date="Y-m-d H:i:s"}
  72. </div>
  73. <div>
  74. 上次登录地址:{$userinfo.data.login_ip}
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="pt-user-stat">
  81. <ul class="text-center">
  82. {block method=mark.num userid=$userinfo.id name=$marknum}
  83. <li class="inline-block mt30">
  84. <div><span class="size24 color6">{$marknum}</span> <span>本</span></div>
  85. <div><span class="size16">我收藏的</span></div>
  86. </li>
  87. <li class="inline-block mt30">
  88. <div><span class="size24 color6">{=$userinfo.data.vote_num?:0}</span> <span>本</span></div>
  89. <div><span class="size16">我推荐过</span></div>
  90. </li>
  91. <li class="inline-block mt30">
  92. <div><span class="size24 color6">{=$userinfo.data.star_num?:0}</span> <span>本</span></div>
  93. <div><span class="size16">我打分过</span></div>
  94. </li>
  95. <li class="inline-block mt30">
  96. <div><span class="size24 color6">{=$userinfo.data.comment_num?:0}</span> <span>本</span></div>
  97. <div><span class="size16">我评论过</span></div>
  98. </li>
  99. </ul>
  100. </div>
  101. </div>
  102. <div class="relative pt-user-table mt10">
  103. <div style="line-height: 18px;margin-bottom:30px;">
  104. <span class="size18 color2 mr10">签到记录</span>
  105. <a class="fr" href="{link=user.sign.index}">查看全部+</a>
  106. </div>
  107. <div>
  108. <table class="sign-records">
  109. <thead>
  110. <tr>
  111. <th>签到时间</th>
  112. <th>连签次数</th>
  113. <th>{$kx.config.user.exp_caption}奖励</th>
  114. <th>{$kx.config.user.point_caption}奖励</th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. {block method="sign" name=signList userid=$userinfo.id num=5}
  119. {if empty($signList)}
  120. <tr>
  121. <td colspan="5">您似乎来到了没有数据存在的荒原~~~</td>
  122. </tr>
  123. {else}
  124. {section loop=$signList item=$loop}
  125. <tr>
  126. <td>{$loop.datetime|date="Y-m-d H:i:s"}</td>
  127. <td>{$loop.num}</td>
  128. <td>{$loop.exp}</td>
  129. <td>{$loop.point}</td>
  130. </tr>
  131. {/section}
  132. {/if}
  133. </tbody>
  134. </table>
  135. </div>
  136. </div>
  137. <div class="relative pt-user-table mt10">
  138. <div style="line-height: 18px;margin-bottom:30px;">
  139. <span class="size18 color2 mr10">邀请记录</span>
  140. <a class="fr" href="{link=user.invite.index}">查看全部+</a>
  141. </div>
  142. <div>
  143. <table>
  144. <thead>
  145. <tr>
  146. <th>序号</th>
  147. <th>用户/IP</th>
  148. <th>类型</th>
  149. <th>{$kx.config.user.exp_caption}奖励</th>
  150. <th>{$kx.config.user.point_caption}奖励</th>
  151. <th>签到时间</th>
  152. </tr>
  153. </thead>
  154. <tbody>
  155. {block method="user.inviteList" name=inviteList userid=$userinfo.id}
  156. {if empty($inviteList)}
  157. <tr class="empty">
  158. <td colspan="6">您似乎来到了没有数据存在的荒原~~~</td>
  159. </tr>
  160. {else}
  161. {section loop=$inviteList item=$loop}
  162. <tr>
  163. <td>{$i.order}</td>
  164. <td class="color2">{$loop.ext}</td>
  165. <td>>{$loop.type|default="注册","访问"}</td>
  166. <td>{$loop.exp}</td>
  167. <td>{$loop.point}</td>
  168. <td>{$loop.datetime|date="Y-m-d H:i:s"}</td>
  169. </tr>
  170. {/section}
  171. {/if}
  172. </tbody>
  173. </table>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. <!-- 底部版权-->
  179. {include file="/system/footer"}
  180. <script>
  181. var loading = null;
  182. $('.btn-sign').click(function(){
  183. var self = $(this);
  184. if (self.hasClass('btn-signed')){
  185. layer.msg('您今天已经签过到了,等明天再来吧!');
  186. }else{
  187. $.ajax('{link=user.sign.do}', {
  188. type: 'post',
  189. dataType: 'json',
  190. beforeSend: function () {
  191. if (loading == null) {
  192. loading = layer.load(1, {shade: [0.1, '#000']});
  193. }
  194. },
  195. complete: function () {
  196. if (loading != null) {
  197. layer.close(loading);
  198. loading = null;
  199. }
  200. },
  201. success: function (res) {
  202. if (res.code) {
  203. layer.alert(res.msg, {icon: 2,}, function (index) {
  204. if (res.data.redirect) {
  205. window.location.href = res.data.redirect;
  206. } else {
  207. layer.close(index);
  208. }
  209. });
  210. } else {
  211. var userDataBox = $('.pt-user-data');
  212. var userLevelBox = $('.pt-user-level');
  213. userDataBox.find('.user-level-name').text(res.data.name);
  214. userDataBox.find('.user-exp').text(res.data.exp);
  215. userDataBox.find('.user-print').text(res.data.print);
  216. if (res.data.next) {
  217. userLevelBox.find('.user-level-name').text(res.data.name);
  218. userLevelBox.find('.user-next-level-name').text(res.data.next.name);
  219. userLevelBox.find('.progress div').css('width', res.data.next.progress);
  220. } else {
  221. userLevelBox.find('.progress div').css('width', '100%');
  222. userLevelBox.find('.user-next-level-name').hide();
  223. }
  224. var signRecordsBox = $('.sign-records tbody');
  225. var trs = signRecordsBox.find('tr');
  226. if (trs.length >= 10 || trs.length === 1 && trs.hasClass('empty')) {
  227. signRecordsBox.find('tr:last').remove();
  228. }
  229. signRecordsBox.prepend('<tr><td>' + res.data.record.datetime + '</td><td>' + res.data.record.num + '</td><td>' + res.data.record.exp + '</td><td>' + res.data.record.point + '</td></tr>');
  230. self.addClass('btn-signed').text('已签到');
  231. layer.msg(res.msg);
  232. }
  233. },
  234. error: function () {
  235. layer.alert('推荐失败,请刷新页面后重试!', {icon: 2,});
  236. }
  237. });
  238. }
  239. });
  240. </script>
  241. <!-- js-->
  242. <script src="{$kx.config.resurl}/template/kxwebno1/js/rankdetail.js"></script>
  243. </body>
  244. </html>