account.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <div th:replace="~{mobile/header :: header}"></div>
  4. <body>
  5. <header>
  6. <span >我</span>
  7. </header>
  8. <!-- 内容 -->
  9. <section class="content has_header has_footer">
  10. <div class="header">
  11. <!-- <h1 class="title" th:text="${company.company_name}" id="companyName"></h1> -->
  12. <h1 class="title" id="companyName"></h1>
  13. </div>
  14. <div class="box_list">
  15. <ul>
  16. <li>
  17. <a th:href="@{/mobile/account/changePassword}">
  18. <i class="iconfont icon-tongzhi"></i>
  19. <span>修改密码</span>
  20. </a>
  21. </li>
  22. <li>
  23. <a th:href="@{/mobile/account/changeMobile}">
  24. <i class="iconfont icon-shuidian"></i>
  25. <span>修改手机号</span>
  26. </a>
  27. </li>
  28. <li>
  29. <a th:href="@{/mobile/logout}">
  30. <i class="iconfont icon-xiuli"></i>
  31. <span>退出登录</span>
  32. </a>
  33. </li>
  34. </ul>
  35. </div>
  36. </section>
  37. <script>
  38. $(function(){
  39. bindCompanyInfo();
  40. });
  41. function bindCompanyInfo(){
  42. $.ajax({
  43. type: "Get",
  44. dataType: "json",
  45. url: pagePath+"/mobile/account/getCompanyInfo",
  46. data: {
  47. },
  48. success: function (result) {
  49. if (result.success) {
  50. var company = result.obj;
  51. $("#companyName").text(company.company_name);
  52. } else {
  53. sadMessage(result.message);
  54. }
  55. },
  56. error: function () {
  57. sadMessage("系统错误!");
  58. //errorMessage('系统错误!');
  59. }
  60. });
  61. }
  62. </script>
  63. <div class="bottom-fxied">
  64. <footer>
  65. <span>
  66. <a th:href="@{/mobile/home}" >
  67. <i class="iconfont icon-shouye"></i>
  68. <div>首页</div>
  69. </a>
  70. </span>
  71. <span>
  72. <a th:href="@{/mobile/company/companyPage}" >
  73. <i class="iconfont icon-enterprise"></i>
  74. <div>产品</div>
  75. </a>
  76. </span>
  77. <span>
  78. <a th:href="@{/mobile/service}" class="active">
  79. <i class="iconfont icon-msnui-service"></i>
  80. <div>服务</div>
  81. </a>
  82. </span>
  83. <span>
  84. <a th:href="@{/mobile/account}">
  85. <i class="iconfont icon-wo"></i>
  86. <div>我</div>
  87. </a>
  88. </span>
  89. </footer>
  90. </div>
  91. </body>
  92. </html>