index.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <style>
  2. table.table-invite > tbody > tr > td {
  3. vertical-align: middle;
  4. }
  5. </style>
  6. <div id="content-container" class="container">
  7. <div class="row">
  8. <div class="col-md-3">
  9. {include file="common/sidenav" /}
  10. </div>
  11. <div class="col-md-9">
  12. <div class="panel panel-default panel-page">
  13. <div class="panel-heading">
  14. <h2>邀请好友</h2>
  15. </div>
  16. <div class="panel-body" style="padding:0;">
  17. <div class="alert alert-warning-light">
  18. <div class="row">
  19. <div class="col-md-12">
  20. <p>你可以将你的邀请链接发送给你的朋友,邀请TA的加入,注册成功后你将获得 <b>{$inviteConfig.rewardscore}</b> 积分,TA获得 <b>{$inviteConfig.invitedscore}</b> 积分</p>
  21. <div class="input-group input-group-md">
  22. <div class="icon-addon addon-md">
  23. <input type="text" placeholder="邀请链接" onfocus="this.select();" value="{:addon_url('invite/index/index',[':id'=>$user['id']],false,true)}" class="form-control input-md">
  24. </div>
  25. <span class="input-group-btn">
  26. <button class="btn btn-success btn-invite" type="button" data-clipboard-text="{:addon_url('invite/index/index',[':id'=>$user['id']],false,true)}">复制链接</button>
  27. </span>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <table class="table table-striped table-invite">
  33. <thead>
  34. <tr>
  35. <th>头像</th>
  36. <th>用户名</th>
  37. <th>加入时间</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {volist name='inviteList' id='invite'}
  42. <tr>
  43. <td>
  44. <a href="{$invite.invited.url}">
  45. <span class="avatar-img">
  46. <img src="{$invite.invited.avatar}" class="{$invite.invited.nickname}">
  47. </span>
  48. </a>
  49. </td>
  50. <td>
  51. <a href="{$invite.invited.url}">
  52. {$invite.invited.nickname}
  53. </a>
  54. </td>
  55. <td>{$invite.createtime|datetime}</td>
  56. </tr>
  57. {/volist}
  58. </tbody>
  59. </table>
  60. <div class="pager">{$inviteList->render()}</div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>