123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>企业分享-科袖网</title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link rel="stylesheet" href="../css/reset.css" />
- <link rel="stylesheet" href="../css/common.css" />
- <link rel="stylesheet" href="../css/share.css" />
- <style>
- html,body{margin:0;padding:0px;background: #F4F6F8;}
- .showCardI{background-image: url(../images/enterprise_img_bg_nor@3x.png)}
- .infocontit:before{background: #28b8fa;}
- </style>
- <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- <script type="text/javascript" src="../js/public/shareCom.js"></script>
- </head>
- <body>
- <div class="contentBody2">
- <div class="showCardI">
- <div class="cardTop">
- <div class="cardImg cmpCard">
- <div class="boxBlock"><img class="boxBlockimg companyImg" id="oimg" src="../images/default-icon.jpg"></div>
- </div>
- <div class="cardInfo">
- <p><span class="h1Font" id="companyName"></span><em class="authicon" id="authFlag"></em></p>
- <p class="ellipsisSty h2Font" id="industryShow"></p>
- <p class="h3Font"><em class="iconfontnew icon-address"></em> <span id="address"></span></p>
- </div>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit clearfix" style="cursor: pointer;" id="goCmpBrief">企业介绍 <em></em></div>
- <div class="infocon">
- <span class="breifinfo" id="breifinfo">
- </span>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">专注领域</div>
- <div class="infocon listArea">
- <ul id="subjectShow">
-
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">资源 (<span id="resourceNum">0</span>)</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="resourceShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreResource"><em>查看更多</em></div>
- </div>
- <div class="mainbox">
- <div class="infocontit">文章 (<span id="articalNum">0</span>)</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="articelShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreArtical"><em>查看更多</em></div>
- </div>
- <div class="shareEcode" style="background: #FFFFFF;">
- <div class="Ecodebox">
- <div class="Ecodecon clearfix">
- <img src="../images/weixin_code.jpg" />
- <div class="codecon">
- <h1>「 科袖 」</h1>
- <h2>搭建企业与专家的桥梁</h2>
- <h3>长按识别科袖公众号</h3>
- </div>
- </div>
- </div>
- <div style="margin:20px auto;">
- <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function() {
- var imgUrl = "http://www.ekexiu.com/images/logo180.png";
- var lineLink = document.location.href;
- var descContent;
- var shareTitle;
- var appid = '';
-
- var orgId = GetQueryString("id");
-
- companyMessage(orgId);
- getArticel();
- getResource();
- shareWays();
-
- $("body").on("click",".seeMore,#goCmpBrief",function(){
- location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
- })
- $('#articelShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/a.html?id=" + id;
- })
- $('#resourceShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/r.html?id=" + id;
- })
- function companyMessage(id) {
- $.ajax({
- url: "../ajax/org/" + id,
- dataType: 'json',
- type: 'GET',
- timeout: 10000,
- success: function(data) {
- if(data.success) {
- var $data = data.data;
- if($data.forShort){
- document.getElementById("companyName").innerText = $data.forShort;
- }else{
- document.getElementById("companyName").innerText = $data.name;
- }
- if($data.hasOrgLogo) {
- document.getElementById("oimg").src = "/images/org/" + $data.id + ".jpg";
- } else {
- document.getElementById("oimg").src = "../images/default-icon.jpg";
- }
-
- if($data.authStatus == 3) {
- document.getElementById("authFlag").classList.add("authicon-com-ok");
- }
-
-
- if($data.city) {
- document.getElementById("address").innerText = $data.city;
- } else {
- document.getElementById("address").parentNode.style.display = "none";
- }
-
- if($data.descp) {
- document.getElementById("breifinfo").innerText = $data.descp;
- }
-
- var proOther = "";
- if($data.industry) {
- proOther = $data.industry.replace(/,/gi, " | ");
- }
- document.getElementById("industryShow").innerText = proOther;
-
- if($data.subject) {
- indu($data.subject, 'subjectShow')
- } else {
- document.getElementById("subjectShow").parentNode.parentNode.style.display = "none";
- }
-
- document.title=$data.name + "-" + proOther;
-
- shareTitle = document.getElementById("companyName").innerText;
- descContent = document.getElementById("industryShow").innerText.substring(0,20);
- if(document.getElementById("oimg").src !="../images/default-icon.jpg"){
- imgUrl= document.getElementById("oimg").src;
- }
-
- }
- },
- error: function() {
- }
- });
- }
-
- function indu(oString, oSelector) {
- var arr = oString.split(",");
- var oArr = new Array();
- var i;
- for(i in arr) {
- oArr.push('<li>' + arr[i] + '</li>');
- }
- document.getElementById(oSelector).innerHTML = oArr.join("");
- }
-
- function getResource() {
- $.ajax({
- url: "../ajax/resource/pqOrgPublish",
- type: "GET",
- timeout: 10000,
- dataType: "json",
- data: {
- "orgId": orgId
- },
- success: function(data) {
- console.log(data)
- if(data.success) {
- var obj = data.data.data;
- if(obj.length>0){
- document.getElementById("resourceNum").innerText = obj.length;
- if(obj.length>2){
- obj.length =2;
- document.getElementById("seeMoreResource").classList.remove("displayNone");
- }
- for(var i = 0; i < obj.length; i++) {
- var liItem = document.createElement("li");
- liItem.className = "mui-table-view-cell"
- liItem.setAttribute("data-id",obj[i].resourceId)
- var oString = '<div class="flexCenter OflexCenter clearfix">'
- if(obj[i].images.length) {
- oString += '<div class="madiaHead resouseHead" style="background-image:url(../data/resource/' + obj[i].images[0].imageSrc +')"></div>'
- } else {
- oString += '<div class="madiaHead resouseHead"></div>'
- }
- oString += '<div class="madiaInfo OmadiaInfo"><p class="ellipsisSty h1Font">' + obj[i].resourceName + '</p><p class="h2Font mui-ellipsis">应用用途:' + obj[i].supportedServices + '</p>'
- oString += '</div></div>'
- liItem.innerHTML = oString;
- document.getElementById("resourceShow").appendChild(liItem);
- }
- }else{
- document.getElementById("resourceShow").parentNode.parentNode.style.display="none";
- }
- }
- },
- error: function() {
- }
- })
- }
-
- function getArticel() {
- $.ajax({
- url: "../ajax/article/pqOrgPublish",
- type: "GET",
- timeout: 10000,
- dataType: "json",
- data: {
- "orgId": orgId
- },
- success: function(data) {
- console.log(data)
- if(data.success) {
- var obj = data.data.data;
- if(obj.length>0){
- document.getElementById("articalNum").innerText = obj.length;
- if(obj.length>2){
- obj.length =2;
- document.getElementById("seeMoreArtical").classList.remove("displayNone");
- }
- for(var i = 0; i < obj.length; i++) {
- var liItem = document.createElement("li");
- liItem.setAttribute("data-id",obj[i].articleId);
- liItem.setAttribute("owner-id",obj[i].orgId);
- liItem.className = "mui-table-view-cell"
- var oString = '<div class="flexCenter OflexCenter clearfix">'
- if(obj[i].articleImg) {
- oString += '<div class="madiaHead artHead" style="background-image:url(../data/article/' + obj[i].articleImg + ')"></div>'
- } else {
- oString += '<div class="madiaHead artHead"></div>'
- }
- oString += '<div class="madiaInfo OmadiaInfo"><p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>'
- oString += '</div></div>'
- liItem.innerHTML = oString;
- document.getElementById("articelShow").appendChild(liItem);
- }
- }else{
- document.getElementById("articelShow").parentNode.parentNode.style.display="none";
- }
- }
- },
- error: function() {
- }
- })
- }
-
- })
- </script>
- </body>
- </html>
|