jack 8 vuotta sitten
vanhempi
commit
e541439ef6
4 muutettua tiedostoa jossa 157 lisäystä ja 68 poistoa
  1. 4 7
      cmp-portal/cmp-browinfo.html
  2. 144 0
      cmp-portal/js/companybrowinfor.js
  3. 8 60
      companybrowinfor.html
  4. 1 1
      needSure.html

+ 4 - 7
cmp-portal/cmp-browinfo.html

@ -9,8 +9,6 @@
9 9
<link type="text/css" rel="stylesheet" href="css/common.css">
10 10
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
11 11
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
12
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
13
<script type="text/javascript" src="js/public/common.js"></script>
14 12
</head>
15 13
<body>
16 14

@ -24,7 +22,7 @@
24 22
	<div class="containerCon con-center">
25 23
		<div class="mainHead clearfix">
26 24
			<div class="cmpLogoblock col-w-3">
27
				<div class="bgRadius"><img src="images/logo180.png" width="100%"></div>
25
				<div class="bgRadius"><img src="../images/logo180.png" width="100%"></div>
28 26
			</div>
29 27
			<div class="cmpInfoblock col-w-9">
30 28
				<div class="h1Font"><span>北京科袖科技有限公司</span><em class="authicon authicon-com-ok" title="认证企业"></em></div>
@ -209,9 +207,8 @@
209 207
<footer>
210 208
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
211 209
</footer>
212

213

214

215

210
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
211
<script type="text/javascript" src="js/public/common.js"></script>
212
<script type="text/javascript" src="js/cmp-browinfo.js"></script>
216 213
</body>
217 214
</html>

+ 144 - 0
cmp-portal/js/companybrowinfor.js

@ -0,0 +1,144 @@
1
$(document).ready(function() {
2
	//var id = "05FBD2E6F568461CA7EC378E66C47ABE";
3
	var id="BB8EE2EC6881419DACC5AF4FE650055A";
4
	/*企业信息*/
5
	function companyInformation() {
6
		$.ajax({
7
			url: "/ajax/org/" + id,
8
			type: "GET",
9
			timeout: 10000,
10
			dataType: "json",
11
			beforeSend: function() {},
12
			success: function(data, textState) {
13
				if(data.success) {
14
					console.log(data);
15
					var $data = data.data;
16
					$(".h1Font").text($data.name);
17
					if($data.hasOrgLogo) {
18
						$("#oimg").attr("src", "/images/org/" + $data.id + ".jpg");
19
					}
20
					if($data.orgUrl) {
21
						$("#inteAddress").text($data.orgUrl);
22
					} else {
23
						$("#inteAddress").text("");
24
					}
25
					if($data.foundTime) {
26
						var oTime = timeGeshi($data.foundTime);
27
						$("#createTime").text(oTime);
28
					} else {
29
						$("#createTime").val("");
30
					}
31
					if($data.city) {
32
						$("#ocity").text($data.city);
33
					}
34
					if($data.descp) {
35
						$(".editbox").text($data.descp);
36
					}
37
					if($data.orgSize) {
38
						switch($data.orgSize) {
39
							case '1':
40
								$("#qualificationList").text("50人以内")
41
								break;
42
							case '2':
43
								$("#qualificationList").text("50-100人")
44
								break;
45
							case '3':
46
								$("#qualificationList").text("100-200人")
47
								break;
48
							case '4':
49
								$("#qualificationList").text("200-500人")
50
								break;
51
							case '5':
52
								$("#qualificationList").text("500-1000人")
53
								break;
54
							default:
55
								$("#qualificationList").text("1000人以上")
56
								break;
57
						}
58
					}
59
					if($data.orgType) {
60
						switch($data.orgType) {
61
							case '2':
62
								$("#orgType").text("国有企业");
63
								break;
64
							case '3':
65
								$("#orgType").text("上市企业");
66
								break;
67
							case '4':
68
								$("#orgType").text("合资企业");
69
								break;
70
							case '5':
71
								$("#orgType").text("私人企业");
72
								break;
73
							case '6':
74
								$("#orgType").text("外资企业");
75
								break;
76
							default:
77
								$("#orgType").text("初创企业");
78
								break;
79
						}
80
					}
81
					if($data.industry) {
82
						indu($data.industry, '#industryShow')
83
					}
84
					if($data.subject) {
85
						indu($data.subject, '#subjectShow')
86
					}
87
					if($data.qualification) {
88
						indu($data.qualification, '#qiye ')
89
					}
90
				}
91
			},
92
			error: function(XMLHttpRequest, textStats, errorThrown) {
93
				console.log(XMLHttpRequest)
94
			}
95
		})
96
	}
97
	companyInformation();
98

99
	function timeGeshi(otm) {
100
		var otme = otm.substring(0, 4) + "-" + otm.substring(4, 6) + "-" + otm.substring(6, 8);
101
		return otme;
102
	}
103
	/*应用行业及领域及企业纸质*/
104
	function indu(oString, oSelector) {
105
		var arr = oString.split(",");
106
		var oArr = new Array();
107
		var i;
108
		for(i in arr) {
109
			if(oSelector == "#subjectShow") {
110
				oArr.push('<div class="acad">' + arr[i] + '</div>');
111
			} else {
112
				oArr.push('<li>' + arr[i] + '</li>');
113
			}
114
		}
115
		$(oSelector).html(oArr.join(""));
116
	}
117
	/*获取所有的企业用户*/
118
	function companyUser() {
119
		$.ajax({
120
			url: "/ajax/professor/qaOrgAuth",
121
			type: "GET",
122
			timeout: 10000,
123
			dataType: "json",
124
			data: {
125
				"orgId": id,
126
			},
127
			beforeSend: function() {},
128
			success: function(data, textState) {
129
				if(data.success) {
130
					console.log(data);
131
					var $info=data.data;
132
					userHtml()
133
				}
134
			},
135
			error: function(XMLHttpRequest, textStats, errorThrown) {
136
				$.MsgBox.Alert('提示', '服务器请求失败')
137
			}
138
		})
139
	}
140
	companyUser();
141
	function userHtml(){
142
		
143
	}
144
})

+ 8 - 60
companybrowinfor.html

@ -21,13 +21,13 @@
21 21
<div id="container">
22 22
	<div class="content" style="padding-bottom:20px;">
23 23
		<div class="information-head clearfix">
24
			<div class="head-org headRadius"><img src="images/default-icon.jpg" width="100%"></div>	
24
			<div class="head-org headRadius"><img src="images/default-icon.jpg" width="100%" id="oimg"></div>	
25 25
			<div class="head-center">
26 26
				<div class="infor-browse cmpBasic">
27 27
					<div class="h1Font"><span>北京科袖科技有限公司</span></div>
28
	        		<div class="h4Font cmpBasic"><span>企业类型</span><span>企业规模</span><span>创立时间</span></div>
29
	        		<div class="h4Font">企业官网</div>
30
	        		<div class="h4Font">总部地点</div>
28
	        		<div class="h4Font cmpBasic"><span id="orgType">企业类型</span><span id="qualificationList">企业规模</span><span id="createTime">创立时间</span></div>
29
	        		<div class="h4Font" id="inteAddress">企业官网</div>
30
	        		<div class="h4Font" id="ocity">总部地点</div>
31 31
				</div>
32 32

33 33
			</div>
@ -41,7 +41,6 @@
41 41
					<a class="subsidebar">所属行业</a>
42 42
					<a class="subsidebar">专注领域</a>
43 43
					<a class="subsidebar">企业资质</a>
44
					<a class="subsidebar">企业需求</a>
45 44
					<a class="subsidebar">企业用户</a>
46 45
                </div>
47 46
			</div>
@ -76,63 +75,12 @@
76 75
				<div class="right-box introduction">
77 76
					<div class="right-title"><span>企业资质</span></div>
78 77
					<div class="infor-browse">
79
						<ul class="edu-about edu-infor" id="industryShow">
78
						<ul class="edu-about edu-infor" id="qiye">
80 79
							<li>3333</li>
81 80
							<li>3333</li>
82 81
						</ul>
83 82
					</div>
84 83
				</div>
85
				
86
				<div class="right-box introduction">
87
					<div class="right-title"><span>企业需求</span></div>
88
					<div class="infor-browse">
89
						<ul class="infoList">
90
							 <li>
91
						  		<div class="floatL">
92
									<div class='workitimg headRadius'>
93
										<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
94
									</div>
95
								</div>
96
								<div class="floatR" style="width:84%;">
97
									<div class='workinfor worksitcon'>
98
										<h4><div class='h1Font'><span class="needTopic ellipsisSty"> data[i]["consultTitle"] </span><span class="needAim"> 技术咨询 </span></h4>
99
										<h6> 
100
											<span class="h2Font">["name"] </span>
101
										</h6>
102
										<h6 class='h3Font'>
103
											<span>["title"]</span>, <span>["office"]</span>,<span>["department"]</span>,<span>["orgName"]</span> | <span>["address"]</span>
104
										</h6>
105
										<h6>
106
											<p class='rebackcon ellipsisSty-2'>plyFn(userid,data[i]["consultId"])["lastReplyCon"]</p>
107
										</h6>
108
									</div>
109
								</div>
110
							</li>
111
							 <li>
112
						  		<div class="floatL">
113
									<div class='workitimg headRadius'>
114
										<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
115
									</div>
116
								</div>
117
								<div class="floatR" style="width:84%;">
118
									<div class='workinfor worksitcon'>
119
										<h4><div class='h1Font'><span class="needTopic ellipsisSty"> data[i]["consultTitle"] </span><span class="needAim"> 技术咨询 </span></h4>
120
										<h6> 
121
											<span class="h2Font">["name"] </span>
122
										</h6>
123
										<h6 class='h3Font'>
124
											<span>["title"]</span>, <span>["office"]</span>,<span>["department"]</span>,<span>["orgName"]</span> | <span>["address"]</span>
125
										</h6>
126
										<h6>
127
											<p class='rebackcon ellipsisSty-2'>plyFn(userid,data[i]["consultId"])["lastReplyCon"]</p>
128
										</h6>
129
									</div>
130
								</div>
131
							</li>
132
						</ul>
133
					</div>
134
				</div>
135
				
136 84
				<div class="right-box introduction">
137 85
					<div class="right-title"><span>企业用户</span></div>
138 86
					<div class="infor-browse">
@ -213,8 +161,8 @@
213 161
<script type="text/javascript" src="js/common.js"></script>
214 162
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
215 163
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
216

217
<script type="text/javascript">
164
<script type="text/javascript" src="cmp-portal/js/companybrowinfor.js"></script>
165
<!--<script type="text/javascript">
218 166
	//拿到点击的顺序,然后求出局文档的距离
219 167
	$(".subsidebar").mouseenter(function(){
220 168
		var dd=$(this)[0].className;
@ -239,6 +187,6 @@
239 187
	}).mousedown(function(){
240 188
	  	$(this).css("background","");
241 189
	});
242
</script>
190
</script>-->
243 191
</body>
244 192
</html>

+ 1 - 1
needSure.html

@ -85,7 +85,7 @@
85 85
                </div>
86 86
                <div class="dialoginfotype clearfix inline" style="margin-left:50px">
87 87
                	<span class="floatL" id="">需求目的:</span>
88
                	<span class="dialogtit floatL" id="dialog_consultType"></span>
88
                	<span class="dialogtit floatL" id="demandt"></span>
89 89
                </div>
90 90
                <div class="dialoginfotype clearfix" id="dialog_consultContentContainer">
91 91
                	<div class="floatL" id="dialog_consultContentTitle">需求内容:</div>