enterprise.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="list">
  11. <ul id="CompanyContent">
  12. </ul>
  13. </div>
  14. </section>
  15. <!-- 底部 -->
  16. <div class="bottom-fxied">
  17. <footer>
  18. <span>
  19. <a th:href="@{/mobile/home}" >
  20. <i class="iconfont icon-shouye"></i>
  21. <div>首页</div>
  22. </a>
  23. </span>
  24. <span>
  25. <a th:href="@{/mobile/company/companyPage}" class="active" >
  26. <i class="iconfont icon-enterprise"></i>
  27. <div>产品</div>
  28. </a>
  29. </span>
  30. <span>
  31. <a th:href="@{/mobile/service}">
  32. <i class="iconfont icon-msnui-service"></i>
  33. <div>服务</div>
  34. </a>
  35. </span>
  36. <span>
  37. <a th:href="@{/mobile/account}">
  38. <i class="iconfont icon-wo"></i>
  39. <div>我</div>
  40. </a>
  41. </span>
  42. </footer>
  43. </div>
  44. </body>
  45. <script type="text/javascript">
  46. $(document).ready(function(){
  47. $.ajax({
  48. type: "POST",
  49. dataType: "json",
  50. url: pagePath+"/mobile/company/getProductList",
  51. data: {
  52. "timestamp": new Date().getTime()
  53. },
  54. success: function (result) {
  55. if (result.success) {
  56. var fileUrl = result.obj.fileUrl;
  57. for(var i=0;i<result.obj.productList.length;i++){
  58. var product=result.obj.productList[i];
  59. var html='<li><div > <a href='+pagePath+'/mobile/company/productDetailPage?productId='+product.id+'>';
  60. html+='<img style="width:100px;height:100px;" src="'+fileUrl+product.fileDown.file_url+'" />';
  61. html+='<div class="name">'+product.product_name+'</div>';
  62. html+='<div>'+product.company_name+'</div></a> </div>';
  63. var $html=$(html);
  64. $("#CompanyContent").append($html);
  65. }
  66. } else {
  67. alert(result.message);
  68. }
  69. },
  70. error: function () {
  71. }
  72. });
  73. });
  74. </script>
  75. </html>