Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/dev' into dev

XMTT 7 anni fa
parent
commit
683324d6ee
61 ha cambiato i file con 2127 aggiunte e 647 eliminazioni
  1. 27 25
      articalIssue.html
  2. 9 3
      articalList.html
  3. 30 51
      articalModify.html
  4. 1 1
      articalPreview.html
  5. 2 2
      articalShow.html
  6. 28 26
      cmp-portal/articalIssue.html
  7. 30 51
      cmp-portal/articalModify.html
  8. 2 2
      cmp-portal/cmp-UnstaffList.html
  9. 10 4
      cmp-portal/cmp-articalList.html
  10. 1 1
      cmp-portal/cmp-needList.html
  11. 1 1
      cmp-portal/cmp-needShow.html
  12. 2 2
      cmp-portal/cmp-staffList.html
  13. 1 1
      cmp-portal/cmp-updateinfo.html
  14. 1 1
      cmp-portal/cmp-workspaces.html
  15. 20 69
      cmp-portal/css/cmpindex.css
  16. 10 12
      cmp-portal/css/common.css
  17. 14 5
      cmp-portal/js/articalIssue.js
  18. 14 5
      cmp-portal/js/articalModify.js
  19. 7 6
      cmp-portal/js/cmp-articalList.js
  20. 3 3
      cmp-portal/js/companybrowinfor.js
  21. 596 0
      cmp-portal/js/resourceIssue.js
  22. 142 0
      cmp-portal/js/resourceList.js
  23. 182 0
      cmp-portal/resourceIssue.html
  24. 75 0
      cmp-portal/resourceList.html
  25. 6 8
      css/common.css
  26. 1 0
      css/datetimepicker.css
  27. 18 13
      css/genindex.css
  28. 7 1
      css/index.css
  29. 8 8
      css/popup.css
  30. BIN
      images/01.png
  31. BIN
      images/02.png
  32. BIN
      images/03.png
  33. BIN
      images/authsort.png
  34. BIN
      images/authsort2.png
  35. BIN
      images/points_icon_ku_nor.png
  36. 13 6
      index.html
  37. 14 5
      js/articalIssue.js
  38. 4 2
      js/articalList.js
  39. 15 6
      js/articalModify.js
  40. 1 1
      js/articalPreview.js
  41. 18 11
      js/articalShow.js
  42. 20 7
      js/attention-list.js
  43. 10 0
      js/discover.js
  44. 5 4
      js/information.brow.js
  45. 2 2
      js/information.js
  46. 167 1
      js/resourceImport.js
  47. 21 15
      js/resourceIssue.js
  48. 8 6
      js/resourceList.js
  49. 104 21
      js/resourcePreview.js
  50. 373 223
      js/resourceShow.js
  51. 1 1
      js/search.js
  52. 4 4
      js/workindex.js
  53. 2 2
      myConsult.html
  54. 2 2
      myDemand.html
  55. 2 2
      needList.html
  56. 12 7
      resourceImport.html
  57. 10 3
      resourceList.html
  58. 24 2
      resourcePreview.html
  59. 24 2
      resourceShow.html
  60. 18 6
      searchNew.html
  61. 5 5
      workspaces.html

+ 27 - 25
articalIssue.html

@ -18,31 +18,31 @@
18 18
	<script src="js/header.js"></script>
19 19
</header>
20 20
<!--定时发布弹框-->
21
<div class="blackcover2">
22
	<div class="setTimeBlock modelContain">
23
		<span class="mb_tit">提示</span>
24
		<a class="mb_close"></a>
25
		<div class="mb_msg">
26
			<p style="margin: 10px;">请设置文章发布的时间:</p>
27
			        <div class="formTime">
28
			        <!--<div class="form-group">
29
			            <div class='input-group date' id='datetimepicker6'>
30
			                <input type='text' class="form-control" />
31
			                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
32
			            </div>
33
			        </div>-->
34
			        <div class="form-group">
35
			             <input size="16" type="text" value="" readonly class="form-control form_datetime">
36
			        </div>
37
			</div>
38
		</div>
39
		<div class="mb_btnbox">
40
			<input class="mb_btn mb_btnOk" type="button" value="确定">
41
			<input class="mb_btn mb_btnNo" type="button" value="取消">
21
<div class="blackcover2"></div>
22
<div class="setTimeBlock modelContain">
23
	<span class="mb_tit">提示</span>
24
	<a class="mb_close"></a>
25
	<div class="mb_msg">
26
		<p style="margin: 10px;">请设置文章发布的时间:</p>
27
		        <div class="formTime">
28
		        <!--<div class="form-group">
29
		            <div class='input-group date' id='datetimepicker6'>
30
		                <input type='text' class="form-control" />
31
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
32
		            </div>
33
		        </div>-->
34
		        <div class="form-group">
35
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
36
		        </div>
42 37
		</div>
43 38
	</div>
39
	<div class="mb_btnbox">
40
		<input class="mb_btn mb_btnOk" type="button" value="确定">
41
		<input class="mb_btn mb_btnNo" type="button" value="取消">
42
	</div>
44 43
</div>
45 44

45

46 46
<input type="hidden" id="hidearticleId" value="" />
47 47
<div id="container">
48 48
	<div class="containerCon">
@ -55,7 +55,7 @@
55 55
       							<span class="" id="filePicker">上传图片</span>
56 56
	        					<!--未上传图片时-->
57 57
	        					<div class="upFront">
58
		        					<p>文章封面大图</p>
58
		        					<p>文章封面大图<em class="requiredcon">*</em></p>
59 59
		        					<p>JPG/PNG格式,2M以内。</p>
60 60
		        					<span class="upbtn">上传图片</span>
61 61
	        					</div>
@ -66,7 +66,7 @@
66 66
	        			<span class="frmconmsg imgtis" style="margin-left:0"></span>
67 67
					</li>
68 68
					<li>
69
						<div class="aboutTit" id="aboutTit">标题<span class="frmconmsg"></span></div>
69
						<div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
70 70
					    <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
71 71
					</li>
72 72
					<li class="form-item">
@ -178,7 +178,6 @@ $(function () {
178 178
    	format: 'yyyy-mm-dd hh:ii',
179 179
    	forceParse: true,
180 180
    	autoclose: true,
181
        todayBtn: true
182 181
    });
183 182
    function getNowFormatDate() {
184 183
	    var date = new Date();
@ -221,6 +220,7 @@ var uploader = WebUploader.create({
221 220
    auto: true,
222 221
    swf: '../js/webuploader/Uploader.swf',
223 222
    server: '../ajax/cachedFileUpload',
223
    fileSingleSizeLimit: 2 * 1024 * 1024,
224 224
    pick : {
225 225
    	id : "#filePicker",
226 226
    	multiple: false
@ -232,7 +232,9 @@ var uploader = WebUploader.create({
232 232
    }
233 233
   
234 234
});
235

235
uploader.onError = function(code) {
236
	$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
237
};
236 238
// 当有文件添加进来的时候
237 239
uploader.on( 'fileQueued', function( file ) {
238 240
    uploader.makeThumb( file, function( error, src ) {

+ 9 - 3
articalList.html

@ -48,9 +48,15 @@
48 48
							<ul id="articalList">
49 49
								
50 50
							</ul>
51
							<div id="noartical" class="displayNone" style="text-align: center;padding:50px 0;">
52
								暂无内容
53
							</div>
51
							<!--无搜索结果-->
52
							<div class="nodatabox displayNone" id="noartical">
53
						        <div class="nodata">
54
						            <div class="picbox picNull"></div>
55
						            <div class="txtbox">
56
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
57
						            </div>
58
						        </div>
59
						    </div>
54 60
							<div class="tcdPageCode"></div>
55 61
						</div>
56 62
					</div>

+ 30 - 51
articalModify.html

@ -22,30 +22,30 @@
22 22
	<script src="js/header.js"></script>
23 23
</header>
24 24
<!--定时发布弹框-->
25
<div class="blackcover2">
26
	<div class="setTimeBlock modelContain">
27
		<span class="mb_tit">提示</span>
28
		<a class="mb_close"></a>
29
		<div class="mb_msg">
30
			<p style="margin: 10px;">请设置文章发布的时间:</p>
31
			        <div class="formTime">
32
			        <!--<div class="form-group">
33
			            <div class='input-group date' id='datetimepicker6'>
34
			                <input type='text' class="form-control" />
35
			                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
36
			            </div>
37
			        </div>-->
38
			        <div class="form-group">
39
			             <input size="16" type="text" value="" readonly class="form-control form_datetime">
40
			        </div>
41
			</div>
42
		</div>
43
		<div class="mb_btnbox">
44
			<input class="mb_btn mb_btnOk" type="button" value="确定">
45
			<input class="mb_btn mb_btnNo" type="button" value="取消">
25
<div class="blackcover2"></div>
26
<div class="setTimeBlock modelContain">
27
	<span class="mb_tit">提示</span>
28
	<a class="mb_close"></a>
29
	<div class="mb_msg">
30
		<p style="margin: 10px;">请设置文章发布的时间:</p>
31
		        <div class="formTime">
32
		        <!--<div class="form-group">
33
		            <div class='input-group date' id='datetimepicker6'>
34
		                <input type='text' class="form-control" />
35
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
36
		            </div>
37
		        </div>-->
38
		        <div class="form-group">
39
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
40
		        </div>
46 41
		</div>
47 42
	</div>
43
	<div class="mb_btnbox">
44
		<input class="mb_btn mb_btnOk" type="button" value="确定">
45
		<input class="mb_btn mb_btnNo" type="button" value="取消">
46
	</div>
48 47
</div>
48

49 49
<div id="container">
50 50
	<div class="containerCon">
51 51
		<div class="contentCon clearfix conBlock">
@ -57,7 +57,7 @@
57 57
       							<span class="" id="filePicker">上传图片</span>
58 58
	        					<!--未上传图片时-->
59 59
	        					<div class="upFront">
60
		        					<p>文章封面大图</p>
60
		        					<p>文章封面大图<em class="requiredcon">*</em></p>
61 61
		        					<p>JPG/PNG格式,2M以内。</p>
62 62
		        					<span class="upbtn">上传图片</span>
63 63
	        					</div>
@ -68,7 +68,7 @@
68 68
	        			<span class="frmconmsg imgtis" style="margin-left:0"></span>
69 69
					</li>
70 70
					<li>
71
						<div class="aboutTit" id="aboutTit">标题<span class="frmconmsg"></span></div>
71
						<div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
72 72
					    <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
73 73
					</li>
74 74
					<li class="form-item">
@ -79,7 +79,7 @@
79 79
							<button class="frmcontype frmadd displayNone" id="addkeyWord">添加</button>
80 80
						</div>
81 81
						<div class="form-drop keydrop displayNone">
82
							<ul class="keydropList">
82
							<ul id="keydropList">
83 83
								
84 84
							</ul>
85 85
						</div>
@ -145,30 +145,7 @@
145 145
						<input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="" />
146 146
						<div class="form-drop displayNone">
147 147
							<ul class="expertlist" id="resouselist">
148
								<li id="4">
149
									<div class="madiaHead resouseHead"></div>
150
									<div class="madiaInfo">
151
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
152
										<p class="h1Font">李大大1</p>
153
									</div>
154
									<div class="deleteThis"></div>
155
								</li>
156
								<li id="5">
157
									<div class="madiaHead resouseHead"></div>
158
									<div class="madiaInfo">
159
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
160
										<p class="h1Font">李大大2</p>
161
									</div>
162
									<div class="deleteThis"></div>
163
								</li>
164
								<li id="6">
165
									<div class="madiaHead resouseHead"></div>
166
									<div class="madiaInfo">
167
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
168
										<p class="h1Font">李大大3</p>
169
									</div>
170
									<div class="deleteThis"></div>
171
								</li>
148
							
172 149
							</ul>
173 150
						</div>
174 151
						<div class="form-result">
@ -202,7 +179,7 @@ $(function () {
202 179
    	format: 'yyyy-mm-dd hh:ii',
203 180
    	forceParse: true,
204 181
    	autoclose: true,
205
        todayBtn: true
182
       // todayBtn: true
206 183
    });
207 184
});
208 185
//Model模态框打开关闭
@ -227,7 +204,7 @@ var uploader = WebUploader.create({
227 204
    server: '../ajax/cachedFileUpload',
228 205
    // 选择文件的按钮。可选。
229 206
    // 内部根据当前运行是创建,可能是input元素,也可能是flash.
230

207
	fileSingleSizeLimit: 2 * 1024 * 1024,
231 208
    pick : {
232 209
    	id : "#filePicker",
233 210
    	multiple: false
@ -240,7 +217,9 @@ var uploader = WebUploader.create({
240 217
    }
241 218
   
242 219
});
243

220
uploader.onError = function(code) {
221
	$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
222
};
244 223
// 当有文件添加进来的时候
245 224
uploader.on( 'fileQueued', function( file ) {
246 225
    uploader.makeThumb( file, function( error, src ) {

+ 1 - 1
articalPreview.html

@ -24,7 +24,7 @@
24 24
			<div class="leftconBox floatL">
25 25
				<div class="showDetail">
26 26
					<div class="h1Font" id="articleTitle"></div>
27
					<div class="h2Font"><span id="publishTime">2月23日 14:38</span></div>
27
					<div class="h2Font"><span id="publishTime">此处将显示文章的发布时间 </span></div>
28 28
					<div class="showBigOpen" id="articleImg" ></div>
29 29
					<!--文章内容区-->
30 30
					<div class="showMain" id="articleContent">

+ 2 - 2
articalShow.html

@ -52,7 +52,7 @@
52 52
					
53 53
					<!--点赞模块-->
54 54
					<div class="thumbBlock">
55
						<span class="thumbBtn"></span>
55
						<span class="thumbBtn thunbgo">赞</span>
56 56
					</div>
57 57
					<!--分享操作栏-->
58 58
					<div class="shareBlock clearfix">
@ -61,7 +61,7 @@
61 61
								<div class="madiaHead useHead userimg"></div>
62 62
								<div class="madiaInfo">
63 63
									<span class="h1Font ellipsisSty username"></span>
64
									<em class="authiconNew labels" title="科袖认证专家"></em>
64
									<em class="authiconNew labels" id="" title="科袖认证专家"></em>
65 65
								</div>
66 66
							</a>
67 67
						</div>

+ 28 - 26
cmp-portal/articalIssue.html

@ -5,7 +5,6 @@
5 5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6 6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7 7
<title>发布文章-科袖网</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9 8
<link href="../css/bootstrap.min.css" rel="stylesheet">
10 9
<link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
11 10
<link type="text/css" rel="stylesheet" href="../css/datetimepicker.css">
@ -18,31 +17,31 @@
18 17
	<script src="js/public/cmpHeader.js"></script>
19 18
</header>
20 19
<!--定时发布弹框-->
21
<div class="blackcover2">
22
	<div class="setTimeBlock modelContain">
23
		<span class="mb_tit">提示</span>
24
		<a class="mb_close"></a>
25
		<div class="mb_msg">
26
			<p style="margin: 10px;">请设置文章发布的时间:</p>
27
			        <div class="formTime">
28
			        <!--<div class="form-group">
29
			            <div class='input-group date' id='datetimepicker6'>
30
			                <input type='text' class="form-control" />
31
			                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
32
			            </div>
33
			        </div>-->
34
			        <div class="form-group">
35
			             <input size="16" type="text" value="" readonly class="form-control form_datetime">
36
			        </div>
37
			</div>
38
		</div>
39
		<div class="mb_btnbox">
40
			<input class="mb_btn mb_btnOk" type="button" value="确定">
41
			<input class="mb_btn mb_btnNo" type="button" value="取消">
20
<div class="blackcover2"></div>
21
<div class="setTimeBlock modelContain">
22
	<span class="mb_tit">提示</span>
23
	<a class="mb_close"></a>
24
	<div class="mb_msg">
25
		<p style="margin: 10px;">请设置文章发布的时间:</p>
26
		        <div class="formTime">
27
		        <!--<div class="form-group">
28
		            <div class='input-group date' id='datetimepicker6'>
29
		                <input type='text' class="form-control" />
30
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
31
		            </div>
32
		        </div>-->
33
		        <div class="form-group">
34
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
35
		        </div>
42 36
		</div>
43 37
	</div>
38
	<div class="mb_btnbox">
39
		<input class="mb_btn mb_btnOk" type="button" value="确定">
40
		<input class="mb_btn mb_btnNo" type="button" value="取消">
41
	</div>
44 42
</div>
45 43

44

46 45
<input type="hidden" id="hidearticleId" value="" />
47 46
<div id="container">
48 47
	<div class="containerCon">
@ -55,7 +54,7 @@
55 54
       							<span class="" id="filePicker">上传图片</span>
56 55
	        					<!--未上传图片时-->
57 56
	        					<div class="upFront">
58
		        					<p>文章封面大图</p>
57
		        					<p>文章封面大图<em class="requiredcon">*</em></p>
59 58
		        					<p>JPG/PNG格式,2M以内。</p>
60 59
		        					<span class="upbtn">上传图片</span>
61 60
	        					</div>
@ -66,7 +65,7 @@
66 65
	        			<span class="frmconmsg imgtis" style="margin-left:0"></span>
67 66
					</li>
68 67
					<li>
69
						<div class="aboutTit" id="aboutTit">标题<span class="frmconmsg"></span></div>
68
						<div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
70 69
					    <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
71 70
					</li>
72 71
					<li class="form-item">
@ -178,7 +177,7 @@ $(function () {
178 177
    	format: 'yyyy-mm-dd hh:ii',
179 178
    	forceParse: true,
180 179
    	autoclose: true,
181
        todayBtn: true
180
       // todayBtn: true
182 181
    });
183 182
    function getNowFormatDate() {
184 183
	    var date = new Date();
@ -221,6 +220,7 @@ var uploader = WebUploader.create({
221 220
    auto: true,
222 221
    swf: '../js/webuploader/Uploader.swf',
223 222
    server: '../ajax/cachedFileUpload',
223
    fileSingleSizeLimit: 2 * 1024 * 1024,
224 224
    pick : {
225 225
    	id : "#filePicker",
226 226
    	multiple: false
@ -232,7 +232,9 @@ var uploader = WebUploader.create({
232 232
    }
233 233
   
234 234
});
235

235
uploader.onError = function(code) {
236
	$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
237
};
236 238
// 当有文件添加进来的时候
237 239
uploader.on( 'fileQueued', function( file ) {
238 240
    uploader.makeThumb( file, function( error, src ) {

+ 30 - 51
cmp-portal/articalModify.html

@ -21,30 +21,30 @@
21 21
	<script src="js/public/cmpHeader.js"></script>
22 22
</header>
23 23
<!--定时发布弹框-->
24
<div class="blackcover2">
25
	<div class="setTimeBlock modelContain">
26
		<span class="mb_tit">提示</span>
27
		<a class="mb_close"></a>
28
		<div class="mb_msg">
29
			<p style="margin: 10px;">请设置文章发布的时间:</p>
30
			        <div class="formTime">
31
			        <!--<div class="form-group">
32
			            <div class='input-group date' id='datetimepicker6'>
33
			                <input type='text' class="form-control" />
34
			                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
35
			            </div>
36
			        </div>-->
37
			        <div class="form-group">
38
			             <input size="16" type="text" value="" readonly class="form-control form_datetime">
39
			        </div>
40
			</div>
41
		</div>
42
		<div class="mb_btnbox">
43
			<input class="mb_btn mb_btnOk" type="button" value="确定">
44
			<input class="mb_btn mb_btnNo" type="button" value="取消">
24
<div class="blackcover2"></div>
25
<div class="setTimeBlock modelContain">
26
	<span class="mb_tit">提示</span>
27
	<a class="mb_close"></a>
28
	<div class="mb_msg">
29
		<p style="margin: 10px;">请设置文章发布的时间:</p>
30
		        <div class="formTime">
31
		        <!--<div class="form-group">
32
		            <div class='input-group date' id='datetimepicker6'>
33
		                <input type='text' class="form-control" />
34
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
35
		            </div>
36
		        </div>-->
37
		        <div class="form-group">
38
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
39
		        </div>
45 40
		</div>
46 41
	</div>
42
	<div class="mb_btnbox">
43
		<input class="mb_btn mb_btnOk" type="button" value="确定">
44
		<input class="mb_btn mb_btnNo" type="button" value="取消">
45
	</div>
47 46
</div>
47

48 48
<div id="container">
49 49
	<div class="containerCon">
50 50
		<div class="contentCon clearfix conBlock" style="padding-top:20px">
@ -56,7 +56,7 @@
56 56
       							<span class="" id="filePicker">上传图片</span>
57 57
	        					<!--未上传图片时-->
58 58
	        					<div class="upFront">
59
		        					<p>文章封面大图</p>
59
		        					<p>文章封面大图<em class="requiredcon">*</em></p>
60 60
		        					<p>JPG/PNG格式,2M以内。</p>
61 61
		        					<span class="upbtn">上传图片</span>
62 62
	        					</div>
@ -67,7 +67,7 @@
67 67
	        			<span class="frmconmsg imgtis" style="margin-left:0"></span>
68 68
					</li>
69 69
					<li>
70
						<div class="aboutTit" id="aboutTit">标题<span class="frmconmsg"></span></div>
70
						<div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
71 71
					    <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
72 72
					</li>
73 73
					<li class="form-item">
@ -78,7 +78,7 @@
78 78
							<button class="frmcontype frmadd displayNone" id="addkeyWord">添加</button>
79 79
						</div>
80 80
						<div class="form-drop keydrop displayNone">
81
							<ul class="keydropList">
81
							<ul id="keydropList">
82 82
								
83 83
							</ul>
84 84
						</div>
@ -144,30 +144,7 @@
144 144
						<input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="" />
145 145
						<div class="form-drop displayNone">
146 146
							<ul class="expertlist" id="resouselist">
147
								<li id="4">
148
									<div class="madiaHead resouseHead"></div>
149
									<div class="madiaInfo">
150
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
151
										<p class="h1Font">李大大1</p>
152
									</div>
153
									<div class="deleteThis"></div>
154
								</li>
155
								<li id="5">
156
									<div class="madiaHead resouseHead"></div>
157
									<div class="madiaInfo">
158
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
159
										<p class="h1Font">李大大2</p>
160
									</div>
161
									<div class="deleteThis"></div>
162
								</li>
163
								<li id="6">
164
									<div class="madiaHead resouseHead"></div>
165
									<div class="madiaInfo">
166
										<p class="h2Font ellipsisSty">资源名称资源名称资源名称资源名称资源名称</p>
167
										<p class="h1Font">李大大3</p>
168
									</div>
169
									<div class="deleteThis"></div>
170
								</li>
147
								
171 148
							</ul>
172 149
						</div>
173 150
						<div class="form-result">
@ -201,7 +178,7 @@ $(function () {
201 178
    	format: 'yyyy-mm-dd hh:ii',
202 179
    	forceParse: true,
203 180
    	autoclose: true,
204
        todayBtn: true
181
        //todayBtn: true
205 182
    });
206 183
});
207 184
//Model模态框打开关闭
@ -226,7 +203,7 @@ var uploader = WebUploader.create({
226 203
    server: '../ajax/cachedFileUpload',
227 204
    // 选择文件的按钮。可选。
228 205
    // 内部根据当前运行是创建,可能是input元素,也可能是flash.
229

206
	fileSingleSizeLimit: 2 * 1024 * 1024,
230 207
    pick : {
231 208
    	id : "#filePicker",
232 209
    	multiple: false
@ -239,7 +216,9 @@ var uploader = WebUploader.create({
239 216
    }
240 217
   
241 218
});
242

219
uploader.onError = function(code) {
220
	$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
221
};
243 222
// 当有文件添加进来的时候
244 223
uploader.on( 'fileQueued', function( file ) {
245 224
    uploader.makeThumb( file, function( error, src ) {

+ 2 - 2
cmp-portal/cmp-UnstaffList.html

@ -25,13 +25,13 @@
25 25
	        	<ul>
26 26
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
27 27
	        		<li><a href="cmp-needList.html">需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li><a href="cmp-articalList.html">文章</a></li>
30 30
	        		<li class="nowLi"><a>员工</a></li>
31 31
	        	</ul>
32 32
	        </div>
33 33
		    <div class="workcon workconG">
34
			    <div class="workcontit">企业员工
34
			    <div class="workcontit">
35 35
			    	<a href="cmp-staffList.html"class="worksamlltit">员工管理</a>
36 36
					<a class="worksamlltit worksamlltitnow cmpBorder cmpColor">员工认证</a>
37 37
			    </div>	

+ 10 - 4
cmp-portal/cmp-articalList.html

@ -25,7 +25,7 @@
25 25
	        	<ul>
26 26
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
27 27
	        		<li><a href="cmp-needList.html">需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li class="nowLi"><a>文章</a></li>
30 30
	        		<li><a href="cmp-staffList.html">员工</a></li>
31 31
	        	</ul>
@ -47,9 +47,15 @@
47 47
							<ul id="articalList">
48 48
								
49 49
							</ul>
50
							<div id="noartical" class="displayNone" style="text-align: center;padding:50px 0;">
51
								暂无内容
52
							</div>
50
							<!--无搜索结果-->
51
							<div class="nodatabox displayNone" id="noartical">
52
						        <div class="nodata">
53
						            <div class="picbox picNull"></div>
54
						            <div class="txtbox">
55
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
56
						            </div>
57
						        </div>
58
						    </div>
53 59
							<div class="tcdPageCode"></div>
54 60
						</div>
55 61
					</div>

+ 1 - 1
cmp-portal/cmp-needList.html

@ -25,7 +25,7 @@
25 25
	        	<ul>
26 26
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
27 27
	        		<li class="nowLi"><a>需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li><a href="cmp-articalList.html">文章</a></li>
30 30
	        		<li><a href="cmp-staffList.html">员工</a></li>
31 31
	        	</ul>

+ 1 - 1
cmp-portal/cmp-needShow.html

@ -25,7 +25,7 @@
25 25
	        	<ul>
26 26
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
27 27
	        		<li class="nowLi"><a>需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li><a href="cmp-articalList.html">文章</a></li>
30 30
	        		<li><a href="cmp-staffList.html">员工</a></li>
31 31
	        	</ul>

+ 2 - 2
cmp-portal/cmp-staffList.html

@ -25,13 +25,13 @@
25 25
	        	<ul>
26 26
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
27 27
	        		<li><a href="cmp-needList.html">需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li><a href="cmp-articalList.html">文章</a></li>
30 30
	        		<li class="nowLi"><a>员工</a></li>
31 31
	        	</ul>
32 32
	        </div>
33 33
		    <div class="workcon workconG">
34
			    <div class="workcontit" id="costf">企业员工
34
			    <div class="workcontit" id="costf">
35 35
			    	<a class="worksamlltit worksamlltitnow cmpBorder cmpColor">员工管理</a>
36 36
					<a href="cmp-UnstaffList.html"class="worksamlltit">员工认证</a>
37 37
			    </div>

+ 1 - 1
cmp-portal/cmp-updateinfo.html

@ -32,7 +32,7 @@
32 32
	        	<ul>
33 33
	        		<li class="nowLi"><a>工作台</a></li>
34 34
	        		<li><a href="cmp-needList.html">需求</a></li>
35
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
35
	        		<li><a href="resourceList.html">资源</a></li>
36 36
	        		<li><a href="cmp-articalList.html">文章</a></li>
37 37
	        		<li><a href="cmp-staffList.html">员工</a></li>
38 38
	        	</ul>

+ 1 - 1
cmp-portal/cmp-workspaces.html

@ -25,7 +25,7 @@
25 25
	        	<ul>
26 26
	        		<li class="nowLi"><a>工作台</a></li>
27 27
	        		<li><a href="cmp-needList.html">需求</a></li>
28
	        		<!--<li><a href="resourceList.html">资源</a></li>-->
28
	        		<li><a href="resourceList.html">资源</a></li>
29 29
	        		<li><a href="cmp-articalList.html">文章</a></li>
30 30
	        		<li><a href="cmp-staffList.html">员工</a></li>
31 31
	        	</ul>

+ 20 - 69
cmp-portal/css/cmpindex.css

@ -4,12 +4,12 @@ body,html{background: #f4f6f8;}
4 4
.con-center{padding:20px 10px 40px; margin:10px auto;}
5 5
6 6
/*左侧菜单*/
7
.workmenu{text-align: center; float:left; width:12%; height:300px; background: #fff;border-radius: 6px;overflow: hidden;}
7
.workmenu{text-align: center; float:left; width:12%;background: #fff;overflow: hidden;}
8 8
a.workmenutit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px; border-bottom:1px #28b8fa solid;cursor:pointer; display: block;color:#313131; }
9 9
a.worksubmenu{width:100%; height:40px; margin:10px 0;font-size:15px;line-height:40px; color:#313131;display: block;}
10 10
a.worksubmenu.cmpBg{color: #FFFFFF;}
11 11
/*右侧内容*/
12
.workcon{float:right; margin-left:10px; width:87%; background: #fff;border-radius:6px;overflow: hidden;}
12
.workcon{float:right; margin-left:10px; width:87%; background: #fff;overflow: hidden;}
13 13
.worksubcon{/* padding:20px 16px;*/}
14 14
.workconleft{width:70%;}
15 15
.workcontit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px;color: #606060; border-bottom:1px solid #e7e7e7;}
@ -392,67 +392,13 @@ ul.tagList>li .h2Font{color:#666}
392 392
.form-item.otherShow .aboutRes .madiaHead{width:118px;height: 80px;}
393 393
.form-item.otherShow .aboutRes .madiaInfo{padding-left:130px;margin:4px 0;}
394 394
.form-item.otherShow .aboutRes .ellipsisSty-2{height:48px;}
395
/*点赞模块*/
396
.thumbBlock{text-align: center;margin:30px 0;}
397
.thumbBlock .thumbBtn{display:inline-block;position:relative;padding:10px 24px;padding-left:44px;font-size:16px;color:#fff;background:#28b8fa;border-radius:30px;
398
      box-shadow: 1px 2px 13px 0px rgba(40, 184,250, 0.6);
399
    -webkit-box-shadow: 1px 2px 13px 0px rgba(40, 184,250, 0.6);cursor: pointer;}
400
.thumbBlock .thumbBtn:before{position:absolute;content:url(../../images/g_article_icon_dianzan_nor.png);top:50%;left:24px;margin-top:-9px;}
401
.thumbBlock .thumbBtn:hover{background:#10abf3;}
402
.thumbBlock .thumbBtn.thumbedBtn{background: #e0e0e0;box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.2);
403
    -webkit-box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.2);}
404
.thumbBlock .thumbBtn.thumbedBtn:hover{background: #e0e0e0;}
405
/*分享操作栏*/
406
.shareBlock{background:rgba(60,62,81,.5);margin:0 -30px;padding:26px 30px;}
407
.shareInfo .madiaInfo{margin-top:12px;}
408
.shareInfo .madiaInfo .h1Font{display:inline-block;max-width: 200px;padding-right:14px;font-size: 16px;color:#fff;}
409
.shareInfo .madiaInfo .authiconNew{top:-8px;}
410
.shareBlock>ul.shareWays{width:50%;cursor: pointer;text-align:right;}
411
.shareBlock>ul.shareWays>li{float:left;padding:16px 0 10px;width:19%;color:#fff;}
412
.shareBlock>ul.shareWays>li .message{position:relative;top:5px;left:6px;}
413
/*白色icon*/
414
.operateicon.icon-message{background-image:url(../../images/g_article_button_liuyan_nor.png);}
415
.operateicon.icon-collect{background-image:url(../../images/g_all_icon_shoucang_nor_1.png);}
416
.operateicon.icon-wechat{width:24px;background-image:url(../../images/g_all_icon_weixin_nor_1.png);}
417
.operateicon.icon-sina{width:26px;background-image:url(../../images/g_all_icon_xinlang_nor_1.png);}
418
.operateicon.icon-qq{background-image:url(../../images/g_article_button_liuyan_nor.png);}
419
.operateicon.icon-totop{background-image:url(../../images/g_article_button_dingbu_nor.png);}
420
.operateicon.operateicon2.icon-collect{background-image:url(../images/g_all_icon_shoucang_nor_2.png);}
421
.operateicon.operateicon2.icon-wechat{width:24px;background-image:url(../images/g_all_icon_weixin_nor_2.png);}
422
.operateicon.operateicon2.icon-sina{width:26px;background-image:url(../images/g_all_icon_xinlang_nor_2.png);}
423
/*悬浮效果*/
424
.operateicon.icon-message:hover{background-image:url(../images/g_article_button_liuyan_lan_hig.png);}
425
/*.operateicon.icon-collect:hover{background-image:url(../images/g_all_icon_shoucang_hig.png);}*/
426
.operateicon.icon-collected{background-image:url(../images/g_all_icon_shoucang_hig.png);}
427
.operateicon.icon-wechat:hover{background-image:url(../../images/g_all_icon_weixin_hig.png);}
428
.operateicon.icon-sina:hover{background-image:url(../../images/g_all_icon_xinlang_hig.png);}
429
.operateicon.icon-qq:hover{background-image:url(../../images/g_article_button_liuyan_hig.png);}
430
.operateicon.icon-totop:hover{background-image:url(../images/g_article_button_dingbu_lan_hig.png);}
431
.shareWeixin{font-style: normal;position: relative;}
432
.shareWeixin .shareCode{display:none;position: absolute;bottom: 40px;left:-24px;background:rgba(0,0,0,.6);padding: 8px;width: 260px;}
433
.shareWeixin .shareCode:after{display: block;width: 0;height: 0;border:12px solid transparent;border-top-color:rgba(0,0,0,.6);position: absolute;bottom:-24px;left:22px;}
434
.shareWeixin .shareCode .shareWord {width: 126px;margin: 10px;color: #FFF;text-align: left;font-size: 14px;line-height: 20px;}
435
.shareWeixin .shareCode img{width: 80px;height: 80px;}
436
437
.ifLogin{margin:30px 0;}
438
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
439
.ifLogin .ifLoginUn>ul>li{float: right;padding:0 6px;}
440
.ifLogin .ifLoginUn a{color:#666;}
441
.ifLogin .ifLoginOn .btnModel{margin:12px 0;padding:4px 12px;width: 80px;border-radius:0;}
442
443
.commentsArea .btnCancel{height:auto;border-radius:0;color: #28b8fa;}
444
.commentsArea ul.commentList{margin-top:-20px;}
445
.commentsArea ul.commentList>li{padding:10px 0 20px;}
446
.commentsArea ul.commentList>li .h2Font{font-size: 16px;color: #666;line-height: 26px;}
447
.commentsArea ul.commentList>li .commenttime{font-size: 14px;color: #999;margin-left:18px;}
448
.commentsArea ul.commentList>li .operateSpan{margin:10px 0 0;color:#9d9ea8;font-size:14px;cursor: pointer;}
449
.commentsArea ul.commentList>li .operateSpan .callBack{display:none;position:relative;padding-left:20px;margin-right:40px;}
450
.commentsArea ul.commentList>li .operateSpan .callBack:before{position:absolute;content:url(../../images/g_article_button_huifu_nor.png);top:50%;left:0;margin-top:-8px;}
395
451 396
452 397
.rightconBox .conItem.conItemG .madiaHead{width: 120px; height: 120px;border:1px solid #E5E5E5;margin:0 auto 10px;background-position:center;background-size:cover;}
453 398
.rightconBox .conItem.conItemG .madiaHead.useHead{background-image:url(../../images/default-photo.jpg);border-radius: 50%;}
454 399
.rightconBox .conItem.conItemG .madiaHead.cmpHead{background-image:url(../../images/default-icon.jpg);}
455 400
.rightconBox .conItem.conItemG .h2Font{font-size:16px;color:#666;line-height:26px;}
401
.rightconBox .conItem.conItemG .h3Font>a{color:#333}
456 402
.rightconBox .conItem.conItemG .goSpan span{background: #28b8fa;display:inline-block;width:100px;cursor:pointer;color:#fff;font-size:16px;margin:20px 10px 0;}
457 403
.rightconBox .conItem.conItemG .attenSpan{position: relative;padding:9px 25px;padding-left:42px;}
458 404
.rightconBox .conItem.conItemG .attenSpan:before{position:absolute;content:url(../images/g_article_icon_jia_nor.png);top:50%;left:20px;margin-top:-8px;}
@ -460,7 +406,7 @@ ul.tagList>li .h2Font{color:#666}
460 406
/*文章列表*/
461 407
.itemListCon{background: #fff;}
462 408
.itemListBolck .searchAbout{position: relative;}
463
.itemListBolck .searchAbout .searchSpan{position:absolute;top:50%;margin-top:-9px;right:18px;display:inline-block;width:18px;height:18px;background: url(../images/g_article_icon_sousuo_nor.png);}
409
.itemListBolck .searchAbout .searchSpan{position:absolute;top:50%;margin-top:-9px;right:18px;display:inline-block;width:18px;height:18px;background: url(../../images/g_article_icon_sousuo_nor.png);cursor: pointer;}
464 410
.itemListBolck .frmcontype{width:100%;border-radius: 20px;padding-left:20px;background: #f5f6f8;}
465 411
.itemListBolck .topOperaBlock{padding:30px 0 10px 20px;}
466 412
.itemListBolck .issueSpanBlock{text-align: right;}
@ -486,12 +432,12 @@ ul.tagList>li .h2Font{color:#666}
486 432
487 433
/*定时发送时间选择器*/
488 434
.blackcover2{display:none;overflow-x: hidden;overflow-y:auto;position:fixed;top:0;right:0;bottom:0;left:0; background:rgba(0,0,0,.5);z-index: 1050;}
489
.modelContain{display:none;position:relative;clear:both;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
490
 		 box-shadow: 2px 4px 10px 4px #555;
491
  -webkit-box-shadow: 2px 4px 10px 4px #555;}
492
.modelContain:before,.modelContain:after{display:table;content:" "}
493
.modelContain:after{clear: both;}
494
.modelOpen{overflow: hidden;}
435
/*.modelContain{display:none;position:relative;clear:both;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
436
 		 box-shadow: 2px 4px 10px 4px #555;
437
  -webkit-box-shadow: 2px 4px 10px 4px #555;}*/
438
/*.modelContain:before,.modelContain:after{display:table;content:" "}
439
.modelContain:after{clear: both;}
440
.modelOpen{overflow: hidden;}*/
495 441
.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
496 442
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color:#28b8fa; line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
497 443
.setTimeBlock .mb_close{display: block; position: absolute; right: 20px; top: 18px; background: url(../../images/sign_icon_guanbi_nor.png) center center no-repeat; width: 20px; height: 20px; cursor: pointer;}
@ -507,15 +453,20 @@ ul.tagList>li .h2Font{color:#666}
507 453
.showDetail .showMain .showTit{position:relative;padding-left:10px;}
508 454
.showDetail .showMain .showTit:before{position:absolute;top:50%;margin-top:-10px;left:0;display:inline-block;content:"";width:4px;height:18px;background:#28b8fa;}
509 455
/*资源发布图片上传模块*/
510
.artAbout>li>dl{margin-right: -15px;}
456
.artAbout>li>dl{margin-top:-10px;margin-right: -15px;height: 200px;overflow: hidden;padding-top:10px;}
511 457
.artAbout>li>dl>dd{position:relative;float: left;width:31.2%;border: 1px solid #E5E5E5;height: 190px;margin-right: 15px;}
512
.artAbout>li>dl>dd:nth-child(2),.artAbout>li>dl>dd:nth-child(3){background:url(../images/g_resource_bg_tianjia_nor.png) center center no-repeat;}
458
.artAbout>li>dl>dd:nth-child(2),.artAbout>li>dl>dd:nth-child(3){background:url(../../images/g_resource_bg_tianjia_nor.png) center center no-repeat;}
513 459
.artAbout>li>dl>dd.uploadD{background: none;}
514 460
.artAbout>li>dl>dd .imgItem{background:#fff;display: table-cell;text-align: center;vertical-align: middle;width: 222px;height: 188px;}
515 461
.artAbout>li>dl>dd .imgItem img{vertical-align: middle;max-width:222px;max-height:188px;}
516 462
.artAbout>li>dl>dd .uploadFile .uploadblock{border: none;}
517
.artAbout>li>dl>dd .file-panel{position:absolute;top:-8px;right:-8px;text-align:center;overflow:hidden;}
518
.artAbout>li>dl>dd .file-panel .cancel{display: inline-block;width: 20px;height: 20px;cursor: pointer;background: url(../images/g_resource_button_guanbi_nor.png);background-size: cover;}
463
.artAbout>li>dl>dd .file-panel{position:absolute;top:-10px;right:-10px;text-align:center;overflow:hidden;}
464
.artAbout>li>dl>dd .file-panel .cancel{display: inline-block;width: 20px;height: 20px;cursor: pointer;background: url(../../images/g_resource_button_guanbi_nor.png);background-size: cover;}
465
.form-item .addexpertRe{margin:0 -30px;}
466
.form-item .addexpertRe ul.addexpert>li .madiaInfo{padding-right:42px;}
467
.form-item .addexpertRe ul.addexpert>li .selectNull{position:absolute; right:20px;top:50%;margin-top:-11px;width:22px; height:22px;background-image: url(../../images/c-sign-on_button_xuanze_nor.png);background-size: cover;}
468
.form-item .addexpertRe ul.addexpert>li .selectAdd{background-image: url(../../images/c-sign-on_button_xuanze_hig.png);}
469
519 470
/*资源图片展示*/
520 471
.Imagebox{width:360px;}
521 472
.Imagebox .tb-pic a{display:table-cell;text-align:center;vertical-align:middle;}

+ 10 - 12
cmp-portal/css/common.css

@ -534,6 +534,8 @@ input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color: #99
534 534
.frmtype:focus{box-shadow: none;outline:none;border:1px solid #28b8fa;}
535 535
.frmtypeW{width:98%;margin: auto;}
536 536
textarea.frmtype{height:100px;}
537
.requiredcon{font-style:none;color:red;font-size:16px;}/*必填项*/
538
.emspace{letter-spacing: 2em;}
537 539
/*只读状态input*/
538 540
input.frmtype[readonly]{background:#EFEFEF;color:#AAAAAA;}
539 541
input.frmtype[readonly]:focus{border:1px transparent solid;}
@ -563,7 +565,6 @@ button.btnModelBig:hover{
563 565
.save-block{margin:20px auto 40px;padding:6px 40px;}/*保存按钮*/
564 566
.fontLink{background:none;border:none;color:#28b8fa;}/*字体链接按钮*/
565 567
.limitNum{text-align: right;color:#AAAAAA;}/*限制字数*/
566
.requiredcon{ color:red; position:absolute;font-size:16px; top:8px; left:-10px;}/*必填项*/
567 568
/*表单消息提示*/
568 569
.frmmsg{background:url(../images/con_icon_info_warn.png) 0 center no-repeat;background-size: auto 50%;padding-left:18px;line-height:28px;color: #fd5f39;}
569 570
.frmmsg-warning{border:1px solid #fd5f39;}
@ -573,8 +574,8 @@ button.btnModelBig:hover{
573 574
.cmpBorder{border-color:#28b8fa;}
574 575

575 576
/*弹出模态框*/
576
.blackcover{display:none;overflow-x: hidden;overflow-y:auto;position:fixed;top:0;right:0;bottom:0;left:0; background:rgba(0,0,0,.6);z-index: 1000;}
577
.modelContain{display:none;position:relative;clear:both;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
577
.blackcover{display:none;overflow-x: hidden;overflow-y:auto;position:fixed;top:0;right:0;bottom:0;left:0; background:rgba(0,0,0,.6);z-index: 1004;}
578
.modelContain{display:none;position:relative;clear:both;top:20%;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
578 579
 		 box-shadow: 2px 4px 10px 4px #555;
579 580
  -webkit-box-shadow: 2px 4px 10px 4px #555;}
580 581
.modelContain:before,.modelContain:after{display:table;content:" "}
@ -607,18 +608,15 @@ button.btnModelBig:hover{
607 608

608 609
/*----------------------------分页------------------------*/
609 610

610

611 611
/***********************缺省页面*******************/
612 612
.nodatatip{width:40%;margin:100px auto;overflow:hidden;height:100px; font-size:16px; text-align:center;color:#aaa;}
613 613
.nodatabox{/*width:100%;*/height: 100%;padding:40px; margin:20px auto;text-align: center;}
614 614
.nodatabox .nodata{overflow:hidden; width:50%; margin:auto;}
615
.nodatabox .nodata li{float:left;}
616
.nodatabox .picbox{margin:30px auto;}
617
.nodatabox .picbox .defpic{display:block;margin: auto;width:160px;height:160px; background:url(../images/nodata.png) -12px -760px no-repeat;}
618
.nodatabox .txtbox { margin:86px auto;}
619
.nodatabox .currword{font-size: 18px;color: #777777;font-weight:bold;line-height:40px;}
620
.nodatabox .currtip{ font-size:14px;color: #AAAAAA;}
621
.nodatabox .keyword{font-size:20px; padding:0 6px;color:#555555;}
615
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:160px;height:160px;background-position: center;background-repeat: no-repeat;background-size:cover;}
616
.nodatabox .picbox.picNull{background-image:url(../../images/points_icon_ku_nor.png);}
617
.nodatabox .txtbox { margin:6px auto;}
618
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}
619
.nodatabox .keyword{font-size:22px; padding:0 6px;color:#555555;}
622 620
/***********************缺省页面*******************/
623 621
#container{margin-top:90px;}
624 622
.containerCon{width:1120px;padding:0 10px;position:relative; margin:auto;}
@ -645,7 +643,7 @@ footer .weixincode{background-image: url(../images/home_bg_guanzhu_nor.png);}
645 643
footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);background-size: cover;}
646 644

647 645
/*新版header*/
648
header{ position:fixed; top:0;left:0;right: 0; z-index:996;font-size:16px;line-height:32px;}
646
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
649 647
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
650 648
header .navheader.navhdown{background: rgba(256,256,256,1);border-color:#E5E5E5;box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);-webkit-box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);}
651 649
header .navheader.navhdown li a{color:#666;}

+ 14 - 5
cmp-portal/js/articalIssue.js

@ -29,7 +29,11 @@ $(function() {
29 29
			$("#keyPrompt").text("");
30 30
		},
31 31
		keyup: function() {
32
			$(".frmadd,.keydrop").removeClass("displayNone");
32
			if($(this).val()==""){
33
				$(".frmadd,.keydrop").addClass("displayNone");
34
			}else{
35
				$(".frmadd,.keydrop").removeClass("displayNone");
36
			}
33 37
			if($(this).val().length > 10) {
34 38
				$(this).val($(this).val().substr(0, 10));
35 39
			}
@ -172,7 +176,7 @@ $(function() {
172 176
						var itemlist = '';
173 177
						$("#expertlist").html("");
174 178
						for(var i = 0; i < data.data.length; i++) {
175
							var itemlist = '<li id="usid">';
179
							var itemlist = '<li id="usid" class="flexCenter">';
176 180
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
177 181
							itemlist += '<div class="madiaInfo">';
178 182
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
@ -218,7 +222,7 @@ $(function() {
218 222
						var itemlist = '';
219 223
						$("#resouselist").html("");
220 224
						for(var i = 0; i < data.data.length; i++) {
221
							var itemlist = '<li id="usid">';
225
							var itemlist = '<li id="usid" class="flexCenter">';
222 226
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
223 227
							itemlist += '<div class="madiaInfo">';
224 228
							itemlist += '<p class="h2Font ellipsisSty" id="resourceName"></p>';
@ -229,7 +233,11 @@ $(function() {
229 233
							var datalist = data.data[i];
230 234
							$itemlist.attr("data-id", datalist.resourceId);
231 235
							$itemlist.find("#resourceName").text(datalist.resourceName);
232
							$itemlist.find("#name").text(datalist.professor.name);
236
							if(datalist.resourceType==1){
237
								$itemlist.find("#name").text(datalist.professor.name);
238
							}else{
239
								$itemlist.find("#name").text(datalist.organization.name);
240
							}
233 241
							if(datalist.images.length > 0) {
234 242
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
235 243
							}
@ -263,7 +271,8 @@ $(function() {
263 271
						for(var i = 0; i < data.data.length; i++) {
264 272
							var itemlist = '<li><p class="h2Font"></p></li>';
265 273
							$itemlist = $(itemlist);
266
							$itemlist.find(".h2Font").text(datalist.caption);
274
							$("#keydropList").append($itemlist);
275
							$itemlist.find(".h2Font").text(data.data[i].caption);
267 276
						}
268 277
					} else {
269 278
						$(".keydrop").addClass("displayNone");

+ 14 - 5
cmp-portal/js/articalModify.js

@ -34,7 +34,11 @@ $(function() {
34 34
			$("#keyPrompt").text("");
35 35
		},
36 36
		keyup: function() {
37
			$(".frmadd,.keydrop").removeClass("displayNone");
37
			if($(this).val()==""){
38
				$(".frmadd,.keydrop").addClass("displayNone");
39
			}else{
40
				$(".frmadd,.keydrop").removeClass("displayNone");
41
			}
38 42
			if($(this).val().length > 10) {
39 43
				$(this).val($(this).val().substr(0, 10));
40 44
			}
@ -196,7 +200,7 @@ $(function() {
196 200
						var itemlist = '';
197 201
						$("#expertlist").html("");
198 202
						for(var i = 0; i < data.data.length; i++) {
199
							var itemlist = '<li id="usid">';
203
							var itemlist = '<li id="usid" class="flexCenter">';
200 204
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
201 205
							itemlist += '<div class="madiaInfo">';
202 206
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
@ -242,7 +246,7 @@ $(function() {
242 246
						var itemlist = '';
243 247
						$("#resouselist").html("");
244 248
						for(var i = 0; i < data.data.length; i++) {
245
							var itemlist = '<li id="usid">';
249
							var itemlist = '<li id="usid" class="flexCenter">';
246 250
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
247 251
							itemlist += '<div class="madiaInfo">';
248 252
							itemlist += '<p class="h2Font ellipsisSty" id="resourceName"></p>';
@ -253,7 +257,11 @@ $(function() {
253 257
							var datalist = data.data[i];
254 258
							$itemlist.attr("data-id", datalist.resourceId);
255 259
							$itemlist.find("#resourceName").text(datalist.resourceName);
256
							$itemlist.find("#name").text(datalist.professor.name);
260
							if(datalist.resourceType==1){
261
								$itemlist.find("#name").text(datalist.professor.name);
262
							}else{
263
								$itemlist.find("#name").text(datalist.organization.name);
264
							}
257 265
							if(datalist.images.length > 0) {
258 266
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
259 267
							}
@ -287,7 +295,8 @@ $(function() {
287 295
						for(var i = 0; i < data.data.length; i++) {
288 296
							var itemlist = '<li><p class="h2Font"></p></li>';
289 297
							$itemlist = $(itemlist);
290
							$itemlist.find(".h2Font").text(datalist.caption);
298
							$("#keydropList").append($itemlist);
299
							$itemlist.find(".h2Font").text(data.data[i].caption);
291 300
						}
292 301
					} else {
293 302
						$(".keydrop").addClass("displayNone");

+ 7 - 6
cmp-portal/js/cmp-articalList.js

@ -1,7 +1,7 @@
1 1
/*文章个人列表*/
2 2
var orgId = $.cookie("orgId");
3 3
$(function() {
4
	
4
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
5 5
	var  falseno = false;
6 6
	articalList(10, 1, true, 1);
7 7
	$("#articleSearch").on("keyup", function() {
@ -88,22 +88,23 @@ function articalList(pageSize, pageNo, isbind, num) {
88 88
					var datalist = data.data.data[i];
89 89
					$itemlist.attr("data-id", datalist.articleId);
90 90
					$itemlist.find("#arttitle").text(datalist.articleTitle);
91
					$itemlist.find("#articleAgree").text("点赞" + datalist.articleAgree);
92
					$itemlist.find("#pageViews").text("阅读量" + datalist.pageViews);
91
					$itemlist.find("#articleAgree").text("点赞 " + datalist.articleAgree);
92
					$itemlist.find("#pageViews").text("阅读量 " + datalist.pageViews);
93 93
					commentnum(datalist.articleId, $itemlist) //评论数
94 94
					if(datalist.articleImg) {
95 95
						$itemlist.find("#artimg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");");
96 96
					}
97 97
					if(datalist.status == 1) {//发布
98
						$itemlist.find(".time").text(Time(datalist.publishTime));
98
						$itemlist.find(".time").text("发布于 " + Time(datalist.publishTime));
99 99
						$itemlist.find(".newurl").attr("href", "../articalShow.html?articleId=" + datalist.articleId);
100 100
					}
101 101
					if(datalist.status == 0){//草稿
102
						$itemlist.find(".time").text(Time(datalist.modifyTime));
102
						$itemlist.find(".time").text("修改于 "+ Time(datalist.modifyTime));
103 103
						$itemlist.find(".newurl").attr("href", "articalModify.html?articleId=" + datalist.articleId);
104 104
						$itemlist.find(".editThis").attr("href", "articalModify.html?articleId=" + datalist.articleId);
105 105
					}
106 106
					if(datalist.status == 2){//定时发布
107
						$itemlist.find(".time").text("修改于 "+ Time(datalist.modifyTime));
107 108
						$itemlist.find("#dsfbtime").text("草稿 | 将于" +Time(datalist.publishTime)+ "定时发布");
108 109
						$itemlist.find(".editThis,.newurl").on("click",function(){
109 110
							var newarticleId = $(this).parents(".newbox").attr("data-id");
@ -167,7 +168,7 @@ function articalList(pageSize, pageNo, isbind, num) {
167 168
			},
168 169
			"success": function(data) {
169 170
				if(data.success) {
170
					$itemlist.find("#comment").text("评论" + data.data);
171
					$itemlist.find("#comment").text("评论 " + data.data);
171 172
				}
172 173
			},
173 174
			"error": function() {

+ 3 - 3
cmp-portal/js/companybrowinfor.js

@ -242,7 +242,7 @@ $(document).ready(function() {
242 242
	companyUser();
243 243
	/*企业文章*/
244 244
	$.ajax({
245
		url: "/ajax/article/qaOrg",
245
		url: "/ajax/article/qaOrgPublish",
246 246
		dataType: 'json', //数据格式类型
247 247
		type: 'GET', //http请求类型
248 248
		data: {
@ -262,7 +262,7 @@ $(document).ready(function() {
262 262
						add += '</a></li>';
263 263
						$add = $(add);
264 264
						$("#reachArticle").append($add);
265
						$add.find('.tagsBox span').text(data.data[i].industry); //data.data[i].subject
265
						$add.find('.tagsBox span').text(data.data[i].subject); //data.data[i].subject
266 266
						if(data.data[i].articleImg) {
267 267
							$add.find(".art_img").attr("style", "background: url(/data/article/" + data.data[i].articleImg + ") center center no-repeat;background-size:cover;");
268 268
						}
@ -284,4 +284,4 @@ $(document).ready(function() {
284 284
		console.log(dataId)
285 285
		location.href="information-brow.html?professorId="+dataId;
286 286
	})
287
})
287
}) 

+ 596 - 0
cmp-portal/js/resourceIssue.js

@ -0,0 +1,596 @@
1
$(document).ready(function() {
2
	var resourceId = GetQueryString("resourceId");
3
	if(resourceId) {
4
		$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
5
		getRecourceMe();
6
	}
7
	var id = $.cookie('orgId');
8
	var temp = [];
9
	var array = [];
10
	var oProfessor=[];
11
	ue = UE.getEditor('editor', {});
12
	/*获取资源信息*/
13
	function getRecourceMe() {
14
		$.ajax({
15
			"url": "/ajax/resource/queryOne",
16
			"type": "GET",
17
			"success": function(data) {
18
				console.log(data);
19
				if(data.success) {
20
					resourceHtml(data.data);
21
				}
22
			},
23
			"data": {
24
				"resourceId": resourceId
25
			},
26
			dataType: "json",
27
			'error': function() {
28
				$.MsgBox.Alert('提示', '服务器连接超时!');
29
			}
30
		});
31
	}
32
	/*处理资源html代码*/
33
	function resourceHtml($da) {
34
		$("#resourceName").val($da.resourceName); //名字
35
		$("#application").val($da.supportedServices); //应用用途
36
		if($da.spec) { //厂商型号
37
			$("#modelNumber").val($da.spec);
38
		}
39
		if($da.parameter) { //性能参数
40
			$("#performancePa").val($da.parameter);
41
		}
42
		if($da.cooperationNotes) { //合作备注
43
			$("#remarkContent").val($da.cooperationNotes);
44
		}
45
		if($da.subject) {
46
			var oSub = $da.subject.split(",");
47
			var oSt = "";
48
			for(var i = 0; i < oSub.length; i++) {
49
				oSt += '<li><p class="h2Font">' + oSub[i] + '</p><div class="closeThis"></div></li>'
50
			}
51
			$("#keywordList").html(oSt);
52
		} else {
53
			$("#keywordList").html("");
54
		}
55
		if($da.descp) { //编辑器
56
			ue.ready(function() {
57
				ue.setContent($da.descp);
58
			});
59

60
		}
61
		if($da.images.length) {
62
			var arr = [];
63
			for(var i = 0; i < $da.images.length; i++) {
64
				var oString = '<dd>' +
65
					'<div class="imgItem">' +
66
					'<img src="' + "/data/resource/" + $da.images[i].imageSrc + '"/>' +
67
					'</div>' +
68
					'<div class="file-panel">' +
69
					'<span class="cancel" flag=1></span>' +
70
					'</div>' +
71
					'</dd>'
72
				arr[i] = oString;
73
				array[i] = $da.images[i].imageId;
74
			}
75
			$("#fileList dd").eq(2).remove();
76
			if($da.images.length == 1) {
77
				$("#fileList").prepend(arr[0]);
78
			} else if($da.images.length == 2) {
79
				$("#fileList dd").eq(1).remove();
80
				$("#fileList").prepend(arr[1]);
81
				$("#fileList").prepend(arr[0]);
82
			} else if($da.images.length == 3) {
83
				$("#fileList dd").eq(1).remove();
84
				$("#fileList").prepend(arr[2]);
85
				$("#fileList").prepend(arr[1]);
86
				$("#fileList").prepend(arr[0]);
87
			}
88

89
		}
90
	}
91
	var uploader = WebUploader.create({
92
		auto: true,
93
		fileNumLimit: 3,
94
		swf: '../js/webuploader/Uploader.swf',
95
		server: '../ajax/cachedFileUpload',
96
		fileSingleSizeLimit: 2 * 1024 * 1024,
97
		pick: {
98
			id: "#filePicker",
99
			multiple: false
100
		},
101
		accept: {
102
			title: 'Images',
103
			extensions: 'jpg,jpeg,png',
104
			mimeTypes: 'image/jpg,image/png'
105
		}
106

107
	});
108

109
	// 当有文件添加进来的时候
110
	uploader.on('fileQueued', function(file) {
111
		fileId = file.id;
112
		var $len = $("#fileList").find("img").length;
113
		if($len == 0 || $len == 1) {
114
			var oRemove = $("#fileList").find("dd");
115
			oRemove.eq(oRemove.length - 1).remove();
116
		}
117
		var $li = $(
118
				'<dd>' +
119
				'<div class="imgItem" id="' + file.id + '">' +
120
				'<img />' +
121
				'</div>' +
122
				//'<div class="info">' + file.name + '</div>' +
123
				'</dd>'
124
			),
125
			$btns = $('<div class="file-panel">' +
126
				'<span class="cancel"></span>' +
127
				'</div>').appendTo($li),
128
			$img = $li.find('img');
129
		var $list = $("#fileList");
130
		if($len == 1) {
131
			$list.find("dd").eq(0).after($li)
132
		} else if($len == 2) {
133
			$list.find("dd").eq(1).after($li)
134
		} else {
135
			$list.prepend($li);
136
		}
137

138
		// 创建缩略图
139
		// 如果为非图片文件,可以不用调用此方法。
140
		// thumbnailWidth x thumbnailHeight 为 100 x 100
141
		uploader.makeThumb(file, function(error, src) {
142
			if(error) {
143
				$img.replaceWith('<span>不能预览</span>');
144
				return;
145
			}
146
			$img.attr('src', src);
147
		}, 1, 1);
148
		/*$li.on('mouseenter', function() {
149
			$btns.stop().animate({
150
				height: 30
151
			});
152
		});
153

154
		$li.on('mouseleave', function() {
155
			$btns.stop().animate({
156
				height: 0
157
			});
158
		});*/
159

160
	});
161
	uploader.onError = function(code) {
162
		console.log(code)
163
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
164
	};
165
	uploader.on('uploadSuccess', function(file, data) {
166
		uploader.removeFile(fileId);
167
		var cacheImageKey = temp.push(data.data[0].cacheKey);
168
	});
169
	/*删除图片*/
170
	$("#fileList").on("click", ".cancel", function() {
171
		var flag = $(this).attr("flag");
172
		var oNum = $(this).parents("dd").index();
173
		if(flag == 1) {
174
			array.splice(oNum, 1);
175
		} else {
176
			temp.splice(oNum, 1);
177
		}
178
		$(this).parent().parent().remove();
179

180
		var $len = $("#fileList").find("img").length;
181
		if($len != 2) {
182
			$("#fileList").append("<dd></dd>")
183
		}
184

185
	});
186
	/*资源名称*/
187
	$("#resourceName").bind({
188
		focus: function() {
189
			$("#resourceNamePrompt").show();
190
		},
191
		blur: function() {
192
			$("#resourceNamePrompt").hide();
193
		},
194
		keyup: function() {
195
			if($(this).val().length > 30) {
196
				$(this).val($(this).val().substr(0, 30));
197
			}
198
		}
199
	})
200
	/*关键词*/
201
	$("#keywordName").bind({
202
		focus: function() {
203
			$("#keywordPrompt").show().text('最多可添加5个关键词、每个关键词最多10个字');
204
			$("#keyList").show();
205
		},
206
		blur: function() {
207
			$("#keywordPrompt").hide();
208
			setTimeout(function() {
209
				$("#keyList").show();
210
			}, 200)
211
		},
212
		keyup: function() {
213
			if($(this).val().length > 10) {
214
				$(this).val($(this).val().substr(0, 10));
215
			} else if(0 < $(this).val().length < 10) {
216
				$.ajax({
217
					"url": "/ajax/dataDict/qaHotKey",
218
					"type": "GET",
219
					"success": function(data) {
220
						console.log(data);
221
						if(data.success) {
222
							if(data.data.length==0) {
223
								$("#keyList ul").html("");
224
							} else {
225
								var oSr = "";
226
								for(var i = 0; i < data.data.length; i++) {
227
									oSr += '<li><p class="h2Font">' + data.data[i].caption + '</p></li>'
228
								}
229
								$("#keyList ul").html(oSr);
230
							}
231
						}
232
					},
233
					"data": {
234
						"key": $(this).val()
235
					},
236
					dataType: "json",
237
					'error': function() {
238
						$.MsgBox.Alert('提示', '服务器连接超时!');
239
					}
240
				});
241
			}
242
		}
243
	})
244
	$("#keyList ul").on("click","li",function(){
245
		 keyWord($(this).find("p").text());
246
		 $("#keyList ul").html("");
247
	})
248
	/*添加关键词*/
249
	$("#addKeyword").click(function() {
250
		 keyWord($("#keywordName").val());
251
	})
252
	function keyWord(atl) {
253
		var oKeywordName = atl;
254
		var keywordListLength = $("#keywordList").find("li");
255
		if(oKeywordName.length == 0) {
256
			$("#keywordPrompt").text('关键词输入不能为空');
257
			return;
258
		}
259
		for(var i = 0; i < keywordListLength.length; i++) {
260
			if(oKeywordName == keywordListLength.find("p").eq(i).text()) {
261
				$("#keywordPrompt").text('该关键词已存在');
262
				return;
263
			}
264
		}
265
		var oStr = '<li><p class="h2Font">' + oKeywordName + '</p><div class="closeThis"></div></li>'
266
		$("#keywordList").append(oStr);
267
		$("#keywordName").val("");
268
		if((keywordListLength.length + 1) == 5) {
269
			$("#keywordHide").hide();
270
		}
271
	}
272
	/*删除关键词*/
273
	$("#keywordList").on("click", ".closeThis", function() {
274
		$(this).parent().remove();
275
		var keywordListLength = $("#keywordList").find("li");
276
		if(keywordListLength.length < 5) {
277
			$("#keywordHide").show();
278
		}
279
	});
280
	/*应用用途*/
281
	$("#application").bind({
282
		focus: function() {
283
			$("#applicationPrompt").show();
284
		},
285
		blur: function() {
286
			$("#applicationPrompt").hide();
287
		},
288
		keyup: function() {
289
			if($(this).val().length > 50) {
290
				$(this).val($(this).val().substr(0, 50));
291
			}
292
		}
293

294
	})
295
	/*厂商型号*/
296
	$("#modelNumber").bind({
297
		focus: function() {
298
			$("#model").show();
299
		},
300
		blur: function() {
301
			$("#model").hide();
302
		},
303
		keyup: function() {
304
			if($(this).val().length > 50) {
305
				$(this).val($(this).val().substr(0, 50));
306
			}
307
		}
308

309
	});
310

311
	function para(sel1, sel2, sel3) {
312
		$(sel1).bind({
313
			focus: function() {
314
				$(sel2).show();
315
			},
316
			blur: function() {
317
				$(sel2).hide();
318
			},
319
			keyup: function(e) {
320
				if($(this).val().length > 200) {
321
					$(this).val($(this).val().substring(0, 200));
322
					e.preventDefault();
323
				}
324
				setTimeout(function() {
325
					$(sel3).text($(sel1).val().length);
326
				}, 1);
327
			}
328

329
		});
330
	}
331
	/*性能参数*/
332
	para("#performancePa", "#performance", "#entry1");
333
	/*合作备注*/
334
	para('#remarkContent', '#remark', '#entry2');
335
	/*发布*/
336
	$(".goFabu").click(function() {
337
		var oYes = term();
338
		if(oYes == 0) {
339
			return;
340
		}
341
		$.MsgBox.Confirm("提示", "确认发布该资源?", ajsPost);
342
	})
343
	/*预览*/
344
	$("#oPreview").click(function() {
345
		var oYes = term();
346
		if(oYes == 0) {
347
			return;
348
		}
349
		ajsPost("/ajax/resource/orgDraft", 1);
350
	})
351
	/*存草稿*/
352
	$("#oDraft").click(function() {
353
		var oYes = term();
354
		if(oYes == 0) {
355
			return;
356
		}
357
		ajsPost("/ajax/resource/orgDraft", 2);
358
	})
359
	/*删除*/
360
	$("#operateBlocko").on("click", ".deleteResource", function() {
361
		$.MsgBox.Confirm("提示", "确认删除该资源?", deleResource);
362
	})
363
	/*删除函数*/
364
	function deleResource() {
365
		$.ajax({
366
			"url": "/ajax/resource/delete",
367
			"type": "POST",
368
			"success": function(data) {
369
				console.log(data)
370
				if(data.success) {
371
					location.href = "resourceList.html"
372
				}
373
			},
374
			"data": {
375
				"resourceId": resourceId
376
			},
377
			"beforeSend": function() { /*console.log(this.data)*/ },
378
			"contentType": "application/x-www-form-urlencoded",
379
			dataType: "json"
380
		});
381
	}
382
	/*条件是否匹配*/
383
	function term() {
384
		var $len = $("#fileList").find("img").length;
385
		var reName = $("#resourceName").val();
386
		var oIndustry = $("#application").val();
387
		var oLen=$("#expertli").find(".selectAdd").length
388
		if($len == 0) {
389
			$.MsgBox.Alert('提示', '请上传资源图片。');
390
			return 0;
391
		}
392
		if(reName == "") {
393
			$.MsgBox.Alert('提示', '请输入资源名称。');
394
			return 0;
395
		}
396
		if(oIndustry == "") {
397
			$.MsgBox.Alert('提示', '请输入应用用途。');
398
			return 0;
399
		}
400
		if(oLen==0) {
401
			$.MsgBox.Alert('提示', '至少选择一个负责人');
402
			return 0;
403
		}
404
	}
405
	/*发布函数*/
406
	function ajsPost(pa1, pa2) {
407
		var oUrl = "/ajax/resource/orgSave";
408
		if(pa1) {
409
			oUrl = pa1
410
		}
411
		var $data = {};
412
		if(resourceId) {
413
			$data.resourceId = resourceId;
414
		}
415
		$data.orgId = id;
416
		$data.resourceName = $("#resourceName").val(); //资源名字
417
		$data.cooperationNotes = $("#remarkContent").val(); //合作备注
418
		$data.subject = captiureSubInd("keywordList p");
419
		console.log($data.subject);
420
		$data.supportedServices = $("#application").val();
421
		$data.spec = $("#modelNumber").val();
422
		$data.parameter = $("#performancePa").val();
423
		$data.descp = ue.getContent();
424
		$data.fns = temp;
425
		$data.imageIds = array;
426
		$data.professorIds=oProfessor;
427
		//$data.imageIds:资源图片ID NULL 字符串数组
428
		console.log(temp);
429
		$.ajax({
430
			"url": oUrl,
431
			"type": "POST",
432
			"success": function(data) {
433
				console.log(data)
434
				if(data.success) {
435
					if(pa2 == 1) {
436
						resourceId = data.data;
437
						$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
438
						window.open("../resourcePreview.html?resourceId=" + data.data);
439
						//弹出预览
440
					} else if(pa2 == 2) {
441
						$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
442
						resourceId = data.data;
443
						$.MsgBox.Alert('提示', '资源已保存草稿。');
444
						$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
445
					} else {
446
						$.MsgBox.Alert('提示', '资源发布成功!');
447
						$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
448
						location.href = "resourceList.html"
449
					}
450

451
				}
452
			},
453
			"data": $data,
454
			"beforeSend": function() { /*console.log(this.data)*/ },
455
			"contentType": "application/x-www-form-urlencoded",
456
			"traditional": true,
457
			dataType: "json"
458
		});
459
	}
460

461
	function captiureSubInd(subIndu) {
462
		var industrys = $("#" + subIndu + "");
463
		var industryAll = "";
464
		if(industrys.size() > 0) {
465
			for(var i = 0; i < industrys.size(); i++) {
466
				industryAll += industrys[i].innerText;
467
				industryAll += ',';
468
			};
469
			industryAll = industryAll.substring(0, industryAll.length - 1);
470
		}
471
		return industryAll;
472
	}
473
	function UnauthorizedUser() {
474
		$.ajax({
475
			url: "/ajax/professor/qaOrgAuth",
476
			type: "GET",
477
			timeout: 10000,
478
			dataType: "json",
479
			async:"false",
480
			data: {
481
				"orgId": id,
482
				"orgAuth": 1
483
			},
484
			success: function(data, textState) {
485
				if(data.success) {
486
					console.log(data);
487
					unauthUser(data.data);
488
				}
489
			},
490
			error: function(XMLHttpRequest, textStats, errorThrown) {
491
				$.MsgBox.Alert('提示', '服务器请求失败')
492
			}
493
		})
494
	}
495
	UnauthorizedUser();
496
	function unauthUser($res) {
497
		if(resourceId) {
498
		selUse();
499
	}
500
	var osting=""
501
	for(var i = 0; i < $res.length; i++) {
502
		var img;
503
		var styC="";
504
		var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
505
		var oTitle="";
506
		if(!resourceId) {
507
				if(i<5) {
508
				styC="selectAdd";
509
				oProfessor.push($res[i].id);
510
			}
511
		}
512
		
513
		if($res[i].title) {
514
			oTitle=$res[i].title;
515
		}else{
516
			if($res[i].office) {
517
				oTitle=$res[i].office;
518
			}
519
		}
520
		if($res[i].hasHeadImage) {
521
				img = "/images/head/" + $res[i].id + "_l.jpg";
522
			} else {
523
				img = "../images/default-photo.jpg"
524
			}
525
		var oSt = '<li class="flexCenter" style="cursor:pointer;" id="'+$res[i].id+'">'
526
		oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url('+img+');"></div>'
527
		oSt += '<div class = "madiaInfo">'
528
		oSt += '<p class = "ellipsisSty">'
529
		oSt += '<span class = "h1Font" id="name">'+$res[i].name+'</span><em class="authicon '+oClass.sty+'" title="'+oClass.title+'"></em >'
530
		oSt += '</p>'
531
		oSt += '<p class="h2Font ellipsisSty">'+oTitle+'</p>'
532
		oSt += '</div>'
533
		oSt += '<div class="selectNull '+styC+'" flag=1></div>'
534
		oSt += '</li>'
535
		osting+=oSt;
536
	}
537
	$("#expertli").html(osting);
538
}
539
	/*选择用户*/
540
	$("#expertli").on("click","li",function(){
541
		var userL=$("#expertli").find(".selectAdd").length;
542
		var oSel=$(this).find(".selectAdd").length;
543
		var oId=$(this).attr("id");
544
		$("#linkman").text("");
545
		if(oSel == 0) {
546
			if(userL == 5) {
547
				$("#linkman").text("最多可选5个负责人");
548
				return;
549
			}
550
			$(this).find('[flag]').addClass("selectAdd");
551
			oProfessor.push(oId);
552
		} else {
553
			$(this).find('[flag]').removeClass("selectAdd");
554
			for(var i=0;i<oProfessor.length;i++) {
555
				if(oId==oProfessor[i]) {
556
					oProfessor.splice(i, 1);
557
				}
558
			}
559
		}
560
	});
561
	
562
	function selUse() {
563
		$.ajax({
564
			url: "/ajax/resource/qaLinkman",
565
			type: "GET",
566
			timeout: 10000,
567
			dataType: "json",
568
			async:true,
569
			data: {
570
				"resourceId": resourceId,
571
			},
572
			success: function(data, textState) {
573
				console.log(data)
574
				if(data.success) {
575
					var arr=[];
576
					var arr1=[];
577
					var oLength=$("#expertli").find("li");
578
					for(var i=0;i<data.data.length;i++) {
579
						arr1.push(data.data[i].professorId);
580
					}
581
					for(var i=0;i<oLength.length;i++) {
582
						arr.push(oLength.eq(i).attr("id"));
583
					}
584
					for(var i=0;i<arr1.length;i++) {
585
						oProfessor.push(arr1[i]);
586
						oLength.eq(arr.indexOf(arr1[i])).find("[flag]").addClass("selectAdd")
587
					}
588
				}
589
			},
590
			error: function(XMLHttpRequest, textStats, errorThrown) {
591
				$.MsgBox.Alert('提示', '服务器请求失败')
592
			}
593
		})
594
	}
595
	
596
})

+ 142 - 0
cmp-portal/js/resourceList.js

@ -0,0 +1,142 @@
1
$(document).ready(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
4
	var resourceId;
5
	/*资源列表查询*/
6
	function getRecourceMe(n,isbind) {
7
		var resourceNameVa=$("#resouceName").val();
8
		var $info={};
9
		$info.orgId=id;
10
		$info.pageSize=10;
11
		if(resourceNameVa !="") {
12
			$info.key=resourceNameVa;
13
		}
14
		$info.pageNo=n;
15
		$.ajax({
16
			"url": "/ajax/resource/pqForOrg",
17
			"type": "GET",
18
			"success": function(data) {
19
				console.log(data)
20
				if(data.success) {
21
					$("#resourceList").html("");
22
					if(data.data.data.length==0) {
23
						$("#noresource").removeClass("displayNone");
24
						return;
25
					}else{
26
						$("#noresource").addClass("displayNone");
27
					}
28
					resourceHtml(data.data.data);
29
					if(isbind == true) {
30
								$(".tcdPageCode").createPage({
31
									pageCount: Math.ceil(data.data.total / data.data.pageSize),
32
									current: data.data.pageNo,
33
									backFn: function(p) {
34
										getRecourceMe(p,false);
35
									}
36
								});
37
							}
38
				}
39
			},
40
			"data": $info,
41
			dataType: "json",
42
			'error': function() {
43
				$.MsgBox.Alert('提示', '服务器连接超时!');
44
			}
45
		});
46
	}
47
	 getRecourceMe(1,true);
48
	 function resourceHtml($data) {
49
	 	for(var i=0;i<$data.length;i++) {
50
	 		var imgSrc="../images/default-resource.jpg";
51
	 		var oTime,pageview="",draftLable="",oHtml,oLi='';
52
	 		if($data[i].images.length) {
53
	 			imgSrc="/data/resource/"+$data[i].images[0].imageSrc
54
	 		}
55
	 		console.log($data[i].status)
56
	 		if($data[i].status==0) {
57
	 			oTime="修改于 "+timeTran($data[i].modifyTime);
58
	 			draftLable='<span class="draftLable">草稿</span>';
59
	 			oHtml="resourceIssue.html";
60
	 			oLi="class='draftList'"
61
	 		}else{
62
	 			oTime="发布于 "+timeTran($data[i].publishTime);
63
	 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
64
	 			oHtml="../resourceShow.html"
65
	 		}
66
	 	var oStr='<li '+oLi+'>'+
67
				'<a href="'+oHtml+'?resourceId='+$data[i].resourceId+'" target="_blank">'+
68
					'<div class="madiaHead resouseHead" style="background-image: url('+imgSrc+');"></div>'	+						
69
						'<div class="madiaInfo">'+					
70
							'<p class="h1Font ellipsisSty">'+$data[i].resourceName+'</p>'+						
71
							'<ul class="h2Font clearfix">'+
72
								'<li><span>'+oTime+'</span></li>'+pageview+
73
							'</ul>'+draftLable+	
74
						'</div>'+
75
				'</a>'+
76
				'<ul class="madiaEdit">'+
77
					'<li><span class="deteleThis2" data-id="'+$data[i].resourceId+'"></span></li>'+
78
					'<li><span class="editThis" data-id="'+$data[i].resourceId+'"></span></li>'+
79
				'</ul>'+
80
			'</li>'	
81
			$("#resourceList").append(oStr);
82
	 	}
83
	 }
84
	 /*时间格式转换*/
85
	function timeTran(otm) {
86
		var month, day, hour, minu;
87
		var monFirst = otm.substring(4, 5);
88
		var dayFirst = otm.substring(6, 7);
89
		if(monFirst == "0") {
90
			month = otm.substring(5, 6)
91
		} else {
92
			month = otm.substring(4, 6)
93
		}
94
		if(dayFirst == "0") {
95
			day = otm.substring(7, 8);
96
		} else {
97
			day = otm.substring(6, 8);
98
		}
99
		hour = otm.substring(8, 10);
100
		minu = otm.substring(10, 12);
101
		return month + "月" + day + "日 " + hour + ":" + minu;
102
	}
103
	/*点击修改跳转修改页面*/
104
	$("#resourceList").on("click",".editThis",function(){
105
		location.href="resourceIssue.html?resourceId="+$(this).attr("data-id")
106
	})
107
	/*点击删除跳转修改页面*/
108
	$("#resourceList").on("click",".deteleThis2",function(){
109
		resourceId=$(this).attr("data-id");
110
		$.MsgBox.Confirm("提示", "确认删除该资源?",deleResource);
111
	})
112
	/*删除函数*/
113
	function deleResource() {
114
			$.ajax({
115
					"url": "/ajax/resource/delete",
116
					"type": "POST",
117
					"success": function(data) {
118
						if(data.success) {	
119
							getRecourceMe(1,false);
120
						}
121
					},
122
					"data": {"resourceId":resourceId},
123
					"beforeSend": function() { /*console.log(this.data)*/ },
124
					"contentType": "application/x-www-form-urlencoded",
125
					dataType: "json"
126
				});
127
	}
128
	/*输入资源名称限制字数*/
129
	$("#resouceName").bind({
130
		keyup: function() {
131
			if($(this).val().length > 30) {
132
				$(this).val($(this).val().substr(0, 30));
133
			}
134
		}
135
	});
136
	/*点击搜索*/
137
	$(".searchSpan").click(function(){
138
		$(".tcdPageCode").remove();
139
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
140
		getRecourceMe(1,true);
141
	})
142
})

+ 182 - 0
cmp-portal/resourceIssue.html

@ -0,0 +1,182 @@
1
 <!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>资源发布-科袖网</title>
8
<link href="../css/bootstrap.min.css" rel="stylesheet">
9
<link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
10
<link type="text/css" rel="stylesheet" href="../css/datetimepicker.css">
11
<link type="text/css" href="css/common.css" rel="stylesheet">
12
<link type="text/css" href="css/cmpindex.css" rel="stylesheet">
13
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
14
<style type="text/css">
15
	.conItem ul.operateBlock>li{width: 25%;}
16
</style>
17
</head>
18

19
<body>
20
<header id="header">
21
	<script src="js/public/cmpHeader.js"></script>
22
</header>
23
<div id="container">
24
	<div class="containerCon">
25
		<div class="contentCon clearfix conBlock" style="padding-top:20px">
26
			<div class="leftconBox floatL">
27
				<ul class="artAbout">
28
					<li>
29
						<dl class="clearfix" id="fileList">
30
							<dd class="uploadD" id="uploadDd">
31
								<div class="uploadFile">
32
			        				<div class="uploadblock">
33
			        					<span class="" id="filePicker">上传图片</span>
34
			        					<!--未上传图片时-->
35
			        					<div class="upFront" id="uploader">
36
				        					<p>JPG/PNG格式</p>
37
				        					<p>2M以内<em class="requiredcon">*</em></p>
38
				            				<span class="upbtn">上传图片</span>
39
			        					</div>
40
				            		</div>
41
			        			</div>
42
							</dd>
43
							<dd></dd>
44
							<dd></dd>
45
						</dl>
46
					</li>
47
					<li>
48
						<div class="aboutTit">资源名称<em class="requiredcon">*</em><span class="frmconmsg" id="resourceNamePrompt" style="display:none;">30字以内</span></div>
49
						<input type="text" class="frmtype frmcontype" id="resourceName" value="" placeholder="请输入资源名称" />
50
					</li>
51
					<li class="form-item">
52
						<div class="aboutTit">关键词<span class="frmconmsg" id="keywordPrompt" style="display:none;">最多可添加5个关键词、每个关键词最多10个字</span></div>
53
						<div style="position: relative;" id="keywordHide">
54
							<input type="text" class="frmtype frmcontype" id="keywordName" value="" placeholder="请输入关键词" />
55
							<!--输入框中键入内容时按钮显示,添加内容出现在结果标签中时按钮隐藏-->
56
							<button class="frmcontype frmadd" id="addKeyword">添加</button>
57
						</div>
58
						<div class="form-drop keydrop displayNone"  id="keyList">
59
							<ul>
60
								<!--<li>
61
									<p class="h2Font">金属材料工程与腐蚀</p>
62
								</li>-->
63
								
64
							</ul>
65
						</div>
66
						<div class="form-result keyResult">
67
							<ul class="clearfix" id="keywordList">
68
								<!--<li>
69
									<p class="h2Font">金属材料工程与腐蚀蚀</p>
70
									<div class="closeThis"></div>
71
								</li>
72
								<li>
73
									<p class="h2Font">金属材料工程与腐蚀蚀</p>
74
									<div class="closeThis"></div>
75
								</li>
76
								<li>
77
									<p class="h2Font">金属材料工程与腐蚀蚀</p>
78
									<div class="closeThis"></div>
79
								</li>
80
								<li>
81
									<p class="h2Font">金属材料工程与腐蚀蚀</p>
82
									<div class="closeThis"></div>
83
								</li>
84
								<li>
85
									<p class="h2Font">金属材料工程与腐蚀蚀</p>
86
									<div class="closeThis"></div>
87
								</li>-->
88
							</ul>
89
						</div>
90
					</li>
91
					<li>
92
						<div class="aboutTit">应用用途<em class="requiredcon">*</em><span class="frmconmsg" id="applicationPrompt" style="display:none;">50字以内</span></div>
93
						<input type="text" class="frmtype frmcontype" id="application" value="" placeholder="请输入应用用途" />
94
					</li>
95
					<li>
96
						<div class="aboutTit">厂商型号<span class="frmconmsg" id="model" style="display:none;">50字以内</span></div>
97
						<input type="text" class="frmtype frmcontype" id="modelNumber" value="" placeholder="请输入厂商型号" />
98
					</li>
99
					<li>
100
						<div class="aboutTit">性能参数<span class="frmconmsg" id="performance" style="display:none;">200字以内</span></div>
101
						<div class="msgContbox">
102
				    		<textarea class="msgCont" placeholder="请输入性能参数" id="performancePa"></textarea>
103
				    		<span class="msgconNum"><span id="entry1">0</span>/200</span>
104
				    	</div>
105
					</li>
106
					<li>
107
						<div class="aboutTit">合作备注<span class="frmconmsg" id="remark" style="display:none;">200字以内</span></div>
108
						<div class="msgContbox">
109
				    		<textarea class="msgCont" placeholder="请输入合作备注" id="remarkContent"></textarea>
110
				    		<span class="msgconNum"><span id="entry2">0</span>/200</span>
111
				    	</div>
112
					</li>
113
					<li>
114
						<div class="aboutTit">详细介绍<span class="frmconmsg"></span></div>
115
						<!--这块还是使用编辑框插件-->
116
						<div class="editBlock">
117
							<script id="editor" name="content" type="text/plain" style="height:500px;"></script>
118
							<!--<textarea class="frmtype frmcontype" style="border:none;height:318px;" name="" placeholder="请输入详细介绍"></textarea>-->
119
						</div>
120
					</li>
121
				</ul>
122
			</div>
123
			<div class="rightconBox floatR">
124
				<div class="conItem">
125
					<ul class="operateBlock" id="operateBlocko">
126
						<li class="goFabu">
127
							<em class="operateicon icon-issue"></em>
128
							<p>发布</p>
129
						</li>
130
						<li class="articalPreview" id="oPreview">
131
							<em class="operateicon icon-preview"></em>
132
							<p>预览</p>
133
						</li>
134
						<li id="oDraft">
135
							<em class="operateicon icon-draft"></em>
136
							<p>存草稿</p>
137
						</li>
138
						<li class="disableLi" id="deleteResource"><!--只要预览、存草稿、发布之后移除disableLi类-->
139
							<em class="operateicon icon-delete"></em>
140
							<p>删除</p>
141
						</li>
142
						
143
					</ul>
144
				</div>
145
				<div class="conItem">
146
					<div class="form-item otherBlock">
147
						<div class="aboutTit">负责人/联系人<em class="requiredcon">*</em><span class="frmconmsg" id="linkman"></span></div>
148
						<div class="form-result addexpertRe">
149
							<ul class="addexpert" id="expertli">
150
								<li id="usid" data-id="7F26E3C720064AE8A10C7357BBBD239B">
151
									<div class="madiaHead useHead" id="userimg" style="background-image: url(/images/head/7F26E3C720064AE8A10C7357BBBD239B_l.jpg);"></div>
152
									<div class="madiaInfo">
153
										<p class="ellipsisSty">
154
											<span class="h1Font" id="name">李潇远2</span><em class="authicon authicon-staff-ok" title="企业认证员工"></em>
155
										</p>
156
										<p class="h2Font ellipsisSty">职称只为</p>
157
									</div>
158
									<div class="selectAdd"></div>
159
								</li>
160
							</ul>
161
						</div>
162
					</div>
163
					
164
				</div>
165
			</div>
166
		</div>
167
	</div>
168
</div>
169
<footer>
170
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
171
</footer>
172
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
173
<script type="text/javascript"src="js/public/jquery.similar.msgbox.js"></script>
174
<script type="text/javascript" src="js/public/common.js"></script>  
175
<script type="text/javascript" src="../js/jquery.page.js"></script>
176
<script type="text/javascript" src="../js/ueditor/ueditor.config.js"></script>
177
<script type="text/javascript" src="../js/ueditor/ueditor.all.js"></script>
178
<script type="text/javascript" src="../js/webuploader/webuploader.js"></script>
179
<script type="text/javascript" src="js/resourceIssue.js"></script>
180

181
</body>
182
</html>

+ 75 - 0
cmp-portal/resourceList.html

@ -0,0 +1,75 @@
1
 <!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>资源-我的工作台-科袖网</title>
8
<link href="../css/bootstrap.min.css" rel="stylesheet">
9
<link type="text/css" href="css/common.css" rel="stylesheet">
10
<link type="text/css" href="css/cmpindex.css" rel="stylesheet">
11
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
12

13
</head>
14

15
<body>
16
<header id="header">
17
	<script src="js/public/cmpHeader.js"></script>
18
</header>
19
<!--中间-->
20
<div id="container">
21
	<div class="containerCon">
22
		<div class="con-center contentCon clearfix conBlock">
23
	        <div class="workmenu">
24
	        	<ul>
25
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
26
	        		<li><a href="cmp-needList.html">需求</a></li>
27
	        		<li class="nowLi"><a>资源</a></li>
28
	        		<li><a href="cmp-articalList.html">文章</a></li>
29
	        		<li><a href="cmp-staffList.html">员工</a></li>
30
	        	</ul>
31
	        </div>
32
	        <div class="workcon workconG">
33
				<div class="workcontit">我的资源</div>
34
				<div class="itemListBolck">
35
					<div class="topOperaBlock clearfix">
36
						<div class="searchAbout col-w-8">
37
							<input class="frmcontype" type="search" name="" placeholder="输入资源的名称、关键词" id="resouceName">
38
							<span class="searchSpan"></span>
39
						</div>
40
						<div class="issueSpanBlock col-w-4">
41
							<a href="resourceIssue.html" class="issueSpan" target="_blank">发布资源</a>
42
						</div>
43
					</div>
44
					<div class="form-item itemListCon">
45
						<div class="form-result aboutRes">
46
							<ul id="resourceList">
47
								
48
							</ul>
49
							<!--无搜索结果-->
50
							<div class="nodatabox displayNone" id="noresource">
51
						        <div class="nodata">
52
						            <div class="picbox picNull"></div>
53
						            <div class="txtbox">
54
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
55
						            </div>
56
						        </div>
57
						    </div>
58
							<div class="tcdPageCode"></div>
59
						</div>
60
					</div>
61
				</div>
62
			</div>
63
	    </div>
64
    </div>
65
</div>
66
<footer>
67
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
68
</footer>
69
<script type="text/javascript" src="js/public/jquery.cookie.js"></script>
70
<script type="text/javascript" src="js/public/jquery.similar.msgbox.js"></script>
71
<script type="text/javascript" src="../js/jquery.page.js"></script>
72
<script type="text/javascript" src="js/public/common.js"></script>
73
<script type="text/javascript" src="js/resourceList.js"></script>
74
</body>
75
</html>

+ 6 - 8
css/common.css

@ -154,13 +154,11 @@ input{ outline:none;}
154 154
.nodatatip{width:40%;margin:100px auto;overflow:hidden;height:100px; font-size:16px; text-align:center;color:#aaa;}
155 155
.nodatabox{/*width:100%;*/height: 100%;padding:40px; margin:20px auto;text-align: center;}
156 156
.nodatabox .nodata{overflow:hidden; width:50%; margin:auto;}
157
.nodatabox .nodata li{float:left;}
158
.nodatabox .picbox{margin:30px auto;}
159
.nodatabox .picbox .defpic{display:block;margin: auto;width:160px;height:160px; background:url(../images/nodata.png) -12px -760px no-repeat;}
160
.nodatabox .txtbox { margin:86px auto;}
161
.nodatabox .currword{font-size: 18px;color: #777777;font-weight:bold;line-height:40px;}
162
.nodatabox .currtip{ font-size:14px;color: #AAAAAA;}
163
.nodatabox .keyword{font-size:20px; padding:0 6px;color:#555555;}
157
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:160px;height:160px;background-position: center;background-repeat: no-repeat;background-size:cover;}
158
.nodatabox .picbox.picNull{background-image:url(../images/points_icon_ku_nor.png);}
159
.nodatabox .txtbox { margin:6px auto;}
160
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}
161
.nodatabox .keyword{font-size:22px; padding:0 6px;color:#555555;}
164 162
/***********************缺省页面*******************/
165 163

166 164
.ResImgBox{display: inline-block;text-align: center;max-width:100px;width:100px;height:100px;background:#FAFAFA;border:1px solid #F8F8F8;overflow: hidden;padding:2px;border-radius:4px;}
@ -212,7 +210,7 @@ footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);bac
212 210
.search-btn{ width:35px; height:35px; float:right; behavior:url(../js/ie-css3.htc);cursor:pointer;}
213 211
.search-icon{ display:block; width:20px; height:20px; background:url(../images/index-icon.png) no-repeat; background-position:left; margin:8px;}
214 212

215
header{ position:fixed; top:0;left:0;right: 0; z-index:998;font-size:16px;line-height:32px;}
213
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
216 214
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
217 215
header .navheader.navhdown{background: rgba(256,256,256,1);border-color:#E5E5E5;box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);-webkit-box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);}
218 216
header .navheader.navhdown li a{color:#666;}

+ 1 - 0
css/datetimepicker.css

@ -94,6 +94,7 @@
94 94
}
95 95
.datetimepicker table {
96 96
  margin: 0;
97
  width: 300px;
97 98
}
98 99
.datetimepicker  td,
99 100
.datetimepicker th {

+ 18 - 13
css/genindex.css

@ -18,7 +18,7 @@ div.textareaboxEmp:focus:before{content:none;}*/
18 18
   width: 100%;font-size: 16px;resize:vertical;margin-bottom: 15px;min-height:92px;}
19 19
.msgContbox .msgconNum{position:absolute;bottom:2px;right:10px;color:#999;font-size:14px;}
20 20
/*登录注册外部表单样式*/
21
.frmtype{border:none;height:36px;background:#edeff4;font-size:14px;outline: none; padding:6px 20px 6px 10px;border-radius: 6px;}
21
.frmtype{border:none;height:36px;background:#edeff4;font-size:14px;outline: none;/* padding:6px 20px 6px 10px;*/border-radius: 6px;}
22 22
.frmtype:focus{box-shadow: none;outline:none; border:1px solid #ff8500;}
23 23
.frmtypeW{width:98%;margin: auto;}
24 24
textarea.frmtype{height:100px;}
@ -200,11 +200,12 @@ ul.filterUl>li.filterCurrent{border-color:#e1e1e1;border-radius: 20px;color:#ff9
200 200
.listdiv{background: #FFFFFF;padding-bottom:20px;margin-bottom:20px;}
201 201
.listdiv ul.listitemdiv{}
202 202
ul.listitemdiv li{position:relative;min-height:132px;padding:15px 20px;}
203
ul.listitemdiv li:hover{background: #EEEEEE;}
203 204
ul.listitemdiv li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f7f7f8;}
204
ul.listitemdiv li a.linkhref{display: block;}
205
ul.listitemdiv li a.linkhref{display: block;width: 100%;}
205 206
ul.listitemdiv li .lefthead{position:absolute;top:50%;overflow: hidden;background-size: cover;background-position: center;}
206 207
ul.listitemdiv li .userheadt{width: 100px;height:100px;margin-top:-50px;background-image: url(../images/default-photo.jpg);}
207
ul.listitemdiv li .centercon{padding-left:120px;padding-right:200px;margin-top:14px;}
208
ul.listitemdiv li .centercon{padding-left:120px;padding-right:200px;}
208 209
ul.listitemdiv li .centercon .h1font{font-size: 16px;line-height: 28px; color:#000;}
209 210
ul.listitemdiv li .centercon .h2font{font-size: 14px;line-height: 24px; color:#666;}
210 211
ul.listitemdiv li .rightop{padding:0 24px;line-height:32px;font-size:16px;color:#FFFFFF;cursor:pointer;border-radius:4px;background:#ff9900;
@ -214,7 +215,7 @@ ul.listitemdiv li .rightop{padding:0 24px;line-height:32px;font-size:16px;color:
214 215
215 216
ul.listitemdiv.listmorediv li{min-height: 142px;}	
216 217
ul.listitemdiv.listmorediv .resouhead{width: 164px;height: 110px;margin-top:-55px;background-image: url(../images/default-resource.jpg);}
217
ul.listitemdiv.listmorediv .centercon{padding-left:184px;padding-right: 10px;margin-top:16px;}
218
ul.listitemdiv.listmorediv .centercon{padding-left:184px;padding-right: 10px;}
218 219
ul.listitemdiv.listmorediv .margin-top:16px;{margin-top:30px;}
219 220
220 221
@ -337,8 +338,9 @@ ul.tagList>li .h2Font{color:#666}
337 338
.thumbBlock .thumbBtn.thumbedBtn:hover{background: #e0e0e0;}
338 339
/*分享操作栏*/
339 340
.shareBlock{background:rgba(60,62,81,.5);margin:0 -30px;padding:26px 30px;}
341
.shareInfo .madiaHead{border-color:#999}
340 342
.shareInfo .madiaInfo{margin-top:12px;}
341
.shareInfo .madiaInfo .h1Font{display:inline-block;max-width: 200px;padding-right:14px;font-size: 16px;color:#fff;}
343
.shareInfo .madiaInfo .h1Font{display:inline-block;max-width: 200px;font-size: 16px;color:#fff;}
342 344
.shareInfo .madiaInfo .authiconNew{top:-8px;}
343 345
.shareBlock>ul.shareWays{width:50%;cursor: pointer;text-align:right;}
344 346
.shareBlock>ul.shareWays>li{float:left;padding:16px 0 10px;width:19%;color:#fff;}
@ -366,13 +368,13 @@ ul.tagList>li .h2Font{color:#666}
366 368
.shareWeixin .shareCode{display:none;position: absolute;bottom: 40px;left:-24px;background:rgba(0,0,0,.6);padding: 8px;width: 260px;}
367 369
.shareWeixin .shareCode:after{display: block;width: 0;height: 0;border:12px solid transparent;border-top-color:rgba(0,0,0,.6);position: absolute;bottom:-24px;left:22px;}
368 370
.shareWeixin .shareCode .shareWord {width: 126px;margin: 10px;color: #FFF;text-align: left;font-size: 14px;line-height: 20px;}
369
.shareWeixin .shareCode img{width: 80px;height: 80px;}
371
.shareWeixin .shareCode img{width: 80px;height: 80px;border: 4px solid #fff;}
370 372
371 373
.ifLogin{margin:30px 0;}
372 374
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
373 375
.ifLogin .ifLoginUn>ul>li{float: right;padding:0 6px;}
374 376
.ifLogin .ifLoginUn a{color:#666;}
375
.ifLogin .ifLoginOn .btnModel{margin:12px 0;width: 80px;border-radius:0;}
377
.ifLogin .ifLoginOn .btnModel{margin:12px 0;width: 80px;border-radius:0;cursor: pointer;}
376 378
377 379
.commentsArea .btnCancel{height:auto;border-radius:0;color: #ff9900;}
378 380
.commentsArea ul.commentList{margin-top:-20px;}
@ -387,11 +389,11 @@ ul.tagList>li .h2Font{color:#666}
387 389
.rightconBox .conItem.conItemG .madiaHead.useHead{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
388 390
.rightconBox .conItem.conItemG .madiaHead.cmpHead{background-image:url(../images/default-icon.jpg);}
389 391
.rightconBox .conItem.conItemG .h2Font{font-size:16px;color:#666;line-height:26px;}
390
.rightconBox .conItem.conItemG .hrefgo{color:#333}
391
.rightconBox .conItem.conItemG .goSpan span{background: #ff9900;display:inline-block;width:100px;cursor:pointer;color:#fff;font-size:16px;margin:20px 10px 0;}
392
.rightconBox .conItem.conItemG .attenSpan{position: relative;padding:9px 25px;padding-left:42px;}
392
.rightconBox .conItem.conItemG .h3Font>a{color:#333}
393
.rightconBox .conItem.conItemG .goSpan span{background: #ff9900;display:inline-block;min-width:80px;cursor:pointer;color:#fff;font-size:16px;margin:20px 10px 0;}
394
.rightconBox .conItem.conItemG .attenSpan{position: relative;padding:9px 20px;padding-left:38px;}
393 395
.rightconBox .conItem.conItemG .attenSpan:before{position:absolute;content:url(../images/g_article_icon_jia_nor.png);top:50%;left:20px;margin-top:-8px;}
394
.rightconBox .conItem.conItemG .consultSpan{padding:9px 25px;}
396
.rightconBox .conItem.conItemG .consultSpan{padding:9px 20px;}
395 397
/*文章列表*/
396 398
.itemListCon{background: #fff;}
397 399
.itemListBolck .searchAbout{position: relative;}
@ -445,15 +447,18 @@ ul.tagList>li .h2Font{color:#666}
445 447
.showDetail .showMain .showTit{position:relative;padding-left:10px;}
446 448
.showDetail .showMain .showTit:before{position:absolute;top:50%;margin-top:-10px;left:0;display:inline-block;content:"";width:4px;height:18px;background:#ff9900;}
447 449
/*资源发布图片上传模块*/
448
.artAbout>li>dl{margin-right: -15px;}
450
.artAbout>li>dl{margin-top:-10px;margin-right: -15px;height: 200px;overflow: hidden;padding-top:10px;}
449 451
.artAbout>li>dl>dd{position:relative;float: left;width:31.2%;border: 1px solid #E5E5E5;height: 190px;margin-right: 15px;}
450 452
.artAbout>li>dl>dd:nth-child(2),.artAbout>li>dl>dd:nth-child(3){background:url(../images/g_resource_bg_tianjia_nor.png) center center no-repeat;}
451 453
.artAbout>li>dl>dd.uploadD{background: none;}
452 454
.artAbout>li>dl>dd .imgItem{background:#fff;display: table-cell;text-align: center;vertical-align: middle;width: 222px;height: 188px;}
453 455
.artAbout>li>dl>dd .imgItem img{vertical-align: middle;max-width:222px;max-height:188px;}
454 456
.artAbout>li>dl>dd .uploadFile .uploadblock{border: none;}
455
.artAbout>li>dl>dd .file-panel{position:absolute;top:-8px;right:-8px;text-align:center;overflow:hidden;}
457
.artAbout>li>dl>dd .file-panel{position:absolute;top:-10px;right:-10px;text-align:center;overflow:hidden;}
456 458
.artAbout>li>dl>dd .file-panel .cancel{display: inline-block;width: 20px;height: 20px;cursor: pointer;background: url(../images/g_resource_button_guanbi_nor.png);background-size: cover;}
459
.form-item .addexpertRe{margin:0 -30px;}
460
.form-item .addexpertRe ul.addexpert>li .madiaInfo{padding-right:42px;}
461
.form-item .addexpertRe ul.addexpert>li .addbtn{position: absolute;right: 20px;background: #ff9900;top: 50%;margin-top: -14px;cursor: pointer;padding: 4px 10px;color: #fff;border-radius: 4px;}
457 462
/*资源图片展示*/
458 463
.Imagebox{width:360px;}
459 464
.Imagebox .tb-pic a{display:table-cell;text-align:center;vertical-align:middle;}

+ 7 - 1
css/index.css

@ -20,7 +20,7 @@ input{ outline:none;}
20 20
.lishow li{ line-height:30px; list-style:none; padding:2px 16px;color:#888; margin-top:1px;cursor: pointer;} 
21 21
.lishow li:hover{ background:#f0f0f0;} 
22 22

23
.sear-txt{ width:530px; height:40px; background:#fff; border:none;  border-radius: 6px 0 0 6px; float:left;font-size:15px;line-height:40px; padding-left:120px; color:#a3a3a3;}
23
.sear-txt{ width:530px; height:40px; background:#fff; border:none;  border-radius: 6px 0 0 6px; float:left;font-size:15px;line-height:40px; padding-left:20px; color:#a3a3a3;}
24 24
.sear-btn{ width:140px; height:40px; background:#ff9900; border-radius: 0 6px 6px 0; float:left; cursor:pointer;font-size:16px;line-height:40px; color:#fff; text-align:center; }
25 25
/*寻找专家流程*/
26 26
/*.process{ width:806px; height:205px; margin:auto;}
@ -83,6 +83,12 @@ input{ outline:none;}
83 83
.hot-professor .carousel .item{background: none;border:none;}
84 84
.hot-professor .carousel .item.active{box-shadow: none;}
85 85
.hot-professor .carousel .aitemLink{display:block;}
86
/*友情链接*/
87
.urlLinkBox{background: #FAFAFA;padding: 10px 0;margin-bottom:-20px}
88
.urlLinkBox .tit-M{color: #333;font-size: 18px;margin-bottom:10px;margin-top: 5px;}
89
.urlLinkBox .link-box>ul{overflow: hidden;margin-right: -10px;}
90
.urlLinkBox .link-box>ul>li{display: inline-block;float:left;margin-right: 10px;font-size: 14px;line-height:24px;width:19%;}
91
.urlLinkBox .link-box>ul>li>a{color:#666}
86 92
/*搜索页*/
87 93
.content{ width:100%; min-width: 1050px; height:auto; background:#f4f6f8; padding:60px 0 2px 0; }
88 94
.content-in{padding-bottom:20px;}

+ 8 - 8
css/popup.css

@ -11,10 +11,10 @@
11 11
.frmarea{ min-height:80px;}
12 12
.updownbtn{text-decoration:underline; color:#333;}
13 13

14
.blackcover{ width:100%; height:100%;overflow-x: hidden;overflow-y: auto; position:fixed; background:rgba(0,0,0,.6); z-index:1000; }
14
.blackcover{ width:100%; height:100%;overflow-x: hidden;overflow-y: auto; position:fixed; background:rgba(0,0,0,.6); z-index:1008; }
15 15
.resoufrm p{ font-size:14px;}
16 16
/*弹窗资源信息、申请信息*/
17
.resouinfo{position:absolute;background:#fff;min-width:750px;border-radius:10px;padding:30px 20px;font-size:14px;z-index:1001; margin-bottom:40px; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
17
.resouinfo{position:absolute;background:#fff;min-width:750px;border-radius:10px;padding:30px 20px;font-size:14px;z-index:1009; margin-bottom:40px; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
18 18

19 19
.resoutit{padding: 0 20px;font-size:16px;line-height:40px;color: #606060; border-bottom:1px solid #ff9900; position:relative; font-weight:bold;}
20 20

@ -61,7 +61,7 @@
61 61
.workmsg{ clear:both;font-size:14px;line-height:26px; color:red; padding-left:20px; background:url(../images/info_warn.png) 0 center no-repeat; }
62 62

63 63
/*//资源申请*/
64
.resouapply{position:absolute; background:#fff;border-radius:10px;padding:20px;font-size:14px;z-index:1001; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
64
.resouapply{position:absolute; background:#fff;border-radius:10px;padding:20px;font-size:14px;z-index:1009; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
65 65
.resouapply .resoushowimg{width:100%; border:1px solid #d6d6d6; height:200px; position:relative; overflow:hidden; }
66 66
.resouapply .resouimg2{ height:200px;}
67 67
.resoufrm .worktit{ position:relative; width:100%;border-bottom:1px solid #d6d6d6; padding:10px; font-size:16px; }
@ -75,7 +75,7 @@
75 75
.fibepople{ margin-right:60px;}
76 76

77 77
/*评价*/
78
.commentinfo{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1001; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
78
.commentinfo{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1009; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
79 79
.commentinfo .wordlimit{ font-size:12px; color:#999; text-align:right;}
80 80
.commentbox{ padding:20px; }
81 81
.commentbox table{width:640px;}
@ -87,7 +87,7 @@
87 87
.evastar2{ display:block; width:19px; height:19px; cursor:pointer; float:left; background:url(../images/evastar.png) 0 -25px no-repeat;}
88 88

89 89
/*留言*/
90
.guestbookinfo{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1001;  margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
90
.guestbookinfo{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1009;  margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
91 91
.guestbookinfo .wordlimit{ font-size:12px; color:#999;}
92 92
.guestbookcon{padding:20px; width:600px; margin:auto;}
93 93
.guestcon{ padding:20px 0;max-height:240px;overflow-x:hidden; overflow-y:visible ;  }
@ -102,7 +102,7 @@
102 102

103 103
/*款项记录*/
104 104

105
.paymentinfo{position:absolute; background:#fff;border-radius:10px;padding:20px;font-size:14px;z-index:1001;  margin-bottom:40px; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
105
.paymentinfo{position:absolute; background:#fff;border-radius:10px;padding:20px;font-size:14px;z-index:1009;  margin-bottom:40px; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
106 106
.paymentbox{ padding:20px;}
107 107
.payaddbox{  width:640px; margin:auto; margin-top:20px;padding:20px 40px; background:#f8f8f8;}
108 108
.payaddbox table{ width:100%;}
@ -141,7 +141,7 @@
141 141
.combtn{color:#ff9900; cursor:pointer;}
142 142

143 143
/*//咨询申请*/
144
.consultapply{position:absolute;border-radius:10px; min-width: 700px;margin-top:40px;margin-bottom:40px; font-size:14px; background:#fff;padding:20px;z-index:1001; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
144
.consultapply{position:absolute;border-radius:10px; min-width: 700px;margin-top:40px;margin-bottom:40px; font-size:14px; background:#fff;padding:20px;z-index:1009; box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
145 145
.consultinfo{ padding:10px 20px; max-width:680px; overflow:hidden;}
146 146
.consultleft{ width:33%; margin-right:20px;}
147 147
.consultleft .proheadbox{ width:140px; height:140px; margin:auto; margin-bottom:10px; }
@ -172,7 +172,7 @@
172 172
.sendmsg .sendmsgcon .rightline{ text-align:right; font-size:13px;}
173 173

174 174
/*//咨询专家评价*/
175
.concombox{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1001; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
175
.concombox{position:absolute;background:#fff;border-radius:10px;padding:20px;font-size:14px; z-index:1009; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
176 176
.concombox .wordlimit{ font-size:12px; color:#999; text-align:right;}
177 177
.commentbox2{ padding:20px; }
178 178
.commentbox2 table{width:500px;}

BIN
images/01.png


BIN
images/02.png


BIN
images/03.png


BIN
images/authsort.png


BIN
images/authsort2.png


BIN
images/points_icon_ku_nor.png


+ 13 - 6
index.html

@ -41,20 +41,19 @@
41 41
			<h1>让企业没有难搞的研发</h1>
42 42
			<h2>科袖,搭建企业与专家的桥梁</h2>
43 43
			<div class="main-search bgRadius">
44
				 <div class="simuselect floatL" id="lookFor">
44
				 <!--<div class="simuselect floatL" id="lookFor">
45 45
                	<div class="ulbox lookwho" onclick="showmenu()" id="div_select">找专家</div> 
46 46
					<ul id="li_show" class="lishow"> 
47 47
					    <li><div onclick="selectThis('找专家')">找专家</div></li> 
48 48
					    <li><div onclick="selectThis('找资源')">找资源</div></li> 
49 49
					</ul>
50
				</div>
50
				</div>-->
51 51
			    <!-- <select class="lookwho floatL" id="lookFor"><option value="0">找专家</option><option value="1">找资源</option></select>  -->
52 52
				<input type="text" placeholder="搜索专家、机构、研究方向" class="sear-txt" id="searchContent" >
53 53
				<div class="sear-btn" id="search" >搜索</div>
54 54
			</div>
55 55
		</div>
56 56
	</div>
57
	
58 57
	<div class="container-fulid">
59 58
	    <div class="containerCon">
60 59
	    	<div class="link-btn-box clearfix">
@ -100,8 +99,6 @@
100 99
			</div>
101 100
	    </div>
102 101
	</div>
103
	
104
	<!--热门领域-->
105 102
	<div class="hot-field">
106 103
		<div class="container-fulid">
107 104
	    	<div class="containerCon">
@ -148,7 +145,6 @@
148 145
			</div>
149 146
	    </div>
150 147
	</div>
151
	<!--热门专家-->
152 148
	<div class="hot-professor">
153 149
		<div class="container-fulid">
154 150
	    	<div class="containerCon">
@ -224,6 +220,17 @@
224 220
			</div>
225 221
	    </div>
226 222
	</div>
223
	<div class="container-fulid urlLinkBox">
224
	    <div class="containerCon">
225
            <h3 class="tit-M">友情链接</h3>
226
            <div class="link-box">
227
                <ul>
228
                    <li><a href="http://www.ecorr.org/" target="_blank">中国腐蚀与防护网</a></li>
229
                    <li><a href="http://www.duolingptfe.com/" target="_blank">聚四氟乙烯</a></li>
230
                </ul>
231
            </div>
232
        </div>
233
    </div>
227 234
</div>
228 235
<footer>
229 236
    <script type="text/javascript" src="js/footer.js"></script>

+ 14 - 5
js/articalIssue.js

@ -30,7 +30,11 @@ $(function() {
30 30
			$("#keyPrompt").text("");
31 31
		},
32 32
		keyup: function() {
33
			$(".frmadd,.keydrop").removeClass("displayNone");
33
			if($(this).val()==""){
34
				$(".frmadd,.keydrop").addClass("displayNone");
35
			}else{
36
				$(".frmadd,.keydrop").removeClass("displayNone");
37
			}
34 38
			if($(this).val().length > 10) {
35 39
				$(this).val($(this).val().substr(0, 10));
36 40
			}
@ -173,7 +177,7 @@ $(function() {
173 177
						var itemlist = '';
174 178
						$("#expertlist").html("");
175 179
						for(var i = 0; i < data.data.length; i++) {
176
							var itemlist = '<li id="usid">';
180
							var itemlist = '<li id="usid" class="flexCenter">';
177 181
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
178 182
							itemlist += '<div class="madiaInfo">';
179 183
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
@ -219,7 +223,7 @@ $(function() {
219 223
						var itemlist = '';
220 224
						$("#resouselist").html("");
221 225
						for(var i = 0; i < data.data.length; i++) {
222
							var itemlist = '<li id="usid">';
226
							var itemlist = '<li id="usid" class="flexCenter">';
223 227
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
224 228
							itemlist += '<div class="madiaInfo">';
225 229
							itemlist += '<p class="h2Font ellipsisSty" id="resourceName"></p>';
@ -230,7 +234,11 @@ $(function() {
230 234
							var datalist = data.data[i];
231 235
							$itemlist.attr("data-id", datalist.resourceId);
232 236
							$itemlist.find("#resourceName").text(datalist.resourceName);
233
							$itemlist.find("#name").text(datalist.professor.name);
237
							if(datalist.resourceType==1){
238
								$itemlist.find("#name").text(datalist.professor.name);
239
							}else{
240
								$itemlist.find("#name").text(datalist.organization.name);
241
							}
234 242
							if(datalist.images.length > 0) {
235 243
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
236 244
							}
@ -264,7 +272,8 @@ $(function() {
264 272
						for(var i = 0; i < data.data.length; i++) {
265 273
							var itemlist = '<li><p class="h2Font"></p></li>';
266 274
							$itemlist = $(itemlist);
267
							$itemlist.find(".h2Font").text(datalist.caption);
275
							$("#keydropList").append($itemlist);
276
							$itemlist.find(".h2Font").text(data.data[i].caption);
268 277
						}
269 278
					} else {
270 279
						$(".keydrop").addClass("displayNone");

+ 4 - 2
js/articalList.js

@ -1,5 +1,6 @@
1 1
/*文章个人列表*/
2 2
$(function() {
3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3 4
	loginStatus(); //判断个人是否登录
4 5
	var userid = $.cookie("userid");
5 6
	var  falseno = false;
@ -95,15 +96,16 @@ function articalList(pageSize, pageNo, isbind, num) {
95 96
						$itemlist.find("#artimg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");");
96 97
					}
97 98
					if(datalist.status == 1) {//发布
98
						$itemlist.find(".time").text(Time(datalist.publishTime));
99
						$itemlist.find(".time").text("发布于 "+Time(datalist.publishTime));
99 100
						$itemlist.find(".newurl").attr("href", "articalShow.html?articleId=" + datalist.articleId);
100 101
					}
101 102
					if(datalist.status == 0){//草稿
102
						$itemlist.find(".time").text(Time(datalist.modifyTime));
103
						$itemlist.find(".time").text("修改于 "+Time(datalist.modifyTime));
103 104
						$itemlist.find(".newurl").attr("href", "articalModify.html?articleId=" + datalist.articleId);
104 105
						$itemlist.find(".editThis").attr("href", "articalModify.html?articleId=" + datalist.articleId);
105 106
					}
106 107
					if(datalist.status == 2){//定时发布
108
						$itemlist.find(".time").text("修改于 "+Time(datalist.modifyTime));
107 109
						$itemlist.find("#dsfbtime").text("草稿 | 将于" +Time(datalist.publishTime)+ "定时发布");
108 110
						$itemlist.find(".editThis,.newurl").on("click",function(){
109 111
							var newarticleId = $(this).parents(".newbox").attr("data-id");

+ 15 - 6
js/articalModify.js

@ -35,11 +35,15 @@ $(function() {
35 35
			$("#keyPrompt").text("");
36 36
		},
37 37
		keyup: function() {
38
			$(".frmadd,.keydrop").removeClass("displayNone");
38
			if($(this).val()==""){
39
				$(".frmadd,.keydrop").addClass("displayNone");
40
			}else{
41
				$(".frmadd,.keydrop").removeClass("displayNone");
42
			}
39 43
			if($(this).val().length > 10) {
40 44
				$(this).val($(this).val().substr(0, 10));
41 45
			}
42
			KeyWordList();
46
			KeyWordList();;
43 47
		}
44 48
	})
45 49
	
@ -197,7 +201,7 @@ $(function() {
197 201
						var itemlist = '';
198 202
						$("#expertlist").html("");
199 203
						for(var i = 0; i < data.data.length; i++) {
200
							var itemlist = '<li id="usid">';
204
							var itemlist = '<li id="usid" class="flexCenter">';
201 205
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
202 206
							itemlist += '<div class="madiaInfo">';
203 207
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
@ -243,7 +247,7 @@ $(function() {
243 247
						var itemlist = '';
244 248
						$("#resouselist").html("");
245 249
						for(var i = 0; i < data.data.length; i++) {
246
							var itemlist = '<li id="usid">';
250
							var itemlist = '<li id="usid" class="flexCenter">';
247 251
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
248 252
							itemlist += '<div class="madiaInfo">';
249 253
							itemlist += '<p class="h2Font ellipsisSty" id="resourceName"></p>';
@ -254,7 +258,11 @@ $(function() {
254 258
							var datalist = data.data[i];
255 259
							$itemlist.attr("data-id", datalist.resourceId);
256 260
							$itemlist.find("#resourceName").text(datalist.resourceName);
257
							$itemlist.find("#name").text(datalist.professor.name);
261
							if(datalist.resourceType==1){
262
								$itemlist.find("#name").text(datalist.professor.name);
263
							}else{
264
								$itemlist.find("#name").text(datalist.organization.name);
265
							}
258 266
							if(datalist.images.length > 0) {
259 267
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
260 268
							}
@ -288,7 +296,8 @@ $(function() {
288 296
						for(var i = 0; i < data.data.length; i++) {
289 297
							var itemlist = '<li><p class="h2Font"></p></li>';
290 298
							$itemlist = $(itemlist);
291
							$itemlist.find(".h2Font").text(datalist.caption);
299
							$("#keydropList").append($itemlist);
300
							$itemlist.find(".h2Font").text(data.data[i].caption);
292 301
						}
293 302
					} else {
294 303
						$(".keydrop").addClass("displayNone");

+ 1 - 1
js/articalPreview.js

@ -16,7 +16,7 @@ $(function() {
16 16
			"success" : function(data) {
17 17
				if (data.success){
18 18
					$("#articleTitle").text(data.data.articleTitle);
19
					$("#publishTime").text(Time(data.data.createTime));
19
					//$("#publishTime").text(Time(data.data.createTime));
20 20
					$("#articleContent").html(data.data.articleContent);
21 21
					$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ");");
22 22
					$("#tagList").text(industryShow(data.data.subject));

+ 18 - 11
js/articalShow.js

@ -26,12 +26,16 @@ $(function() {
26 26
			"success" : function(data) {
27 27
				if (data.success){
28 28
					$("#articleTitle").text(data.data.articleTitle);
29
					$("#pageViews").text("阅读量"+data.data.pageViews);
29
					$("#pageViews").text("阅读量 "+data.data.pageViews);
30 30
					$("#publishTime").text(commenTime(data.data.publishTime));
31 31
					$("#articleContent").html(data.data.articleContent);
32 32
					$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ");");
33 33
					$("#tagList").text(industryShow(data.data.subject));
34
					isAgree(data.data.articleAgree)//文章点赞
34
					if (userid && userid != "null" && userid != null) {
35
						isAgree(data.data.articleAgree)//文章点赞
36
					}else{
37
						$(".thumbBtn").html("赞 <span>"+data.data.articleAgree+"</span>");
38
					}
35 39
					ifCollection(articleId,2);//文章收藏
36 40
					if(data.data.articleType==1){
37 41
						$("#expert").removeClass("displayNone");
@ -54,7 +58,7 @@ $(function() {
54 58
			}
55 59
		});
56 60
	}
57
	http://service.weibo.com/share/share.php?appkey=&searchPic=false&sudaref=www.kidulty.com&ralateUid=1782445853&title=OFF-WHITE+2017+F%2FW+%E5%8F%A3%E7%BD%A9&pic=http://p1.kidulty.com/flash_report/s/20170522/592287619d04a680_453.jpg&url=http%3A%2F%2Fwww.kidulty.com%2Fnews%2Fdetail%2Fid%2F5377%2Fak%2F#_loginLayer_1495439011206
61
	
58 62
	//专家信息
59 63
	function expert(professorId){
60 64
	
@ -108,7 +112,7 @@ $(function() {
108 112
						$("#Qimg,.userimg").attr("style", "background-image: url(/images/org/" + data.data.id + ".jpg);");
109 113
					}
110 114
					if(data.data.authStatus==3){
111
						$("#QauthFlag,#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");;	
115
						$("#QauthFlag,.labels").addClass("authicon-com-ok").attr("title", "认证企业");;	
112 116
					}
113 117
					$("#Qindustry").text(QindustryShow(data.data.industry));
114 118
					if(data.data.orgType==2){
@ -347,7 +351,9 @@ $(function() {
347 351
										console.log($data)
348 352
										if ($data.success && $data.data){
349 353
											$itemlist.find(".username2").text($data.data.name);
350
											$itemlist.find("#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");
354
											if($data.data.authStatus==3){
355
												$itemlist.find("#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");
356
											}
351 357
										}
352 358
									},
353 359
									"error":function(){
@ -445,10 +451,10 @@ function isAgree(articleAgree) {
445 451
		success: function(data) {
446 452
			if(data.success){
447 453
				if(data.data!= null){
448
					$(".thumbBtn").html("已赞<span>"+articleAgree+"</span>");
454
					$(".thumbBtn").html("已赞 <span>"+articleAgree+"</span>");
449 455
					$(".thumbBtn").addClass("thumbedBtn");
450 456
				}else{
451
					$(".thumbBtn").html("赞<span>"+articleAgree+"</span>");
457
					$(".thumbBtn").html("赞 <span>"+articleAgree+"</span>");
452 458
					$(".thumbBtn").addClass("thunbgo");
453 459
				}
454 460
			}
@ -472,7 +478,7 @@ function addAgree() {
472 478
		success: function(data) {
473 479
			if(data.success){
474 480
				var articleAgreeval = $(".thumbBtn span").text();
475
				$(".thumbBtn").html("已赞<span>"+parseInt(articleAgreeval+1)+"</span>");
481
				$(".thumbBtn").html("已赞 <span>"+parseInt(articleAgreeval+1)+"</span>");
476 482
				$(".thumbBtn").addClass("thumbedBtn");
477 483
				$(".thumbBtn").removeClass("thunbgo");
478 484
			}
@ -576,7 +582,7 @@ function collectionExpert(watchObject,num) {
576 582
	if(num==1){
577 583
		var data = {"professorId": userid,"watchObject": watchObject,"watchType": 1}
578 584
	}else{
579
		var data = {"professorId": userid,"watchObject": watchObject,"watchType": 2}
585
		var data = {"professorId": userid,"watchObject": watchObject,"watchType": 3}
580 586
	}
581 587
	$.ajax({		
582 588
		url:"/ajax/watch",
@ -842,9 +848,10 @@ function commenTime(startTime){
842 848
    }else if(date3 > 3600000 && date3 < 86400000){
843 849
    	return hours + "小钟前";
844 850
    }else if(date3 > 86400000 && date3 < 172800000){
845
    	return "昨天" + parseInt(startTime.substring(10,12)) + ":" +parseInt(startTime.substring(12,14));
851
    	return "昨天 " + startTime.substring(10,12) + ":" +startTime.substring(12,14);
852
    	
846 853
    }else{
847
    	return parseInt(startTime.substring(4,6)) + "月" + parseInt(startTime.substring(6,8)) + "日" + parseInt(startTime.substring(8,10)) + ":" + parseInt(startTime.substring(10,12));
854
    	return startTime.substring(4,6) + "月" + startTime.substring(6,8) + "日 " + startTime.substring(8,10) + ":" + startTime.substring(10,12);
848 855
    }
849 856
  
850 857
}

+ 20 - 7
js/attention-list.js

@ -61,6 +61,7 @@ $(function() {
61 61
			dataType: 'json', //数据格式类型
62 62
			type: 'get', //http请求类型
63 63
			success: function(data) {
64
				console.log(data);
64 65
				$("#resources").html("");
65 66
				if(data.success && data.data.data != "") {
66 67
					var datalistd = data.data.data;
@ -145,15 +146,27 @@ $(function() {
145 146
	/*资源数据遍历*/
146 147
	function ResourcesEach(datalistd) {
147 148
		$.each(datalistd, function(index, item) {
148

149
			var oName;
149 150
			/*获取头像*/
150 151
			if(item.resource.images.length) {
151
				var img = "/images/resource/" + item.resource.resourceId + "_s.jpg";
152
				var img ='/data/resource/' + item.resource.images[0].imageSrc 
152 153
			} else {
153 154
				var img = "../images/default-resource.jpg";
154 155
			}
155

156
			var title = item.resource.editProfessor.title || "";
156
			if(item.resource.editProfessor) {
157
				var stl = autho(item.resource.editProfessor.authType,item.resource.editProfessor.orgAuth, item.resource.editProfessor.authStatus);
158
				oName=item.resource.editProfessor.name;
159
			}else {
160
				var stl={};
161
				stl.sty="";
162
				stl.title="";
163
					if(item.resource.organization.authStatus==3) {	
164
						stl.sty="authicon-com-ok";
165
						stl.title="认证企业";	
166
					}
167
					oName=item.resource.organization.name;
168
				 }
169
			/*var title = item.resource.editProfessor.title || "";
157 170
			var office = item.resource.editProfessor.office || "";
158 171
			var orgName = item.resource.editProfessor.orgName || "";
159 172
			var address = item.resource.editProfessor.address || "";
@ -169,7 +182,7 @@ $(function() {
169 182
			}
170 183
			if(address != "") {
171 184
				address = " | " + address;
172
			}
185
			}*/
173 186

174 187
			var li = document.createElement('li');
175 188

@ -178,8 +191,8 @@ $(function() {
178 191
				'<div class="mediaBody" style="float:left;width:450px;overflow:hidden;">' +
179 192
				'<span class=" ellipsisSty listtit">' + item.resource.resourceName + '</span>' +
180 193
				'<p class="ellipsisSty listtit2">' + item.resource.supportedServices + '</p>' +
181
				'<span class="listtit">' + item.resource.editProfessor.name + '<em class="authicon authicon-cu" style="position:absolute;margin:4px 0 0 2px ;"></em></span>' +
182
				'<p class="listtit2"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' +
194
				'<span class="listtit">' +oName+ '<em class="authiconNew '+stl.sty+'" title="'+stl.title+'"></em></span>' +
195
				//'<p class="listtit2"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' +
183 196
				'</div></a></li>';
184 197
			$("#resources").append(li);
185 198
			

+ 10 - 0
js/discover.js

@ -70,6 +70,16 @@ $(function() {
70 70
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/resource/" + datalist.image + ");");
71 71
							}
72 72
							userFun(datalist.owner, $itemlist);
73
						} else if(type == 4) { //企业资源
74
							$itemlist.find("#newstype").text("资源");
75
							$itemlist.find("#newstype").addClass("resourceLabel");
76
							$itemlist.find("#newsimg").addClass("resource-default");
77
							$itemlist.find("#userimg").addClass("cmplogohead");
78
							$itemlist.find("#newsurl").attr("href", "resourceShow.html?resourceId=" + datalist.id);
79
							if(datalist.image) {
80
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/resource/" + datalist.image + ");");
81
							}
82
							cmpFun(datalist.owner, $itemlist)
73 83
						}
74 84
					}
75 85
					//分页

+ 5 - 4
js/information.brow.js

@ -719,7 +719,7 @@ $(".attentList").on("click","li",function(){
719 719
	
720 720
	/*科研文章*/
721 721
	$.ajax({
722
		url: "/ajax/article/qaPro",
722
		url: "/ajax/article/qaProPublish",
723 723
		dataType: 'json', //数据格式类型
724 724
		type: 'GET', //http请求类型
725 725
		data: {
@ -746,7 +746,7 @@ $(".attentList").on("click","li",function(){
746 746
						add += '</a></li>';
747 747
						$add = $(add);
748 748
						$("#reachArticle").append($add);
749
						$add.find('.tagsBox span').text(data.data[i].industry); //data.data[i].subject
749
						$add.find('.tagsBox span').text(data.data[i].subject); //data.data[i].subject
750 750
						if(data.data[i].articleImg) {
751 751
							$add.find(".art_img").attr("style", "background: url(/data/article/" + data.data[i].articleImg + ") 0 0 no-repeat;background-size:cover;");
752 752
						}
@ -767,13 +767,14 @@ $(".attentList").on("click","li",function(){
767 767
	
768 768
	//科研资源
769 769
	$.ajax({
770
		"url": "/ajax/resource/qapro",
770
		"url": "/ajax/resource/qaProPublish",
771 771
		"type": "get",
772 772
		"async": false,
773 773
		"data": {
774 774
			"professorId": professorId
775 775
		},
776 776
		"success": function(data) {
777
			console.log(data);
777 778
			if(data.success) {
778 779
				var pp=ifUserType(professorId)
779 780
				if(!pp.authType2) {
@ -810,7 +811,7 @@ $(".attentList").on("click","li",function(){
810 811
						$("#sharescrollbox").append(add);
811 812
						$('.applicant').eq(i).attr("resourceId", data.data[i].resourceId);
812 813
813
						$(".resourceImg").eq(i).attr("src", "/images/resource/" + data.data[i].resourceId + ".jpg");
814
						$(".resourceImg").eq(i).attr("src","/data/resource/" + data.data[i].images[0].imageSrc);
814 815
						$(".resourceImg").load(function() {})
815 816
							.error(function() {
816 817
								$(this).attr("src", "/images/default-resource.jpg");

+ 2 - 2
js/information.js

@ -2025,7 +2025,7 @@ $(function() {
2025 2025
		})
2026 2026
		//科研资源
2027 2027
	$.ajax({
2028
		"url": "/ajax/resource/qapro",
2028
		"url": "/ajax/resource/qaProPublish",
2029 2029
		"type": "get",
2030 2030
		"data": {
2031 2031
			"professorId": userid
@ -2061,7 +2061,7 @@ $(function() {
2061 2061
						});*/
2062 2062

2063 2063
					if(data.data[i].images.length) {
2064
						$add.find(".resourceImg").attr("src", "/images/resource/" + data.data[i].resourceId + ".jpg");
2064
						$add.find(".resourceImg").attr("src","/data/resource/" + data.data[i].images[0].imageSrc);
2065 2065
					} else {
2066 2066
						$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
2067 2067
					}

+ 167 - 1
js/resourceImport.js

@ -1,3 +1,169 @@
1 1
$(document).ready(function(){
2
	
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus(); //判断个人是否登录
4
	var userid = $.cookie("userid");
5
	var resourceId;
6
	/*资源列表查询*/
7
	function getRecourceMe(n,isbind) {
8
		var resourceNameVa=$("#resouceName").val();
9
		var $info={};
10
		$info.professorId=userid;
11
		$info.pageSize=10;
12
		if(resourceNameVa !="") {
13
			$info.key=resourceNameVa;
14
		}
15
		$info.pageNo=n;
16
		$.ajax({
17
			"url": "/ajax/resTmp/pq",
18
			"type": "GET",
19
			"success": function(data) {
20
				if(data.success) {
21
					$(".importUl").html("");
22
					if(data.data.data.length==0) {
23
						$("#noresource").removeClass("displayNone");
24
						return;
25
					}else{
26
						$("#noresource").addClass("displayNone");
27
					}
28
					resourceHtml(data.data.data);
29
					if(isbind == true) {
30
								$(".tcdPageCode").createPage({
31
									pageCount: Math.ceil(data.data.total / data.data.pageSize),
32
									current: data.data.pageNo,
33
									backFn: function(p) {
34
										getRecourceMe(p,false);
35
									}
36
								});
37
							}
38
				}
39
			},
40
			"data": $info,
41
			dataType: "json",
42
			'error': function() {
43
				$.MsgBox.Alert('提示', '服务器连接超时!');
44
			}
45
		});
46
	}
47
	 getRecourceMe(1,true);
48
function resourceHtml($data) {
49
 	for(var i = 0; i < $data.length; i++) {
50
 		var imgSrc = "../images/default-resource.jpg";
51
 		var oSpec="",orgName="",domain="";
52
 		if($data[i].img) {
53
 			imgSrc = "/data/resource/" + $data[i].img;
54
 		}
55
 		if($data[i].spec) {
56
 			oSpec="厂商型号:"+$data[i].spec
57
 		}
58
 		if($data[i].orgName) {
59
 			orgName="所属机构:"+$data[i].orgName;
60
 		}
61
 		if($data[i].domain) {
62
 			domain="关键词:"+$data[i].domain;
63
 		}
64
 		var oImg="";
65
 		if($data[i].img) {
66
 			oImg=$data[i].img;
67
 		}
68
 		var oName1=$data[i].name;
69
 		var oId=$data[i].id;
70
 		var oIndu=$data[i].majorFunc
71
 		$.ajax({
72
			"url": "/ajax/resource/isImportRes",
73
			"type": "GET",
74
			"async":false,
75
			"success": function(data) {
76
				if(data.success) {
77
					var oT,oText;
78
					if(data.data) {
79
						oT="importSpan-2";
80
						oText="已导入";
81
					}else{
82
						oT="importSpan-1";
83
						oText="导入";
84
					}
85
					var oString = '<li>' +
86
		 			'<a class="flexCenter">' +
87
		 			'<div class="madiaHead resouseHead" style="background-image: url('+imgSrc+');"></div>' +
88
		 			'<div class="madiaInfo">' +
89
		 			'<p class="h1Font ellipsisSty">'+oName1+'</p>' +
90
		 			'<p class="h2Font ellipsisSty">'+oSpec+'</p>' +
91
		 			'<p class="h2Font ellipsisSty">'+orgName+'</p>' +
92
		 			'<p class="h2Font ellipsisSty">'+domain+'</p>' +
93
		 			'</div>' +
94
		 			'</a>' +
95
		 			'<div class="importBtn">' +
96
		 			'<span class="importResource '+oT+'" data-id="'+oId+'" data-name="'+oName1+'" data-indu="'+oIndu+'" flag="1" data-img="'+oImg+'">'+oText+'</span>' +
97
		 			/*'<span class="importSpan-2">再次导入</span>' +
98
		 			'<span class="importSpan-3">已导入</span>' +*/
99
		 			'</div>' +
100
		 			'</li>'
101
		 			$(".importUl").append(oString);
102
				}
103
			},
104
			"data": {
105
				id:userid,
106
				resourceTmpId:$data[i].id,
107
			},
108
			dataType: "json",
109
			'error': function() {
110
				$.MsgBox.Alert('提示', '服务器连接超时!');
111
			}
112
		});
113
 	}
114
 }
115
	/*输入资源名称限制字数*/
116
	$("#resouceName").bind({
117
		keyup: function() {
118
			if($(this).val().length > 30) {
119
				$(this).val($(this).val().substr(0, 30));
120
			}
121
		}
122
	});
123
	/*点击搜索*/
124
	$(".searchSpan").click(function(){
125
		$(".tcdPageCode").remove();
126
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
127
		getRecourceMe(1,true);
128
	})
129

130
	/*导入资源*/
131
	$(".importUl").on("click",".importResource",function(){
132
		var oF=$(this).attr("flag");
133
		if(oF!=1) return;
134
		var $this=$(this);
135
		$.ajax({
136
			"url": "/ajax/resource/importRes",
137
			"type": "POST",
138
			"success": function(data) {
139
				if(data.success) {
140
					$this.text("导入成功").addClass("importSpan-3").removeClass("importSpan-1").removeClass("importSpan-2").attr("flag","2").css("cursor","auto");
141
				}
142
					
143
			},
144
			"data": {
145
				resourceTmpId:$(this).attr("data-id"),
146
				resourceName:$(this).attr("data-name"),
147
				professorId:userid,
148
				supportedServices:$(this).attr("data-indu"),
149
				imgSrc:$(this).attr("data-img")
150
			},
151
			dataType: "json",
152
			'error': function() {
153
				$.MsgBox.Alert('提示', '服务器连接超时!');
154
			}
155
		});
156
	});
157
	 
158
	/*hover事件*/
159
	$(".importUl").on({
160
		mouseover:function() {
161
			$(this).text("再次导入")
162
			},
163
		mouseout:function() {
164
			$(this).text("已导入")
165
			}
166
		},".importResource:contains(已导入),.importResource:contains(再次导入)"
167
	)
168

3 169
})

+ 21 - 15
js/resourceIssue.js

@ -118,9 +118,7 @@ $(document).ready(function() {
118 118
		if($len == 0 || $len == 1) {
119 119
			var oRemove = $("#fileList").find("dd");
120 120
			oRemove.eq(oRemove.length - 1).remove();
121
		} else if($len == 2) {
122
			$("#uploadDd").hide();
123
		}
121
		} 
124 122
		var $li = $(
125 123
				'<dd>' +
126 124
					'<div class="imgItem" id="' + file.id + '">'+
@ -183,7 +181,7 @@ $(document).ready(function() {
183 181
			temp.splice(oNum,1);
184 182
		}
185 183
		$(this).parent().parent().remove();
186
		$("#uploadDd").show();
184
		
187 185
		var $len = $("#fileList").find("img").length;
188 186
		if($len != 2) {
189 187
			$("#fileList").append("<dd></dd>")
@ -207,11 +205,11 @@ $(document).ready(function() {
207 205
	/*关键词*/
208 206
	$("#keywordName").bind({
209 207
		focus: function() {
210
			$("#keywordPrompt").show();
208
			$("#keywordPrompt").show().text('最多可添加5个关键词、每个关键词最多10个字');
211 209
			$("#keyList").show();
212 210
		},
213 211
		blur: function() {
214
			$("#keywordPrompt").hide();
212
			$("#keywordPrompt").text('');
215 213
			setTimeout(function(){
216 214
				$("#keyList").show();
217 215
			},200)
@ -226,20 +224,21 @@ $(document).ready(function() {
226 224
					"success": function(data) {
227 225
						console.log(data);
228 226
						if(data.success) {
229
							if(data.data==null) {
227
							if(data.data.length==0) {
230 228
								$("#keyList ul").html("");
231 229
							}else{
232 230
								var oSr="";
233 231
								for(var i=0;i<data.data.length;i++) {
234
									oSr+='<li><p class="h2Font">'+data.data[i].name+'</p></li>'
232
									oSr+='<li><p class="h2Font">'+data.data[i].caption+'</p></li>'
235 233
								}
236
								$("#department ul").html(oSr);
234
								$("#keyList ul").html(oSr);
237 235
							}
236
						}else {
237
							$("#keyList ul").html("");
238 238
						}
239 239
					},
240 240
					"data": {
241
						"key":$(this).val(),
242
						rows: 3
241
						"key":$(this).val()
243 242
					},
244 243
					dataType: "json",
245 244
					'error':function() {
@ -248,18 +247,25 @@ $(document).ready(function() {
248 247
			});
249 248
			}
250 249
		}
250
	});
251
	$("#keyList ul").on("click","li",function(){
252
		 keyWord($(this).find("p").text());
253
		 $("#keyList ul").html("");
251 254
	})
252 255
	/*添加关键词*/
253 256
	$("#addKeyword").click(function() {
254
		var oKeywordName = $("#keywordName").val();
257
		 keyWord($("#keywordName").val());
258
	})
259
	function keyWord(atl) {
260
		var oKeywordName = atl;
255 261
		var keywordListLength = $("#keywordList").find("li");
256 262
		if(oKeywordName.length == 0) {
257
			$.MsgBox.Alert('提示', '关键词输入不能为空');
263
			$("#keywordPrompt").text('关键词输入不能为空');
258 264
			return;
259 265
		}
260 266
		for(var i = 0; i < keywordListLength.length; i++) {
261 267
			if(oKeywordName == keywordListLength.find("p").eq(i).text()) {
262
				$.MsgBox.Alert('提示', '该关键词已存在');
268
				$("#keywordPrompt").text('该关键词已存在');
263 269
				return;
264 270
			}
265 271
		}
@ -269,7 +275,7 @@ $(document).ready(function() {
269 275
		if((keywordListLength.length + 1) == 5) {
270 276
			$("#keywordHide").hide();
271 277
		}
272
	})
278
	}
273 279
	/*删除关键词*/
274 280
	$("#keywordList").on("click", ".closeThis", function() {
275 281
		$(this).parent().remove();

+ 8 - 6
js/resourceList.js

@ -1,4 +1,5 @@
1 1
$(document).ready(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2 3
	loginStatus(); //判断个人是否登录
3 4
	var userid = $.cookie("userid");
4 5
	var resourceId;
@ -7,7 +8,7 @@ $(document).ready(function(){
7 8
		var resourceNameVa=$("#resouceName").val();
8 9
		var $info={};
9 10
		$info.professorId=userid;
10
		$info.pageSize=3;
11
		$info.pageSize=10;
11 12
		if(resourceNameVa !="") {
12 13
			$info.key=resourceNameVa;
13 14
		}
@ -20,10 +21,10 @@ $(document).ready(function(){
20 21
				if(data.success) {
21 22
					$("#resourceList").html("");
22 23
					if(data.data.data.length==0) {
23
						$("#resourceList").html("暂无数据").css("text-align","center");
24
						$("#noresource").removeClass("displayNone");
24 25
						return;
25 26
					}else{
26
						$("#resourceList").css("text-align","");
27
						$("#noresource").addClass("displayNone");
27 28
					}
28 29
					resourceHtml(data.data.data);
29 30
					if(isbind == true) {
@ -48,7 +49,7 @@ $(document).ready(function(){
48 49
	 function resourceHtml($data) {
49 50
	 	for(var i=0;i<$data.length;i++) {
50 51
	 		var imgSrc="../images/default-resource.jpg";
51
	 		var oTime,pageview="",draftLable="",oHtml;
52
	 		var oTime,pageview="",draftLable="",oHtml,oLi='';
52 53
	 		if($data[i].images.length) {
53 54
	 			imgSrc="/data/resource/"+$data[i].images[0].imageSrc
54 55
	 		}
@ -56,13 +57,14 @@ $(document).ready(function(){
56 57
	 		if($data[i].status==0) {
57 58
	 			oTime="修改于 "+timeTran($data[i].modifyTime);
58 59
	 			draftLable='<span class="draftLable">草稿</span>';
59
	 			oHtml="resourceIssue.html"
60
	 			oHtml="resourceIssue.html";
61
	 			oLi="class='draftList'"
60 62
	 		}else{
61 63
	 			oTime="发布于 "+timeTran($data[i].publishTime);
62 64
	 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
63 65
	 			oHtml="resourceShow.html"
64 66
	 		}
65
	 	var oStr='<li>'+
67
	 	var oStr='<li '+oLi+'>'+
66 68
				'<a href="'+oHtml+'?resourceId='+$data[i].resourceId+'" target="_blank">'+
67 69
					'<div class="madiaHead resouseHead" style="background-image: url('+imgSrc+');"></div>'	+						
68 70
						'<div class="madiaInfo">'+					

+ 104 - 21
js/resourcePreview.js

@ -50,28 +50,56 @@ $(document).ready(function() {
50 50
	function resourceHtml($da) {
51 51
		$("#resourceName").text($da.resourceName); //名字
52 52
		$("#application").text($da.supportedServices); //应用用途
53
		if($da.editProfessor.orgName) { //所属机构
54
			$("#organizationName").text($da.editProfessor.orgName).parents("li").show();
55
		}
56
		$("#nameS").text($da.editProfessor.name); //"office": "", //职位 "title": "", //职称
57
		if($da.editProfessor.title) {
58
			$("#titleOffice").text($da.editProfessor.title);
59
		} else {
60
			if($da.editProfessor.office) {
61
				$("#titleOffice").text($da.editProfessor.office);
53
		if($da.editProfessor) {
54
			$("#person,#orgName").show();
55
			if($da.editProfessor.orgName) { //所属机构
56
				$("#organizationName").text($da.editProfessor.orgName).parents("li").show();
62 57
			}
63
		}
64
		if($da.editProfessor.orgName) {
65
			$("#orgType").text($da.editProfessor.orgName);
66
		}
67
		professorId = $da.editProfessor.id;
68
		/*if(userid!=professorId) {
69
			$(".goSpan").show();
70
		}*/
71
		var professorFlag = autho($da.editProfessor.authType, $da.editProfessor.orgAuth, $da.editProfessor.authStatus);
72
		$("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
73
		if($da.editProfessor.hasHeadImage == 1) {
74
			$("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
58
			$("#nameS").text($da.editProfessor.name); //"office": "", //职位 "title": "", //职称
59
			if($da.editProfessor.title) {
60
				$("#titleOffice").text($da.editProfessor.title);
61
			} else {
62
				if($da.editProfessor.office) {
63
					$("#titleOffice").text($da.editProfessor.office);
64
				}
65
			}
66
			if($da.editProfessor.orgName) {
67
				$("#orgType").text($da.editProfessor.orgName);
68
			}
69
			professorId = $da.editProfessor.id;
70
			/*if(userid!=professorId) {
71
				$(".goSpan").show();
72
			}*/
73
			var professorFlag = autho($da.editProfessor.authType, $da.editProfessor.orgAuth, $da.editProfessor.authStatus);
74
			$("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
75
			if($da.editProfessor.hasHeadImage == 1) {
76
				$("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
77
			}
78
		}else {
79
			$("#enterprise,#resPerson").show();
80
			if($da.organization.hasOrgLogo) {
81
						$("#Qimg").attr("style", "background-image: url(/images/org/" + $da.organization.id + ".jpg);");
82
					}
83
					if($da.organization.authStatus==3){
84
						$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
85
					}
86
					$("#Qname").text($da.organization.name);
87
					$("#Qindustry").text($da.organization.subject);
88
					if($da.organization.orgType==2){
89
						$("#QorgType").text("上市企业");
90
					}else if($da.organization.orgType==3){
91
						$("#QorgType").text("国有企业");
92
					}else if($da.organization.orgType==4){
93
						$("#QorgType").text("合资企业");
94
					}else if($da.organization.orgType==5){
95
						$("#QorgType").text("私人企业");
96
					}else if($da.organization.orgType==6){
97
						$("#QorgType").text("外资企业");
98
					}else if($da.organization.orgType==7){
99
						$("#QorgType").text("初创企业");
100
					}else{
101
						$("#QorgType").text("");
102
					}
75 103
		}
76 104
		if($da.spec) { //厂商型号
77 105
			$("#modelNumber").text($da.spec).parents("li").show();
@ -325,4 +353,59 @@ function cancelCollectionExpert(watchObject,num) {
325 353
	});
326 354

327 355
}
356
selUse();
357
	function selUse() {
358
		$.ajax({
359
			url: "/ajax/resource/qaLinkman",
360
			type: "GET",
361
			timeout: 10000,
362
			dataType: "json",
363
			async:true,
364
			data: {
365
				"resourceId": resourceId,
366
			},
367
			success: function(data, textState) {
368
				console.log(data)
369
				if(data.success) {
370
					unauthUser(data.data);
371
				}
372
			},
373
			error: function(XMLHttpRequest, textStats, errorThrown) {
374
				$.MsgBox.Alert('提示', '服务器请求失败')
375
			}
376
		})
377
	}
378
	function unauthUser($res) {
379
	var osting=""
380
	for(var i = 0; i < $res.length; i++) {
381
		var img;
382
		var styC="";
383
		var oClass = autho($res[i].professor.authType, $res[i].professor.orgAuth, $res[i].professor.authStatus);
384
		var oTitle="";
385
		if($res[i].professor.title) {
386
			oTitle=$res[i].professor.title;
387
		}else{
388
			if($res[i].professor.office) {
389
				oTitle=$res[i].professor.office;
390
			}
391
		}
392
		if($res[i].professor.hasHeadImage) {
393
				img = "/images/head/" + $res[i].professor.id + "_l.jpg";
394
			} else {
395
				img = "../images/default-photo.jpg"
396
			}
397
		var oSt = '<li>'
398
		oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url('+img+');"></div>'
399
		oSt += '<div class = "madiaInfo">'
400
		oSt += '<p class = "ellipsisSty">'
401
		oSt += '<span class = "h1Font" id="name">'+$res[i].professor.name+'</span><em class="authicon '+oClass.sty+'" title="'+oClass.title+'"></em >'
402
		oSt += '</p>'
403
		oSt += '<p class="h2Font ellipsisSty">'+oTitle+'</p>'
404
		oSt += '</div>'
405
		oSt += '<div class="'+styC+'" flag=1></div>'
406
		oSt += '</li>'
407
		osting+=oSt;
408
	}
409
	$("#expertli").html(osting);
410
}
328 411
})

+ 373 - 223
js/resourceShow.js

@ -11,7 +11,7 @@ $(document).ready(function() {
11 11
		$('.shareCode').stop(true, false).fadeToggle();
12 12
	});
13 13
	var resourceId = GetQueryString("resourceId");
14
	ifCollection(resourceId,2)
14
	ifCollection(resourceId, 2)
15 15
	var professorId = "";
16 16
	getRecourceMe();
17 17
	/*获取资源信息*/
@ -51,31 +51,59 @@ $(document).ready(function() {
51 51
	function resourceHtml($da) {
52 52
		$("#resourceName").text($da.resourceName); //名字
53 53
		$("#application").text($da.supportedServices); //应用用途
54
		if($da.orgName) { //所属机构
55
			$("#organizationName").text($da.orgName).parents("li").show();
56
		}
57
		$("#nameS").text($da.editProfessor.name);
58
		if($da.editProfessor.title) {
59
			$("#titleOffice").text($da.editProfessor.title);
60
		} else {
61
			if($da.editProfessor.office) {
62
				$("#titleOffice").text($da.editProfessor.office);
54
		if($da.editProfessor) {
55
			$("#person,#orgName").show();
56
			if($da.orgName) { //所属机构
57
				$("#organizationName").text($da.orgName).parents("li").show();
63 58
			}
64
		}
65
		if($da.editProfessor.orgName) {
66
			$("#orgType").text($da.editProfessor.orgName);
67
		}
68
		professorId = $da.editProfessor.id;
69
		console.log(professorId);
70
		console.log(userid);
71
		if(userid!=professorId) {
72
			ifCollection(professorId,1)
73
			$(".goSpan").show();
74
		}
75
		var professorFlag = autho($da.editProfessor.authType, $da.editProfessor.orgAuth, $da.editProfessor.authStatus);
76
		$("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
77
		if($da.editProfessor.hasHeadImage == 1) {
78
			$("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
59
			$("#nameS").text($da.editProfessor.name);
60
			if($da.editProfessor.title) {
61
				$("#titleOffice").text($da.editProfessor.title);
62
			} else {
63
				if($da.editProfessor.office) {
64
					$("#titleOffice").text($da.editProfessor.office);
65
				}
66
			}
67
			if($da.editProfessor.orgName) {
68
				$("#orgType").text($da.editProfessor.orgName);
69
			}
70
			professorId = $da.editProfessor.id;
71
			console.log(professorId);
72
			console.log(userid);
73
			if(userid != professorId) {
74
				ifCollection(professorId, 1)
75
				$(".goSpan").show();
76
			}
77
			var professorFlag = autho($da.editProfessor.authType, $da.editProfessor.orgAuth, $da.editProfessor.authStatus);
78
			$("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
79
			if($da.editProfessor.hasHeadImage == 1) {
80
				$("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
81
			}
82
		}else{
83
			$("#enterprise,#resPerson").show();
84
			if($da.organization.hasOrgLogo) {
85
						$("#Qimg").attr("style", "background-image: url(/images/org/" + $da.organization.id + ".jpg);");
86
					}
87
					if($da.organization.authStatus==3){
88
						$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
89
					}
90
					$("#Qname").text($da.organization.name);
91
					$("#Qindustry").text($da.organization.subject);
92
					if($da.organization.orgType==2){
93
						$("#QorgType").text("上市企业");
94
					}else if($da.organization.orgType==3){
95
						$("#QorgType").text("国有企业");
96
					}else if($da.organization.orgType==4){
97
						$("#QorgType").text("合资企业");
98
					}else if($da.organization.orgType==5){
99
						$("#QorgType").text("私人企业");
100
					}else if($da.organization.orgType==6){
101
						$("#QorgType").text("外资企业");
102
					}else if($da.organization.orgType==7){
103
						$("#QorgType").text("初创企业");
104
					}else{
105
						$("#QorgType").text("");
106
					}
79 107
		}
80 108
		if($da.spec) { //厂商型号
81 109
			$("#modelNumber").text($da.spec).parents("li").show();
@ -88,23 +116,27 @@ $(document).ready(function() {
88 116
		}
89 117
		if($da.subject) {
90 118
			var oSub = $da.subject.split(",");
91
			interestingResources(oSub);
119
			if($da.resourceType==1) {
120
				interestingResources(oSub,$da.professorId,0);
121
			}else{
122
				interestingResources(oSub,$da.orgId,1);
123
			}
92 124
			var oSt = "";
93 125
			for(var i = 0; i < oSub.length; i++) {
94 126
				oSt += '<li><p class="h2Font">' + oSub[i] + '</p></li>'
95 127
			}
96 128
			$(".tagList").html(oSt);
97
		}else {
129
		} else {
98 130
			$(".aboutTit:contains('您可能感兴趣的资源')").parent().hide();
99 131
		}
100 132
		if($da.descp) { //编辑器
101 133
			$("#descp").html($da.descp).parents("li").show();
102 134
		}
103 135
		var weibotitle = $da.resourceName;
104
		var weibourl =window.location.href;
136
		var weibourl = window.location.href;
105 137
		//return;
106 138
		if($da.images.length) {
107
			var weibopic ="http://"+window.location.host+"/data/resource/" + $da.images[0].imageSrc;
139
			var weibopic = "http://" + window.location.host + "/data/resource/" + $da.images[0].imageSrc;
108 140
			$("#firstFigure").attr({
109 141
				"src": "/data/resource/" + $da.images[0].imageSrc,
110 142
				"rel": "/data/resource/" + $da.images[0].imageSrc
@ -132,11 +164,14 @@ $(document).ready(function() {
132 164
				arr += oString;
133 165
			}
134 166
			$("#thumblist").html(arr);
135
		}else{
136
			var weibopic ="http://"+window.location.host+"../images/default-resource.jpg";
137
			$("#firstFigure").attr({"src":'../images/default-resource.jpg',"rel":'../images/default-resource.jpg'});
167
		} else {
168
			var weibopic = "http://" + window.location.host + "../images/default-resource.jpg";
169
			$("#firstFigure").attr({
170
				"src": '../images/default-resource.jpg',
171
				"rel": '../images/default-resource.jpg'
172
			});
138 173
		}
139
		$("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+weibotitle+"&url="+weibourl+"&pic="+weibopic+"&ralateUid=6242830109&searchPic=false&style=simple");
174
		$("#weibo").attr("href", "http://service.weibo.com/share/share.php?appkey=3677230589&title=" + weibotitle + "&url=" + weibourl + "&pic=" + weibopic + "&ralateUid=6242830109&searchPic=false&style=simple");
140 175
	}
141 176
	/*点击名字及头像跳转个人浏览页面*/
142 177
	$("#nameS,#headImg").click(function() {
@ -150,7 +185,7 @@ $(document).ready(function() {
150 185
			"success": function(data) {
151 186
				console.log(data);
152 187
				if(data.success) {
153
					if(data.data.length==0) {
188
					if(data.data.length == 0) {
154 189
						$("#oArticle").parent().hide();
155 190
						$(".aboutTit:contains('相关文章')").hide();
156 191
						return;
@ -173,21 +208,37 @@ $(document).ready(function() {
173 208
	function relatedArticlesHtml($html) {
174 209
		for(var i = 0; i < $html.length; i++) {
175 210
			(function(n) {
211
				var oURL;
212
				if($html[i].article.articleType==1) {
213
					oURL="/ajax/professor/baseInfo/" + $html[i].article.professorId;
214
				}else{
215
					oURL="/ajax/org/" + $html[i].article.orgId;
216
				}
176 217
				$.ajax({
177
					"url": "/ajax/professor/baseInfo/" + $html[i].article.professorId,
218
					"url":oURL,
178 219
					"type": "GET",
179 220
					"success": function(data) {
180 221
						if(data.success) {
181
							var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
222
							if($html[n].article.articleType==1) {
223
								var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
224
							}else {
225
								var stl={};
226
								stl.sty="";
227
								stl.title="";
228
								if(data.data.authStatus==3) {
229
									stl.sty="authicon-com-ok";
230
									stl.title="认证企业";
231
								}
232
							}
182 233
							var str = ""
183
							str += '<li data-id="'+$html[n].article.articleId+'">'
234
							str += '<li data-id="' + $html[n].article.articleId + '">'
184 235
							if($html[n].article.articleImg) {
185 236
								str += '<div class="madiaHead artHead" style="background-image: url(/data/article/' + $html[n].article.articleImg + ')"></div>'
186 237
							} else {
187 238
								str += '<div class="madiaHead artHead"></div>'
188 239
							}
189
							str += '<div class="madiaInfo">'
190
							str += '<p class="h1Font ellipsisSty-2">' + $html[n].article.articleTitle + '</p>'
240
							str += '<div class="madiaInfo"  style="margin-top:18px;padding-bottom:8px">'
241
							str += '<p class="h1Font ellipsisSty">' + $html[n].article.articleTitle + '</p>'
191 242
							str += '<p><span class="h1Font">' + data.data.name + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
192 243
							str += '</div></li>'
193 244
							$("#oArticle").append(str);
@ -203,30 +254,38 @@ $(document).ready(function() {
203 254
		}
204 255
	}
205 256
	/*文章跳转*/
206
	$("#oArticle").on("click","li",function(){
207
		location.href="articalShow.html?articleId="+$(this).attr("data-id");
257
	$("#oArticle").on("click", "li", function() {
258
		location.href = "articalShow.html?articleId=" + $(this).attr("data-id");
208 259
	})
209 260
	/*感兴趣的资源*/
210
	function interestingResources(arry) {
261
	function interestingResources(arry,oId,oNu) {
262
		var oUrl;
263
		var $in={};
264
		$in.keys= arry;
265
		$in.resourceId= resourceId;
266
		
267
		if(oNu==0) {
268
				$in.professorId= oId;
269
				oUrl="/ajax/resource/ralateRes";
270
		}else {
271
			$in.orgId= oId;
272
			oUrl="/ajax/resource/orgRalateRes";
273
		}
211 274
		$.ajax({
212
			"url": "/ajax/resource/ralateRes",
275
			"url": oUrl,
213 276
			"type": "GET",
214 277
			"success": function(data) {
215 278
				console.log(data);
216 279
				if(data.success) {
217
					if(data.data.length==0) {
280
					if(data.data.length == 0) {
218 281
						$(".aboutTit:contains('您可能感兴趣的资源')").parent().hide();
219 282
						return;
220 283
					}
221 284
					interestingResourcesHtml(data.data);
222 285
				}
223 286
			},
224
			"data": {
225
				"keys": arry,
226
				"resourceId": resourceId,
227
				"professorId":professorId
228
			},
229
			"traditional":true,
287
			"data":$in,
288
			"traditional": true,
230 289
			dataType: "json",
231 290
			'error': function() {
232 291
				$.MsgBox.Alert('提示', '服务器连接超时!');
@ -235,35 +294,57 @@ $(document).ready(function() {
235 294
	}
236 295
	/*感兴趣资源的html*/
237 296
	function interestingResourcesHtml($respond) {
238
		for(var i=0;i<$respond.length;i++) {
239
			var stl = autho($respond[i].editProfessor.authType, $respond[i].editProfessor.orgAuth, $respond[i].editProfessor.authStatus);
240
			var oStr='';
241
				if($respond[i].images.length) {
242
					oStr+='<li data-id="'+$respond[i].resourceId+'"><div class="madiaHead resouseHead"style="background-image: url(/data/resource/'+$respond[i].images[0].imageSrc+')"></div>'
243
				}else {
244
					oStr+='<li data-id="'+$respond[i].resourceId+'"><div class="madiaHead resouseHead"></div>'
297
		for(var i = 0; i < $respond.length; i++) {
298
			if($respond[i].organization) {
299
				var stl={};
300
				stl.sty="";
301
				stl.title="";
302
				if($respond[i].organization.authStatus==3) {
303
					stl.sty="authicon-com-ok";
304
					stl.title="认证企业";
245 305
				}
246
				oStr+='<div class="madiaInfo">'
247
				oStr+='<p class="h1Font">'+$respond[i].resourceName+'</p>'
248
				oStr += '<p><span class="h1Font">' + $respond[i].editProfessor.name + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
249
				oStr+='<p class="h2Font ellipsisSty">用途:<span>'+$respond[i].supportedServices+'</span></p>'
250
				oStr+='</div></li>'
306
				var name= $respond[i].organization.name;
307
			}else {
308
				var stl = autho($respond[i].editProfessor.authType, $respond[i].editProfessor.orgAuth, $respond[i].editProfessor.authStatus);
309
				var name= $respond[i].editProfessor.name;
310
			}
311
			
312
			var oStr = '';
313
			if($respond[i].images.length) {
314
				oStr += '<li data-id="' + $respond[i].resourceId + '"><div class="madiaHead resouseHead"style="background-image: url(/data/resource/' + $respond[i].images[0].imageSrc + ')"></div>'
315
			} else {
316
				oStr += '<li data-id="' + $respond[i].resourceId + '"><div class="madiaHead resouseHead"></div>'
317
			}
318
			oStr += '<div class="madiaInfo">'
319
			oStr += '<p class="h1Font">' + $respond[i].resourceName + '</p>'
320
			oStr += '<p><span class="h1Font">' + name + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
321
			oStr += '<p class="h2Font ellipsisSty">用途:<span>' + $respond[i].supportedServices + '</span></p>'
322
			oStr += '</div></li>'
251 323
			$("#resourceList").append(oStr);
252 324
		}
253 325
	}
254 326
	/*点击资源列表*/
255
	$("#resourceList").on("click","li",function(){
256
		location.href="resourceShow.html?resourceId="+$(this).attr("data-id");
327
	$("#resourceList").on("click", "li", function() {
328
		location.href = "resourceShow.html?resourceId=" + $(this).attr("data-id");
257 329
	})
258 330
	/*点击咨询*/
259 331
	$("#consultin").on("click", function() {
260 332
		clickResouceConsultHandler();
261 333
	});
334
	$("#expertli").on("click", ".addbtn", function() {
335
		var $this = $(this);
336
		clickResouceConsultHandler($this);
337
	})
262 338
	/*咨询函数*/
263
	function clickResouceConsultHandler() {
339
	function clickResouceConsultHandler($this) {
264 340
		if(userid && userid != "null" && userid != null) {
265 341
			ConsultApply();
266
			concultProInfo(professorId); //专家信息common.js中
342
			if(!professorId) {
343
				concultProInfo($this.attr("data-id")); //专家信息common.js中
344
			} else {
345
				concultProInfo(professorId); //专家信息common.js中
346
			}
347

267 348
			//默认选中资源咨询和标题
268 349
			for(var i = 0; i < $("ul.menucon").children().length; i++) {
269 350
				$("ul.menucon").children().eq(i).removeClass("clicknow");
@ -294,179 +375,248 @@ $(document).ready(function() {
294 375

295 376
	};
296 377
	//点击专家关注
297
$('.attenSpan').click(function(){
298
	if (userid && userid != "null" && userid != null) {
299
		if($(this).is('.attenSpanyes')){
300
			 cancelCollectionExpert(professorId,1)
301
		}else{
302
			collectionExpert(professorId,1);
303
		}	
304
	}else{
305
		$.MsgBox.Alert('提示',"请先登录再进行关注");
306
		$("#mb_btn_ok").val("去登录");
307
		var aele = document.createElement('a');
308
		$("#mb_btnbox").append(aele);
309
		$("#mb_btnbox a").css({
310
			'display': "block",
311
			'width': '100%',
312
			'height': '40px',
313
			'position': 'absolute',
314
			'bottom': '-6px',
315
			'left': '0'
316
		});
317
		aele.setAttribute('href', '../login.html');
318
	}
319
})
378
	$('.attenSpan').click(function() {
379
		if(userid && userid != "null" && userid != null) {
380
			if($(this).is('.attenSpanyes')) {
381
				cancelCollectionExpert(professorId, 1)
382
			} else {
383
				collectionExpert(professorId, 1);
384
			}
385
		} else {
386
			$.MsgBox.Alert('提示', "请先登录再进行关注");
387
			$("#mb_btn_ok").val("去登录");
388
			var aele = document.createElement('a');
389
			$("#mb_btnbox").append(aele);
390
			$("#mb_btnbox a").css({
391
				'display': "block",
392
				'width': '100%',
393
				'height': '40px',
394
				'position': 'absolute',
395
				'bottom': '-6px',
396
				'left': '0'
397
			});
398
			aele.setAttribute('href', '../login.html');
399
		}
400
	})
320 401

321
//点击资源收藏
322
$('#attention em').click(function(){
323
	if (userid && userid != "null" && userid != null) {
324
		if($(this).is('.icon-collected')){
325
			 cancelCollectionExpert(resourceId,2)
326
		}else{
327
			 collectionExpert(resourceId,2);
328
		}	
329
	}else{
330
		$.MsgBox.Alert('提示',"请先登录再进行收藏");
331
		$("#mb_btn_ok").val("去登录");
332
		var aele = document.createElement('a');
333
		$("#mb_btnbox").append(aele);
334
		$("#mb_btnbox a").css({
335
			'display': "block",
336
			'width': '100%',
337
			'height': '40px',
338
			'position': 'absolute',
339
			'bottom': '-6px',
340
			'left': '0'
402
	//点击资源收藏
403
	$('#attention em').click(function() {
404
		if(userid && userid != "null" && userid != null) {
405
			if($(this).is('.icon-collected')) {
406
				cancelCollectionExpert(resourceId, 2)
407
			} else {
408
				collectionExpert(resourceId, 2);
409
			}
410
		} else {
411
			$.MsgBox.Alert('提示', "请先登录再进行收藏");
412
			$("#mb_btn_ok").val("去登录");
413
			var aele = document.createElement('a');
414
			$("#mb_btnbox").append(aele);
415
			$("#mb_btnbox a").css({
416
				'display': "block",
417
				'width': '100%',
418
				'height': '40px',
419
				'position': 'absolute',
420
				'bottom': '-6px',
421
				'left': '0'
422
			});
423
			aele.setAttribute('href', '../login.html');
424
		}
425
	})
426

427
	/*判断是非关注专家*/
428
	function ifCollection(getid, num) {
429
		var data = {
430
			"professorId": userid,
431
			"watchObject": getid
432
		}
433
		//alert(JSON.stringify(data))
434
		$.ajax({
435
			url: "/ajax/watch/hasWatch",
436
			data: data,
437
			dataType: 'json', //数据格式类型
438
			type: 'get', //http请求类型
439
			timeout: 10000,
440
			async: true,
441
			success: function(data) {
442
				if(num == 1) {
443
					if(data.success && data.data != null) {
444
						$('.attenSpan').addClass("attenSpanyes");
445
						$('.attenSpan').text('已关注');
446
						zjreturnId = data.data.watchObject;
447
					} else {
448
						$('.attenSpan').removeClass("attenSpanyes");
449
						$('.attenSpan').text('关注');
450
					}
451
				}
452
				if(num == 2) {
453
					if(data.success && data.data != null) {
454
						$('#attention em').addClass("icon-collected").removeClass("icon-collect");
455
						wzreturnId = data.data.watchObject;
456
					} else {
457
						$('#attention em').removeClass("icon-collected").addClass("icon-collect");
458
					}
459
				}
460

461
			},
462
			error: function() {
463
				$.MsgBox.Alert('提示', "服务器链接超时");
464
			}
341 465
		});
342
		aele.setAttribute('href', '../login.html');
343 466
	}
344
})
345 467

346
/*判断是非关注专家*/
347
function ifCollection(getid,num) {
348
	var data = {"professorId": userid,"watchObject": getid}
349
	//alert(JSON.stringify(data))
350
	$.ajax({		
351
		url:"/ajax/watch/hasWatch",
352
		data:data,
353
		dataType: 'json', //数据格式类型
354
		type: 'get', //http请求类型
355
		timeout: 10000,
356
		async: true,
357
		success: function(data) {
358
			if(num==1){
359
				if(data.success && data.data != null) {
360
					$('.attenSpan').addClass("attenSpanyes");
361
					$('.attenSpan').text('已关注');
362
					zjreturnId = data.data.watchObject;
363
				} else {
364
					$('.attenSpan').removeClass("attenSpanyes");
365
					$('.attenSpan').text('关注');
366
				}
468
	/*关注专家*/
469
	function collectionExpert(watchObject, num) {
470
		if(num == 1) {
471
			var data = {
472
				"professorId": userid,
473
				"watchObject": watchObject,
474
				"watchType": 1
367 475
			}
368
			if(num==2){
369
				if(data.success && data.data != null) {
370
					$('#attention em').addClass("icon-collected").removeClass("icon-collect");
371
					wzreturnId = data.data.watchObject;
372
				} else {
373
					$('#attention em').removeClass("icon-collected").addClass("icon-collect");
374
				}
476
		} else {
477
			var data = {
478
				"professorId": userid,
479
				"watchObject": watchObject,
480
				"watchType": 2
375 481
			}
376
			
377
		},
378
		error: function() {
379
			$.MsgBox.Alert('提示',"服务器链接超时");
380 482
		}
381
	});
382
}
483
		$.ajax({
484
			url: "/ajax/watch",
485
			data: data,
486
			dataType: 'json', //数据格式类型
487
			type: 'POST', //http请求类型
488
			timeout: 10000,
489
			async: false,
490
			success: function(data) {
491
				if(num == 1) {
492
					if(data.success) {
493
						$('.attenSpan').addClass("attenSpanyes");
494
						$('.attenSpan').text('已关注');
495
						zjreturnId = data.data.watchObject;
496
					}
497
				}
383 498

384
/*关注专家*/
385
function collectionExpert(watchObject,num) {
386
	if(num==1){
387
		var data = {"professorId": userid,"watchObject": watchObject,"watchType": 1}
388
	}else{
389
		var data = {"professorId": userid,"watchObject": watchObject,"watchType": 3}
390
	}
391
	$.ajax({		
392
		url:"/ajax/watch",
393
		data:data,
394
		dataType: 'json', //数据格式类型
395
		type: 'POST', //http请求类型
396
		timeout: 10000,
397
		async: false,
398
		success: function(data) {
399
			if(num==1){
400
				if(data.success) {
401
					$('.attenSpan').addClass("attenSpanyes");
402
					$('.attenSpan').text('已关注');
403
					zjreturnId = data.data.watchObject;
499
				if(num == 2) {
500
					if(data.success) {
501
						$('#attention em').addClass("icon-collected").removeClass("icon-collect");
502
						wzreturnId = data.data.watchObject;
503
					}
404 504
				}
505

506
			},
507
			error: function() {
508
				$.MsgBox.Alert('提示', "服务器链接超时");
405 509
			}
406
			
407
			if(num==2){
408
				if(data.success) {
409
					$('#attention em').addClass("icon-collected").removeClass("icon-collect");
410
					wzreturnId = data.data.watchObject;
510
		});
511
	}
512

513
	/*取消收藏专家*/
514
	function cancelCollectionExpert(watchObject, num) {
515
		$.ajax({
516
			url: "/ajax/watch/delete",
517
			data: {
518
				professorId: userid,
519
				watchObject: watchObject
520
			},
521
			dataType: 'json', //数据格式类型
522
			type: 'post', //http请求类型
523
			timeout: 10000,
524
			async: true,
525
			success: function(data) {
526
				console.log(data.success)
527
				if(num == 1) {
528
					if(data.success) {
529
						$('.attenSpan').removeClass("attenSpanyes");
530
						$('.attenSpan').text('关注');
531
					}
411 532
				}
533
				if(num == 2) {
534
					if(data.success) {
535
						$('#attention em').removeClass("icon-collected").addClass("icon-collect");
536
					}
537
				}
538

539
			},
540
			error: function(data) {
541
				$.MsgBox.Alert('提示', "服务器链接超时");
412 542
			}
413
			
414
		},
415
		error: function() {
416
			$.MsgBox.Alert('提示',"服务器链接超时");
417
		}
418
	});
419
}
543
		});
420 544

421
/*取消收藏专家*/
422
function cancelCollectionExpert(watchObject,num) {
423
	$.ajax({		
424
		url:"/ajax/watch/delete",
425
		data: {
426
			professorId: userid,
427
			watchObject: watchObject
428
		},
429
		dataType: 'json', //数据格式类型
430
		type: 'post', //http请求类型
431
		timeout: 10000,
432
		async: true,
433
		success: function(data) {
434
			console.log(data.success)
435
			if(num==1){
436
				if(data.success) {
437
					$('.attenSpan').removeClass("attenSpanyes");
438
					$('.attenSpan').text('关注');
439
				}	
545
	}
546
	//资源浏览量
547
	function pageViewsVal() {
548
		$.ajax({
549
			"url": "/ajax/resource/pageViews",
550
			"type": "POST",
551
			"dataType": "json",
552
			"data": {
553
				"resourceId": resourceId
554
			},
555
			"success": function(data) {
556
				console.log(data);
557
				if(data.success) {}
558
			},
559
			"error": function() {
560
				$.MsgBox.Alert('提示', '链接服务器超时')
440 561
			}
441
			if(num==2){
562
		});
563
	}
564
	pageViewsVal();
565
	selUse();
566

567
	function selUse() {
568
		$.ajax({
569
			url: "/ajax/resource/qaLinkman",
570
			type: "GET",
571
			timeout: 10000,
572
			dataType: "json",
573
			async: true,
574
			data: {
575
				"resourceId": resourceId,
576
			},
577
			success: function(data, textState) {
578
				console.log(data)
442 579
				if(data.success) {
443
					$('#attention em').removeClass("icon-collected").addClass("icon-collect");
444
				}	
580
					unauthUser(data.data);
581
				}
582
			},
583
			error: function(XMLHttpRequest, textStats, errorThrown) {
584
				$.MsgBox.Alert('提示', '服务器请求失败')
445 585
			}
446
			
447
		},
448
		error: function(data) {
449
			$.MsgBox.Alert('提示',"服务器链接超时");
450
		}
451
	});
586
		})
587
	}
452 588

453
}
454
//资源浏览量
455
function pageViewsVal(){
456
	$.ajax({
457
		"url" : "/ajax/resource/pageViews",
458
		"type" :  "POST" ,
459
		"dataType" : "json",
460
		"data" :{"resourceId":resourceId},
461
		"success" : function(data) {
462
			console.log(data);
463
			if (data.success){
589
	function unauthUser($res) {
590
		var osting = ""
591
		for(var i = 0; i < $res.length; i++) {
592
			var img;
593
			var styC = "";
594
			var oClass = autho($res[i].professor.authType, $res[i].professor.orgAuth, $res[i].professor.authStatus);
595
			var oTitle = "";
596
			if($res[i].professor.title) {
597
				oTitle = $res[i].professor.title;
598
			} else {
599
				if($res[i].professor.office) {
600
					oTitle = $res[i].professor.office;
601
				}
602
			}
603
			if($res[i].professor.hasHeadImage) {
604
				img = "/images/head/" + $res[i].professor.id + "_l.jpg";
605
			} else {
606
				img = "../images/default-photo.jpg"
464 607
			}
465
		},
466
		"error":function(){
467
			$.MsgBox.Alert('提示','链接服务器超时')
608
			var oSt = '<li class="flexCenter">'
609
			oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
610
			oSt += '<div class = "madiaInfo">'
611
			oSt += '<p class = "ellipsisSty">'
612
			oSt += '<span class = "h1Font" id="name">' + $res[i].professor.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em >'
613
			oSt += '</p>'
614
			oSt += '<p class="h2Font ellipsisSty">' + oTitle + '</p>'
615
			oSt += '</div>'
616
			oSt += '<span class="addbtn" data-id="' + $res[i].professor.id + '">咨询</span>'
617
			oSt += '</li>'
618
			osting += oSt;
468 619
		}
469
	});
470
}
471
pageViewsVal();
472
})
620
		$("#expertli").html(osting);
621
	}
622
})

+ 1 - 1
js/search.js

@ -249,7 +249,7 @@ $(function() {
249 249
							$("#professorList").append($add);
250 250
							
251 251
							if(data.data.data[i].images.length) {
252
								$add.find(".resourceImg").attr("src", "/images/resource/" + $da[i].resourceId + ".jpg");
252
								$add.find(".resourceImg").attr("src", "/data/resource/" + $da[i].images[0].imageSrc);
253 253
							} else {
254 254
								$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
255 255
							}

+ 4 - 4
js/workindex.js

@ -287,7 +287,7 @@ $(function() {
287 287
288 288
	function getDataResource() {
289 289
		$.ajax({
290
			"url": "/ajax/resource/qapro",
290
			"url": "/ajax/resource/qaForDesk",
291 291
			"type": "get",
292 292
			"async": true,
293 293
			"data": {
@ -317,7 +317,7 @@ $(function() {
317 317
318 318
						//$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
319 319
						if(data.data[i].images.length) {
320
							$add.find(".resourceImg").attr("src", "/images/resource/" + data.data[i].resourceId + ".jpg");
320
							$add.find(".resourceImg").attr("src", "/data/resource/" + data.data[i].images[0].imageSrc);
321 321
						} else {
322 322
							$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
323 323
						}
@ -339,7 +339,7 @@ $(function() {
339 339
340 340
	function myNews() {
341 341
		$.ajax({
342
			"url": "/ajax/article/qaPro",
342
			"url": "/ajax/article/qaForDesk",
343 343
			"type": "get",
344 344
			"async": true,
345 345
			"data": {
@ -358,7 +358,7 @@ $(function() {
358 358
						add += '</a></li>';
359 359
						$add = $(add);
360 360
						$("#myNews").append($add);
361
						$add.find('.tagsBox span').text(data.data[i].industry);
361
						$add.find('.tagsBox span').text(data.data[i].subject);
362 362
						if(data.data[i].articleImg) {
363 363
							$add.find(".art_img").attr("style", "background: url(/data/article/" + data.data[i].articleImg + ") 0 0 no-repeat;background-size:cover;");
364 364
						}

+ 2 - 2
myConsult.html

@ -24,8 +24,8 @@
24 24
		<div class="workmenu">
25 25
			<a href="workspaces.html" class="workmenutit">工作台</a>
26 26
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
27
			<a href="resourceList.html" class="worksubmenu nohide" style="display:none;">资源</a>
28
			<a href="articalList.html" class="worksubmenu nohide" style="display:none;">文章</a>
27
			<a href="resourceList.html" class="worksubmenu " >资源</a>
28
			<a href="articalList.html" class="worksubmenu " >文章</a>
29 29
			<a  class="worksubmenu" id="odemand">需求</a>
30 30
		</div>
31 31
		<div class="workcon">

+ 2 - 2
myDemand.html

@ -102,8 +102,8 @@
102 102
        <div class="workmenu">
103 103
            <a href="workspaces.html" class="workmenutit">工作台</a>
104 104
            <a class="worksubmenu" id="gozixu">咨询</a>
105
            <a href="resourceList.html"  class="worksubmenu nohide" style="display:none;">资源</a>
106
            <a href="articalList.html"  class="worksubmenu nohide" style="display:none;">文章</a>
105
            <a href="resourceList.html"  class="worksubmenu" >资源</a>
106
            <a href="articalList.html"  class="worksubmenu" >文章</a>
107 107
            <a href="myDemand.html"  class="worksubmenu subcolor">需求</a>
108 108
        </div>
109 109
        <div class="workcon">

+ 2 - 2
needList.html

@ -25,8 +25,8 @@
25 25
        <div class="workmenu">
26 26
            <a href="workspaces.html" class="workmenutit">工作台</a>
27 27
            <a class="worksubmenu" id="gozixu">咨询</a>
28
            <a href="resourceList.html"  class="worksubmenu nohide" style="display:none;">资源</a>
29
            <a href="articalList.html"  class="worksubmenu nohide" style="display:none;">文章</a>
28
            <a href="resourceList.html"  class="worksubmenu" >资源</a>
29
            <a href="articalList.html"  class="worksubmenu " >文章</a>
30 30
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
31 31
        </div>
32 32
        <div class="workcon">

+ 12 - 7
resourceImport.html

@ -43,14 +43,14 @@
43 43
				<div class="itemListBolck">
44 44
					<div class="topOperaBlock clearfix">
45 45
						<div class="searchAbout col-w-8">
46
							<input class="frmcontype" type="search" name="" placeholder="输入资源的名称、关键词">
46
							<input class="frmcontype" type="search" name="" placeholder="输入资源的名称、关键词" id="resouceName">
47 47
							<span class="searchSpan"></span>
48 48
						</div>
49 49
					</div>
50 50
					<div class="form-item itemListCon">
51 51
						<div class="form-result aboutRes">
52 52
							<ul class="importUl">
53
								<li>
53
								<!--<li>
54 54
									<a class="flexCenter" href="">
55 55
										<div class="madiaHead resouseHead"></div>
56 56
										<div class="madiaInfo">
@ -78,8 +78,17 @@
78 78
									<div class="importBtn">
79 79
										<span class="importSpan-2">重新导入</span>
80 80
									</div>
81
								</li>
81
								</li>-->
82 82
							</ul>
83
							<!--无搜索结果-->
84
							<div class="nodatabox displayNone" id="noresource">
85
						        <div class="nodata">
86
						            <div class="picbox picNull"></div>
87
						            <div class="txtbox">
88
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
89
						            </div>
90
						        </div>
91
						    </div>
83 92
							<div class="tcdPageCode"></div>
84 93
						</div>
85 94
					</div>
@ -100,10 +109,6 @@
100 109
	$(".tipClose").click(function(){
101 110
		$(this).parents(".tipShow").slideUp();
102 111
	})
103
	$(".tcdPageCode").createPage({
104
		pageCount: Math.ceil(4 / 16),
105
		current: 3,
106
	});
107 112
</script>
108 113
<script type="text/javascript" src="js/resourceImport.js"></script>
109 114
</body>

+ 10 - 3
resourceList.html

@ -10,9 +10,7 @@
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11 11
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">-->
12 12
<link type="text/css" href="css/genindex.css" rel="stylesheet">
13
<style type="text/css">
14
	.conBlock .workconG{background: #FFFFFF;}
15
</style>
13

16 14
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
17 15

18 16
</head>
@ -54,6 +52,15 @@
54 52
							<ul id="resourceList">
55 53
								
56 54
							</ul>
55
							<!--无搜索结果-->
56
							<div class="nodatabox displayNone" id="noresource">
57
						        <div class="nodata">
58
						            <div class="picbox picNull"></div>
59
						            <div class="txtbox">
60
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
61
						            </div>
62
						        </div>
63
						    </div>
57 64
							<div class="tcdPageCode"></div>
58 65
						</div>
59 66
					</div>

+ 24 - 2
resourcePreview.html

@ -66,7 +66,7 @@
66 66
						<!--资源详情区-->
67 67
						<div class="showMain showMain2">
68 68
							<ul>
69
								<li>
69
								<li class="displayNone" id="orgName">
70 70
									<div class="showTit">所属机构:</div>
71 71
									<div class="showCon" id="organizationName">
72 72
									</div>
@ -101,7 +101,7 @@
101 101
				</div>
102 102
			</div>
103 103
			<div class="rightconBox floatR">
104
				<div class="conItem conItemG alignCenter" style="border:none;padding:30px;">
104
				<div class="conItem conItemG alignCenter displayNone" style="border:none;padding:30px;" id="person">
105 105
					<div class="madiaHead useHead" id="headImg" style="cursor:pointer"></div>
106 106
					<div class="proInfo">
107 107
						<div class="h3Font clearfix">
@ -116,6 +116,28 @@
116 116
						<span class="attenSpan">关注</span>
117 117
					</div>
118 118
				</div>
119
				<div class="conItem conItemG displayNone" id="enterprise" style="border:none;padding:30px;">
120
					<a href="" class="qiyego"><div class="madiaHead cmpHead" id="Qimg" style=""></div></a>
121
					<div class="proInfo alignCenter">
122
						<div class="h3Font clearfix">
123
							<a href="companybrowinfor.html?orgId=A93B9348F2094D12A6DC9A23F16E1246" class="h1Font qiyego" id="Qname"></a>
124
							<span class="authiconNew" title="" id="QauthFlag"></span>
125
						</div>
126
						<p class="h2Font ellipsisSty" id="Qindustry"></p>
127
						<p class="h2Font" id="QorgType"></p>
128
					</div>
129
				</div>
130
				<div class="conItem displayNone" id="resPerson">
131
					<div class="form-item otherBlock">
132
						<div class="aboutTit">负责人/联系人</div>
133
						<div class="form-result addexpertRe">
134
							<ul class="addexpert" id="expertli">
135
								
136
							</ul>
137
						</div>
138
					</div>
139
					
140
				</div>
119 141
			</div>
120 142
		</div>
121 143
	</div>

+ 24 - 2
resourceShow.html

@ -66,7 +66,7 @@
66 66
						<!--资源详情区-->
67 67
						<div class="showMain showMain2">
68 68
							<ul>
69
								<li>
69
								<li class="displayNone" id="orgName">
70 70
									<div class="showTit">所属机构:</div>
71 71
									<div class="showCon" id="organizationName">
72 72
									</div>
@ -118,7 +118,7 @@
118 118
				</div>
119 119
			</div>
120 120
			<div class="rightconBox floatR">
121
				<div class="conItem conItemG alignCenter" style="border:none;padding:30px;">
121
				<div class="conItem conItemG alignCenter displayNone" style="border:none;padding:30px;" id="person">
122 122
					<div class="madiaHead useHead" id="headImg" style="cursor:pointer"></div>
123 123
					<div class="proInfo">
124 124
						<div class="h3Font clearfix">
@ -133,6 +133,28 @@
133 133
						<span class="attenSpan">关注</span>
134 134
					</div>
135 135
				</div>
136
				<div class="conItem conItemG displayNone" id="enterprise" style="border:none;padding:30px;">
137
					<a href="" class="qiyego"><div class="madiaHead cmpHead" id="Qimg" style=""></div></a>
138
					<div class="proInfo alignCenter">
139
						<div class="h3Font clearfix">
140
							<a href="companybrowinfor.html?orgId=A93B9348F2094D12A6DC9A23F16E1246" class="h1Font qiyego" id="Qname"></a>
141
							<span class="authiconNew" title="" id="QauthFlag"></span>
142
						</div>
143
						<p class="h2Font ellipsisSty" id="Qindustry"></p>
144
						<p class="h2Font" id="QorgType"></p>
145
					</div>
146
				</div>
147
				<div class="conItem displayNone" id="resPerson">
148
					<div class="form-item otherBlock">
149
						<div class="aboutTit">负责人/联系人</div>
150
						<div class="form-result addexpertRe">
151
							<ul class="addexpert" id="expertli">
152
								
153
							</ul>
154
						</div>
155
					</div>
156
					
157
				</div>
136 158
			</div>
137 159
		</div>
138 160
	</div>

+ 18 - 6
searchNew.html

@ -22,7 +22,10 @@
22 22
		<div class="contentCon clearfix">
23 23
			<div class="col-w-12">
24 24
				<div class="searchdiv">
25
					<input type="search" name="searchsome" class="searchsome col-w-12" placeholder="筛选" />
25
					<input type="search" name="searchsome" class="searchsome col-w-12" placeholder="请输入专家姓名、机构、研究方向" />
26
					<!--找专家:请输入专家姓名、机构、研究方向
27
		  				找资源:请输入资源名称、用途、机构
28
						找文章:请输入文章标题、作者-->
26 29
					<span class="searchgo">搜索</span>
27 30
				</div>
28 31
				<div class="filterdiv">
@ -93,9 +96,18 @@
93 96
					</ul>
94 97
				</div>
95 98
				<div class="listdiv">
99
					<!--无搜索结果-->
100
					<div class="nodatabox">
101
				        <div class="nodata">
102
				            <div class="picbox picNull"></div>
103
				            <div class="txtbox">
104
				            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
105
				            </div>
106
				        </div>
107
				    </div>
96 108
					<!--找人-->
97 109
					<ul class="listitemdiv">
98
						<li>
110
						<li class="flexCenter">
99 111
							<a class="linkhref" href="information-brow.html">
100 112
								<div class="lefthead userheadt userRadius"></div>
101 113
								<div class="centercon">
@ -112,7 +124,7 @@
112 124
					</ul>
113 125
					<!--找资源-->
114 126
					<ul class="listitemdiv listmorediv">
115
						<li>
127
						<li class="flexCenter">
116 128
							<a class="linkhref" href="resourceInfo.html">
117 129
								<div class="lefthead resouhead"></div>
118 130
								<div class="centercon">
@ -125,7 +137,7 @@
125 137
								</div>
126 138
							</a>
127 139
						</li>
128
						<li>
140
						<li class="flexCenter">
129 141
							<a class="linkhref" href="resourceInfo.html">
130 142
								<div class="lefthead resouhead"></div>
131 143
								<div class="centercon">
@ -141,7 +153,7 @@
141 153
					</ul>
142 154
					<!--找文章-->
143 155
					<ul class="listitemdiv listmorediv">
144
						<li>
156
						<li class="flexCenter">
145 157
							<a class="linkhref" href="articalShow.html">
146 158
								<div class="lefthead articalhead"></div>
147 159
								<div class="centercon centercon2">
@ -153,7 +165,7 @@
153 165
								</div>
154 166
							</a>
155 167
						</li>
156
						<li>
168
						<li class="flexCenter">
157 169
							<a class="linkhref" href="articalShow.html">
158 170
								<div class="lefthead articalhead"></div>
159 171
								<div class="centercon centercon2">

+ 5 - 5
workspaces.html

@ -114,8 +114,8 @@
114 114
		<div class="workmenu">
115 115
			<a href="workspaces.html" class="workmenutit subcolor">工作台</a>
116 116
			<a class="worksubmenu" id="gozixu">咨询</a>
117
			<a href="resourceList.html" class="worksubmenu nohide" style="display:none;">资源</a>
118
			<a href="articalList.html" class="worksubmenu nohide" style="display:none;">文章</a>
117
			<a href="resourceList.html" class="worksubmenu">资源</a>
118
			<a href="articalList.html" class="worksubmenu">文章</a>
119 119
			<a class="worksubmenu" id="dett">需求</a>
120 120
		</div>
121 121
		<div class="workcon">
@ -226,9 +226,9 @@
226 226
							</div>
227 227
						</div>
228 228
						<!--正在使用的资源-->
229
						<div class="workblock nohide">
229
						<div class="workblock">
230 230
							<div class="worktit">我的资源
231
								<a class="worklinkbtn floatR" id="allResource" href="newsciresource.html">查看全部</a>
231
								<a class="worklinkbtn floatR" id="allResource" href="resourceList.html">查看全部</a>
232 232
							</div>
233 233
							<div class="wbcon">
234 234
								<div id="consdcen">
@ -237,7 +237,7 @@
237 237
							</div>
238 238
						</div>
239 239
						<!--我的文章-->
240
						<div class="workblock nohide">
240
						<div class="workblock">
241 241
							<div class="worktit">我的文章
242 242
								<a class="worklinkbtn floatR" id="allArtical" href="articalList.html">查看全部</a>
243 243
							</div>