detail.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('用户信息详情')" />
  5. </head>
  6. <body class="white-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  8. <form class="form-horizontal m" id="form" th:object="${userDetail}">
  9. <div class="modal-body">
  10. <div class="detail">
  11. <div class="part form-group">
  12. <div class="nick">昵称: <span th:text="*{users.nick}"></span></div>
  13. <div class="erbanNo">卿卿号: <span th:text="*{users.erbanNo}"></span></div>
  14. <div class="uid">UID: <span th:text="*{users.uid}"></span></div>
  15. <div class="avatar">头像:<img th:src="*{users.avatar}" src="" alt="" width="70px" height="70px"></div>
  16. </div>
  17. <div class="part form-group">
  18. <div class="gender">性别: <span th:text="*{usersExtVO.sex}"> </span></div>
  19. <div class="phone">手机: <span th:text="*{users.phone}"></span></div>
  20. <div class="birth">出生日期: <span th:text="*{usersExtVO.dateTime}"></span></div>
  21. <div class="email">email: <span th:text="*{users.email}"></span></div>
  22. </div>
  23. <div class="part form-group">
  24. <div class="sign">签名: <span th:text="*{users.signture}"></span></div>
  25. <div class="userDesc">自我描述: <span th:text="*{users.userVoice}"></span></div>
  26. </div>
  27. <div class="part form-group">
  28. <div class="goldNum">金币数: <span th:text="*{userPurse.goldNum}"></span></div>
  29. <div class="diamondNum">钻石数: <span th:text="*{userPurse.diamondNum}"></span></div>
  30. <div class="depositNum">押金数: <span th:text="*{userPurse.depositNum}"></span></div>
  31. </div>
  32. <div class="part form-group">
  33. <div class="followNum">关注数: <span th:text="*{users.followNum}"></span></div>
  34. <div class="fansNum">粉丝数: <span th:text="*{users.fansNum}"></span></div>
  35. <div class="defUser">账号类型: <span th:text="*{usersExtVO.accountType}"></span></div>
  36. </div>
  37. <div class="part form-group">
  38. <div class="fortune">财富值: <span th:text="*{users.fortune}"></span></div>
  39. <div class="channelType">下载渠道类型: <span th:text="*{users.channel}"></span></div>
  40. </div>
  41. <div class="part form-group">
  42. <div class="alipayAccount">支付宝: <span th:text="*{users.alipayAccount}"></span></div>
  43. <div class="alipayAccountName">支付宝账户名: <span th:text="*{users.alipayAccountName}"></span></div>
  44. </div>
  45. <div class="part form-group">
  46. <div class="ispType">运营商: <span th:text="*{users.ispType}"></span></div>
  47. <div class="netType">网络类型: <span th:text="*{users.netType}"></span></div>
  48. <div class="model">手机型号: <span th:text="*{users.model}"></span></div>
  49. </div>
  50. <div class="part form-group">
  51. <div class="deviceID">设备号: <span th:text="*{users.deviceId}"></span></div>
  52. <div class="appVersion">版本号: <span th:text="*{users.appVersion}"></span></div>
  53. </div>
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <th:block th:include="include :: footer" />
  59. <script type="text/javascript">
  60. var prefix = ctx + "users/user";
  61. $(function() {
  62. $('#removePhone').on('click', function () {
  63. $.ajax({
  64. type: "post",
  65. url: prefix + "/untiedPhone",
  66. data: {
  67. uid: $('#uid').val(),
  68. erBanNo: $('#editErbanNo').val()
  69. },
  70. dataType: 'json',
  71. beforeSend: function () {
  72. $.modal.loading("正在处理中,请稍后...");
  73. $.modal.disable();
  74. },
  75. success: function(result) {
  76. if (typeof callback == "function") {
  77. callback(result);
  78. }
  79. $.operate.successCallback(result);
  80. }
  81. })
  82. })
  83. });
  84. // 上传文件
  85. function sendFile(file, obj) {
  86. var data = new FormData();
  87. data.append("file", file);
  88. $.ajax({
  89. type: "POST",
  90. url: ctx + "common/upload",
  91. data: data,
  92. cache: false,
  93. contentType: false,
  94. processData: false,
  95. dataType: 'json',
  96. success: function(result) {
  97. if (result.code == web_status.SUCCESS) {
  98. $(obj).summernote('editor.insertImage', result.url, result.fileName);
  99. } else {
  100. $.modal.alertError(result.msg);
  101. }
  102. },
  103. error: function(error) {
  104. $.modal.alertWarning("图片上传失败。");
  105. }
  106. });
  107. }
  108. $("#form-notice-edit").validate({
  109. focusCleanup: true
  110. });
  111. function submitHandler() {
  112. if ($.validate.form()) {
  113. var sHTML = $('.summernote').summernote('code');
  114. $("#noticeContent").val(sHTML);
  115. $.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
  116. }
  117. }
  118. </script>
  119. </body>
  120. </html>