| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org">
- <div th:replace="~{mobile/header :: header}"></div>
- <body>
- <header>
- <a class="back" href="javascript:history.go(-1);"> <i class="iconfont icon-fanhui"></i></a>
- </header>
- <!-- 内容 -->
- <section class="content has_header" id="companyContent">
- <div id="enterprise_info" class="enterprise_info">
- <!-- <div class="name">苏州市群峰电子材料有限公司</div>
- <div class="meta"> <span>地址:</span> 苏州高新区安达工业园6楼</div>
- <div class="meta"> <span>电话:</span> 18112750535</div> -->
- </div>
- <div class="enterprise_list">
- <div class="intro">产品介绍</div>
- <div id = "product_list" class="product_list">
- <!-- <ul>
- </ul> -->
- </div>
- </div>
- </section>
- <script type="text/javascript">
- $(document).ready(function(){
- String.prototype.getParameter = function (key) {
- var re = new RegExp(key + '=([^&]*)(?:&)?');
- return this.match(re) && this.match(re)[1];
- };
-
- var productId = location.href.getParameter("productId");
- $.ajax({
- type: "POST",
- dataType: "json",
- url: pagePath+"/mobile/company/getProductDetail/"+productId,
- data: {
- "timestamp": new Date().getTime()
- },
- success: function (result) {
- if (result.success) {
- var product = result.obj.product;
- var company = result.obj.company;
- $("#enterprise_info").empty();
- var html='<div class="name"> '+company.company_name+'</div>';
- html+='<div class="meta"> <span>地址:</span>'+company.house_number+'</div>';
- html+='<div class="meta"> <span>电话:</span>'+company.phone+'</div>';
- var $html=$(html);
- $("#enterprise_info").append($html);
-
- var product = result.obj.product;
- if( product!=null){
- var html = '<div>';
- html+='<img style="width:100px!important;height:100px;" src="'+product.fileDown.file_url+'" alt="">';
- html+='<div class="meta"> '+product.product_name+' </div>';
- html+='<div class="meta"> '+product.create_time+' </div>';
- html+='<div> '+product.description+' </div>';
- html+=' </div></div>';
- $("#product_list").append(html);
- }
- } else {
- alert(result.message);
- }
- },
- error: function () {
-
- }
- });
-
-
- });
- </script>
- <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/login}">
- <i class="iconfont icon-wo"></i>
- <div>我</div>
- </a>
- </span>
- </footer>
- </div></body>
- </html>
|