| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org">
- <div th:replace="~{mobile/header :: header}"></div>
- <body>
- <header>
- <span >企业</span>
- </header>
- <!-- 内容 -->
- <section class="content has_header has_footer">
- <div class="list">
- <ul id="CompanyContent">
- </ul>
- </div>
- </section>
- <!-- 底部 -->
- <div class="bottom-fxied">
- <footer>
- <span>
- <a th:href="@{/mobile/home}" >
- <i class="iconfont icon-shouye"></i>
- <div>首页</div>
- </a>
- </span>
- <span>
- <a th:href="@{/mobile/company/companyPage}" class="active" >
- <i class="iconfont icon-enterprise"></i>
- <div>产品</div>
- </a>
- </span>
- <span>
- <a th:href="@{/mobile/service}">
- <i class="iconfont icon-msnui-service"></i>
- <div>服务</div>
- </a>
- </span>
- <span>
- <a th:href="@{/mobile/account}">
- <i class="iconfont icon-wo"></i>
- <div>我</div>
- </a>
- </span>
- </footer>
- </div>
- </body>
- <script type="text/javascript">
- $(document).ready(function(){
- $.ajax({
- type: "POST",
- dataType: "json",
- url: pagePath+"/mobile/company/getProductList",
- data: {
- "timestamp": new Date().getTime()
- },
- success: function (result) {
- if (result.success) {
- var fileUrl = result.obj.fileUrl;
- for(var i=0;i<result.obj.productList.length;i++){
-
- var product=result.obj.productList[i];
-
- var html='<li><div > <a href='+pagePath+'/mobile/company/productDetailPage?productId='+product.id+'>';
- html+='<img style="width:100px;height:100px;" src="'+fileUrl+product.fileDown.file_url+'" />';
- html+='<div class="name">'+product.product_name+'</div>';
- html+='<div>'+product.company_name+'</div></a> </div>';
- var $html=$(html);
- $("#CompanyContent").append($html);
- }
- } else {
- alert(result.message);
- }
- },
- error: function () {
-
- }
- });
-
-
- });
- </script>
- </html>
|