view.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {extend name="common/base"/}
  2. <!-- 主体 -->
  3. {block name="body"}
  4. <div class="layui-form p-4">
  5. <h3 class="pb-3">用户信息</h3>
  6. <table class="layui-table layui-table-form">
  7. <tr>
  8. <td class="layui-td-gray">登录账号</td>
  9. <td>
  10. {$user.username}
  11. </td>
  12. <td class="layui-td-gray">会员等级</td>
  13. <td>
  14. {$user.level_name}
  15. </td>
  16. <td rowspan="4" class="layui-td-gray">头像</td>
  17. <td rowspan="4" valign="top" style="width: 150px;">
  18. <div class="layui-upload">
  19. <img src="{$user.headimgurl}" width="150" height="150" style="max-width: 100%;" />
  20. </div>
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="layui-td-gray">注册时间</td>
  25. <td>
  26. {$user.register_time | date='Y-m-d H:i:s'}
  27. </td>
  28. <td class="layui-td-gray">注册IP</td>
  29. <td>
  30. {$user.register_ip}
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="layui-td-gray">真实姓名</td>
  35. <td>
  36. {$user.name}
  37. </td>
  38. <td class="layui-td-gray">状态</td>
  39. <td>
  40. {eq name="$user.status" value="1" }正常{/eq}
  41. {eq name="$user.status" value="0" }禁止登录{/eq}
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="layui-td-gray">手机号码</td>
  46. <td>
  47. {$user.mobile}
  48. </td>
  49. <td class="layui-td-gray">电子邮箱</td>
  50. <td>
  51. {$user.email}
  52. </td>
  53. </tr>
  54. <tr>
  55. <td class="layui-td-gray">昵称</td>
  56. <td>
  57. {$user.nickname}
  58. </td>
  59. <td class="layui-td-gray">性别</td>
  60. <td>
  61. {eq name="$user.sex" value="1" }男{/eq}
  62. {eq name="$user.sex" value="2" }女{/eq}
  63. {eq name="$user.sex" value="0" }未知{/eq}
  64. </td>
  65. <td class="layui-td-gray">生日</td>
  66. <td>
  67. {$user.birthday | date='Y-m-d'}
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="layui-td-gray">个人简介</td>
  72. <td colspan="5">
  73. {$user.desc}
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="layui-td-gray">所在企业</td>
  78. <td>
  79. {$user.company}
  80. </td>
  81. <td class="layui-td-gray">所在部门</td>
  82. <td>
  83. {$user.depament}
  84. </td>
  85. <td class="layui-td-gray">所在职位</td>
  86. <td>
  87. {$user.position}
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="layui-td-gray">企业地址</td>
  92. <td colspan="5">
  93. {$user.address}
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="layui-td-gray-2">最后登录IP</td>
  98. <td>
  99. {$user.last_login_ip}
  100. </td>
  101. <td class="layui-td-gray-2">最后登录时间</td>
  102. <td>
  103. {$user.last_login_time | date='Y-m-d H:i:s'}
  104. </td>
  105. <td class="layui-td-gray">累计登录</td>
  106. <td>
  107. {$user.login_num}次
  108. </td>
  109. </tr>
  110. </table>
  111. </div>
  112. {/block}
  113. <!-- /主体 -->