lyn7568 5 年 前
コミット
cacd17f521
共有6 個のファイルを変更した5522 個の追加3339 個の削除を含む
  1. 2426 423
      css/share.css
  2. 1293 1362
      e/2.html
  3. 1027 851
      e/p.html
  4. 7 3
      e/search.html
  5. 763 699
      js/search_h5.js
  6. 6 1
      js/teamManage.js

+ 2426 - 423
css/share.css

@ -1,123 +1,643 @@
1 1
@charset "utf-8";
2
2 3
/* CSS Document */
3
html,body {outline: 0;margin:0;padding:0px;background: #F4F6F8;-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
4
5
.bomb-box{display: none;background-color:rgba(000,000,000,0.5); padding:6px 15px; border-radius:50px; font-size: 12px; color: #fff; text-align:center; position: absolute;left:50%; top:25%;z-index: 10;}
6
7
.contentBody2{max-width:640px;margin:auto;overflow: hidden;}
8
.bannerA {width: 100%;height:auto; position: relative;overflow: hidden;background:#FF9900;}
9
.logoA{width:24%; height: auto;position: absolute;left:50%;margin-left:-12%;top:6%;z-index: 2}
10
.bannerA img{display:block;margin-top:10%;}
11
.search-wrap{position: absolute;bottom: 16px;height: 40px;padding: 0 10px;width: 96%;left:50%;margin-left: -48%;
12
    background: rgba(255, 255, 255, 1);border-radius: 5px;overflow: hidden;}
13
.search-wrap .search-icon{margin: 10px 4px;}
14
.search-wrap .search-input{position: absolute;left:0;top:0;width:100%;padding:0 10px 0 40px;font-size:14px;background:none;height:40px;line-height:24px;border:none}
15
16
.iconfontnew{display: inline-block;width: 18px;height: 18px;*margin-right: .3em;line-height: 18px;vertical-align: text-top;
17
  background-position: center center; background-repeat: no-repeat;background-size: cover;}
18
.icon-address{width:11px;height:14px;background-image: url("../images/personal_icon_dizhi_nor@3x.png");line-height: 14px;}
19
.icon-shoucang{background-image: url("../images/h5_img/article_button_shoucang_nor@3x.png");}
4
html,
5
body {
6
    outline: 0;
7
    margin: 0;
8
    padding: 0px;
9
    background: #F4F6F8;
10
    -webkit-text-size-adjust: 100%;
11
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
12
}
13
14
.bomb-box {
15
    display: none;
16
    background-color: rgba(000, 000, 000, 0.5);
17
    padding: 6px 15px;
18
    border-radius: 50px;
19
    font-size: 12px;
20
    color: #fff;
21
    text-align: center;
22
    position: absolute;
23
    left: 50%;
24
    top: 25%;
25
    z-index: 10;
26
}
27
28
.contentBody2 {
29
    max-width: 640px;
30
    margin: auto;
31
    overflow: hidden;
32
}
33
34
.bannerA {
35
    width: 100%;
36
    height: auto;
37
    position: relative;
38
    overflow: hidden;
39
    background: #FF9900;
40
}
41
42
.logoA {
43
    width: 24%;
44
    height: auto;
45
    position: absolute;
46
    left: 50%;
47
    margin-left: -12%;
48
    top: 6%;
49
    z-index: 2
50
}
51
52
.bannerA img {
53
    display: block;
54
    margin-top: 10%;
55
}
56
57
.search-wrap {
58
    position: absolute;
59
    bottom: 16px;
60
    height: 40px;
61
    padding: 0 10px;
62
    width: 96%;
63
    left: 50%;
64
    margin-left: -48%;
65
    background: rgba(255, 255, 255, 1);
66
    border-radius: 5px;
67
    overflow: hidden;
68
}
69
70
.search-wrap .search-icon {
71
    margin: 10px 4px;
72
}
73
74
.search-wrap .search-input {
75
    position: absolute;
76
    left: 0;
77
    top: 0;
78
    width: 100%;
79
    padding: 0 10px 0 40px;
80
    font-size: 14px;
81
    background: none;
82
    height: 40px;
83
    line-height: 24px;
84
    border: none
85
}
86
87
.iconfontnew {
88
    display: inline-block;
89
    width: 18px;
90
    height: 18px;
91
    *margin-right: .3em;
92
    line-height: 18px;
93
    vertical-align: text-top;
94
    background-position: center center;
95
    background-repeat: no-repeat;
96
    background-size: cover;
97
}
98
99
.icon-address {
100
    width: 11px;
101
    height: 14px;
102
    background-image: url("../images/personal_icon_dizhi_nor@3x.png");
103
    line-height: 14px;
104
}
105
106
.icon-shoucang {
107
    background-image: url("../images/h5_img/article_button_shoucang_nor@3x.png");
108
}
109
20 110
/*input输入相关*/
21
.frmbtn {width: 100%;margin: 4% auto;font-size: 14px;line-height: 24px;padding:2%;border: 1px solid #FF9900;border-radius: 6px;color: #FF9900;outline: none;}
22
.frmactive {color: #fff;background-color: #FF9900;border: 1px solid #FF9900;}
111
.frmbtn {
112
    width: 100%;
113
    margin: 4% auto;
114
    font-size: 14px;
115
    line-height: 24px;
116
    padding: 2%;
117
    border: 1px solid #FF9900;
118
    border-radius: 6px;
119
    color: #FF9900;
120
    outline: none;
121
}
122
123
.frmactive {
124
    color: #fff;
125
    background-color: #FF9900;
126
    border: 1px solid #FF9900;
127
}
128
23 129
/*移动端网站或APP点击后出现闪动或灰色背景,只需对绑定事件添加class样式 使其触发事件时背景为透明色*/
24
.activeThis{-webkit-tap-highlight-color:transparent;}
25
/*--------------------邀请好友注册科袖2017.4.28--------------*/	
26
@media (min-width: 768px){
27
	.invitebody .form-inline .form-group {display:block;margin-bottom: 10px;vertical-align: middle;}
28
}		
29
.invitebody .form-control:-moz-placeholder {color: rgba(256,256,256,1);}
30
.invitebody .form-control::-moz-placeholder {color: rgba(256,256,256,1);}
31
.invitebody input.form-control:-ms-input-placeholder,textarea:-ms-input-placeholder {color: rgba(256,256,256,1)}
32
.invitebody input.form-control::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color: rgba(256,256,256,1)}
33
34
.invitebody .form-group{overflow: hidden;}
35
.invitebody .input-group{position:relative;width:100%;border:1px solid #FFFFFF;margin:16px 0;border-radius:6px;}
36
.invitebody .form-control{width:100%;border:none;background:none;box-shadow: none;height: 42px;font-size: 16px;line-height: 20px;color:#FFFFFF;
37
 padding-left:44px;background-position:14px center;background-repeat: no-repeat;background-size:auto 20px;}
38
.invitebody .form-control:focus{box-shadow: none;}
39
.invitebody .form-control.input_name{background-image: url(../images/wechat_icon_xingming_nor@3x.png);}
40
.invitebody .form-control.input_phone{background-image: url(../images/wechat_icon_shouji_nor@3x.png);}
41
.invitebody .form-control.input_code{background-image: url(../images/wechat_icon_yanzhengma_nor@3x.png);}
42
.invitebody .form-control.input_pwd{background-image: url(../images/wechat_icon_mima_nor@3x.png);}
43
.invitebody .form-control.input_mail{background-image: url(../images/wechat_icon_mail_nor@3x.png);}
44
.invitebody .form-control.input_org{background-image: url(../images/wechat_icon_org_nor@3x.png);}
45
46
.invitebody .btn{font-size: 16px;font-weight: bold;line-height: 1;color:#FFFFFF;margin:16px 0 16px;padding: 12px 16px;}
47
.invitebody .btn[disabled]{ background: rgba(256,256,256,.6);color:#AAAAAA;}
48
.invitebody .btn.input-group-addon{width:auto;border:none;position: absolute;right:-1px;top:50%;margin-top:-22px;cursor: pointer;padding: 14px 24px 14px;border-radius:6px;}
49
.invitebody .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child){border-radius:5px;}
50
.invitebody .protocollink{ color: #FFFFFF;}
51
.invitebody .checkReg.checkboxT{padding:0;margin-top:-22px;color: #FFFFFF;font-size: 14px;}
52
.invitebody .checkBg{background: url(../images/checkApp.png) 0 center no-repeat;padding-left:18px;line-height:18px;margin:10px 0 30px; background-size:auto 14px;}
53
.invitebody .canPoint{background: rgba(256,256,256,1);color:#ff9900;opacity: 0.8;}/*按钮可点击状态*/
54
.invitebody .canPoint:hover{box-shadow: 0px 0px 16px rgba(255,255,255,0.2) inset;outline: none;}
130
.activeThis {
131
    -webkit-tap-highlight-color: transparent;
132
}
133
134
/*--------------------邀请好友注册科袖2017.4.28--------------*/
135
@media (min-width: 768px) {
136
    .invitebody .form-inline .form-group {
137
        display: block;
138
        margin-bottom: 10px;
139
        vertical-align: middle;
140
    }
141
}
142
143
.invitebody .form-control:-moz-placeholder {
144
    color: rgba(256, 256, 256, 1);
145
}
146
147
.invitebody .form-control::-moz-placeholder {
148
    color: rgba(256, 256, 256, 1);
149
}
150
151
.invitebody input.form-control:-ms-input-placeholder,
152
textarea:-ms-input-placeholder {
153
    color: rgba(256, 256, 256, 1)
154
}
155
156
.invitebody input.form-control::-webkit-input-placeholder,
157
textarea::-webkit-input-placeholder {
158
    color: rgba(256, 256, 256, 1)
159
}
160
161
.invitebody .form-group {
162
    overflow: hidden;
163
}
164
165
.invitebody .input-group {
166
    position: relative;
167
    width: 100%;
168
    border: 1px solid #FFFFFF;
169
    margin: 16px 0;
170
    border-radius: 6px;
171
}
172
173
.invitebody .form-control {
174
    width: 100%;
175
    border: none;
176
    background: none;
177
    box-shadow: none;
178
    height: 42px;
179
    font-size: 16px;
180
    line-height: 20px;
181
    color: #FFFFFF;
182
    padding-left: 44px;
183
    background-position: 14px center;
184
    background-repeat: no-repeat;
185
    background-size: auto 20px;
186
}
187
188
.invitebody .form-control:focus {
189
    box-shadow: none;
190
}
191
192
.invitebody .form-control.input_name {
193
    background-image: url(../images/wechat_icon_xingming_nor@3x.png);
194
}
195
196
.invitebody .form-control.input_phone {
197
    background-image: url(../images/wechat_icon_shouji_nor@3x.png);
198
}
199
200
.invitebody .form-control.input_code {
201
    background-image: url(../images/wechat_icon_yanzhengma_nor@3x.png);
202
}
203
204
.invitebody .form-control.input_pwd {
205
    background-image: url(../images/wechat_icon_mima_nor@3x.png);
206
}
207
208
.invitebody .form-control.input_mail {
209
    background-image: url(../images/wechat_icon_mail_nor@3x.png);
210
}
211
212
.invitebody .form-control.input_org {
213
    background-image: url(../images/wechat_icon_org_nor@3x.png);
214
}
215
216
.invitebody .btn {
217
    font-size: 16px;
218
    font-weight: bold;
219
    line-height: 1;
220
    color: #FFFFFF;
221
    margin: 16px 0 16px;
222
    padding: 12px 16px;
223
}
224
225
.invitebody .btn[disabled] {
226
    background: rgba(256, 256, 256, .6);
227
    color: #AAAAAA;
228
}
229
230
.invitebody .btn.input-group-addon {
231
    width: auto;
232
    border: none;
233
    position: absolute;
234
    right: -1px;
235
    top: 50%;
236
    margin-top: -22px;
237
    cursor: pointer;
238
    padding: 14px 24px 14px;
239
    border-radius: 6px;
240
}
241
242
.invitebody .input-group-addon:not(:first-child):not(:last-child),
243
.input-group-btn:not(:first-child):not(:last-child),
244
.input-group .form-control:not(:first-child):not(:last-child) {
245
    border-radius: 5px;
246
}
247
248
.invitebody .protocollink {
249
    color: #FFFFFF;
250
}
251
252
.invitebody .checkReg.checkboxT {
253
    padding: 0;
254
    margin-top: -22px;
255
    color: #FFFFFF;
256
    font-size: 14px;
257
}
258
259
.invitebody .checkBg {
260
    background: url(../images/checkApp.png) 0 center no-repeat;
261
    padding-left: 18px;
262
    line-height: 18px;
263
    margin: 10px 0 30px;
264
    background-size: auto 14px;
265
}
266
267
.invitebody .canPoint {
268
    background: rgba(256, 256, 256, 1);
269
    color: #ff9900;
270
    opacity: 0.8;
271
}
272
273
/*按钮可点击状态*/
274
.invitebody .canPoint:hover {
275
    box-shadow: 0px 0px 16px rgba(255, 255, 255, 0.2) inset;
276
    outline: none;
277
}
278
55 279
/*logo盒子的相关*/
56
.invitebody .logobox{ padding:0 6% 3% 6%; margin:14% auto 10px; }
57
.invitebody .logolink{display: block;max-width:36%;min-width:100px;margin: auto;}
58
.invitebody .logoimg{ width: 100%; margin: auto; text-align:center;}
59
.invitebody .inviteTit{text-align: center; font-size: 18px;line-height: 30px;margin:20px 0;color:#FFFFFF;}
60
.invitebody .inviteTit span{font-size:18px;line-height: 44px; padding:0 6px;}
61
.invitebody .inforbox{padding:20px 0 10px;}
62
.invitebody .inforbox ul{padding:10px 0;}
63
.invitebody .inforbox ul li{position: relative;margin:12px 0;}
64
.invitebody .inforbox .lefticon{position: absolute;top:4px;width: 28px;height: 28px;} 
65
.invitebody .inforbox .rightcon{padding-left:40px;color: #FFFFFF;}
66
.invitebody .inforbox .rightcon h2{font-size:17px;line-height:26px;}
67
.invitebody .inforbox .rightcon p{font-size:14px;line-height:20px;}
68
			
280
.invitebody .logobox {
281
    padding: 0 6% 3% 6%;
282
    margin: 14% auto 10px;
283
}
284
285
.invitebody .logolink {
286
    display: block;
287
    max-width: 36%;
288
    min-width: 100px;
289
    margin: auto;
290
}
291
292
.invitebody .logoimg {
293
    width: 100%;
294
    margin: auto;
295
    text-align: center;
296
}
297
298
.invitebody .inviteTit {
299
    text-align: center;
300
    font-size: 18px;
301
    line-height: 30px;
302
    margin: 20px 0;
303
    color: #FFFFFF;
304
}
305
306
.invitebody .inviteTit span {
307
    font-size: 18px;
308
    line-height: 44px;
309
    padding: 0 6px;
310
}
311
312
.invitebody .inforbox {
313
    padding: 20px 0 10px;
314
}
315
316
.invitebody .inforbox ul {
317
    padding: 10px 0;
318
}
319
320
.invitebody .inforbox ul li {
321
    position: relative;
322
    margin: 12px 0;
323
}
324
325
.invitebody .inforbox .lefticon {
326
    position: absolute;
327
    top: 4px;
328
    width: 28px;
329
    height: 28px;
330
}
331
332
.invitebody .inforbox .rightcon {
333
    padding-left: 40px;
334
    color: #FFFFFF;
335
}
336
337
.invitebody .inforbox .rightcon h2 {
338
    font-size: 17px;
339
    line-height: 26px;
340
}
341
342
.invitebody .inforbox .rightcon p {
343
    font-size: 14px;
344
    line-height: 20px;
345
}
346
69 347
/*****************************2017.05新版文章资源样式************************/
70
.flexCenter{position: relative; min-height:90px;
71
		    display: -webkit-box;
72
			display: -webkit-flex;
73
			display: -ms-flexbox; 
74
			display:         flex; 
75
	        -webkit-align-items: center;
76
	                align-items: center;}
77
.flex-pright{padding-right: 64px;}
348
.flexCenter {
349
    position: relative;
350
    min-height: 90px;
351
    display: -webkit-box;
352
    display: -webkit-flex;
353
    display: -ms-flexbox;
354
    display: flex;
355
    -webkit-align-items: center;
356
    align-items: center;
357
}
358
359
.flex-pright {
360
    padding-right: 64px;
361
}
362
78 363
/*文章浏览*/
79
.topFu{background: rgba(0,0,0,.6);padding:10px 15px;position: fixed;right:0;left:0;z-index:200;}
80
.topLogo{width:60px;height:30px;background: url(../images/home_icon_logo_orange.png);background-size: cover;}
81
.goSpan{display: inline-block;position: absolute;top: 50%;margin-top: -15px;right: 0;}
82
.goSpan span{background: #ff9900;display:inline-block;text-align: center;width:48px;cursor:pointer;color:#fff;font-size:16px;border-radius:4px;padding:4px;}
83
.goSpan .attenSpan{position: relative;padding-left: 14px;background-image:url(../images/g_article_icon_jia_nor.png);background-size:12px 12px;background-position: 8px center;background-repeat: no-repeat;}
84
.goSpan .attenedSpan{background:#ccc;padding-left:16px;}
85
.showDetail{padding:15px;padding-top:10px;}
86
.showDetail .hWeight{font-weight:bold;}
87
.showDetail .h1Font{font-size:20px;margin:8px 0;line-height:30px;color:#333;}
88
.showDetail .showFont{font-size:16px;margin-top:-4px; line-height:24px;color:#333;}
89
.showDetail .h2Font{font-size:14px;color:#666; line-height:16px;}
90
.showDetail .madiaInfo .h2Font{font-size:14px;color:#999;}
91
.showDetail .h3Font{font-size:13px;color:#999; line-height:24px;}
92
.showDetail .showMain{font-size:15px;color:#333;line-height:28px;word-break: break-word;}
93
.showDetail .showMain img{max-width: 100%;}
94
.showDetail .showMain p{margin-bottom:16px;font-size:15px;color:#333;text-align:justify}
95
#articleContent ul,#articleContent ol{padding-left:20px;}
96
#articleContent ul{list-style-type:disc;}
97
#articleContent ol{list-style-type:decimal;}
98
#articleContent ul>li,#articleContent ol>li{padding-left:0px;}
99
#articleContent ul>li>p,#articleContent ol>li>p{margin: 0;}
100
ul.tagList{padding:0;margin:18px 0 8px;overflow: hidden;}
101
ul.tagList>li{list-style:none;float: left;margin-right:10px;margin-bottom:10px;padding:4px 12px;color: #666;background:#EFEFEF;}
102
ul.tagList>li .h2Font{font-size: 14px;color: #666;line-height: 16px;}
103
.madiaBlock{clear:both;}.madiaBlock:before,.madiaBlock:after{display:table;content:""}.madiaBlock:after{clear: both;}
104
.madiaBlock ul.mui-table-view{margin:10px 0;overflow: hidden;}
105
.madiaBlock ul.mui-table-view li{position: relative;cursor: pointer;}
106
.madiaBlock .madiaTit{position:relative;font-size:16px;color:#666;padding-left:10px;margin-top:15px;padding-bottom: 10px;}
107
.madiaBlock .madiaTit:before{display:inline-block;content:"";width:4px;height: 16px;position:absolute;top:1px;left:0;background: #ff9900;}
108
.madiaBlock .madiaTit:after{position: absolute;bottom: 0;content:"";height: 1px;background: #E5E5E5;right: -15px;left:-15px;}
109
.madiaBlock .madiaHead{width:90px;height:60px;margin-top:-30px;position:absolute;/*border:1px solid #E5E5E5;*/top:50%;background-position: center;background-size: cover;}
110
.madiaBlock .madiaHead.useHead{width: 50px;height:50px;margin-top:-25px;background-image: url(../images/default-photo.jpg);border-radius: 50%;}
111
.madiaBlock .madiaHead.resouseHead{background-image: url(../images/default-resource.jpg);}
112
.madiaBlock .madiaHead.artHead{background-image: url(../images/default-artical.jpg);}
113
.madiaBlock .madiaHead.cmpHead{background:#FFFFFF;border-radius:0;border:none}
114
.madiaBlock .madiaHead.cmpHead .boxBlock{width: 90px;height: 60px;}
115
.madiaBlock .madiaHead.cmpHead2{width:50px;height:40px;margin-top:-20px;background:none;border-radius:0;border:none}
116
.madiaBlock .madiaHead.cmpHead2 .boxBlock{width:50px;height:40px;}
117
.madiaBlock .madiaHead.paperHead{background-image: url(../images/default-paper.jpg);}
118
.madiaBlock .madiaHead.patentHead{background-image: url(../images/default-patent.jpg);}
119
.madiaBlock .madiaInfo{padding-left:62px; width: 100%;margin:6px 0;overflow: hidden;}
120
.madiaBlock .madiaInfo.OmadiaInfo{padding-left: 102px;}
364
.topFu {
365
    background: rgba(0, 0, 0, .6);
366
    padding: 10px 15px;
367
    position: fixed;
368
    right: 0;
369
    left: 0;
370
    z-index: 200;
371
}
372
373
.topLogo {
374
    width: 60px;
375
    height: 30px;
376
    background: url(../images/home_icon_logo_orange.png);
377
    background-size: cover;
378
}
379
380
.goSpan {
381
    display: inline-block;
382
    position: absolute;
383
    top: 50%;
384
    margin-top: -15px;
385
    right: 0;
386
}
387
388
.goSpan span {
389
    background: #ff9900;
390
    display: inline-block;
391
    text-align: center;
392
    width: 48px;
393
    cursor: pointer;
394
    color: #fff;
395
    font-size: 16px;
396
    border-radius: 4px;
397
    padding: 4px;
398
}
399
400
.goSpan .attenSpan {
401
    position: relative;
402
    padding-left: 14px;
403
    background-image: url(../images/g_article_icon_jia_nor.png);
404
    background-size: 12px 12px;
405
    background-position: 8px center;
406
    background-repeat: no-repeat;
407
}
408
409
.goSpan .attenedSpan {
410
    background: #ccc;
411
    padding-left: 16px;
412
}
413
414
.showDetail {
415
    padding: 15px;
416
    padding-top: 10px;
417
}
418
419
.showDetail .hWeight {
420
    font-weight: bold;
421
}
422
423
.showDetail .h1Font {
424
    font-size: 20px;
425
    margin: 8px 0;
426
    line-height: 30px;
427
    color: #333;
428
}
429
430
.showDetail .showFont {
431
    font-size: 16px;
432
    margin-top: -4px;
433
    line-height: 24px;
434
    color: #333;
435
}
436
437
.showDetail .h2Font {
438
    font-size: 14px;
439
    color: #666;
440
    line-height: 16px;
441
}
442
443
.showDetail .madiaInfo .h2Font {
444
    font-size: 14px;
445
    color: #999;
446
}
447
448
.showDetail .h3Font {
449
    font-size: 13px;
450
    color: #999;
451
    line-height: 24px;
452
}
453
454
.showDetail .showMain {
455
    font-size: 15px;
456
    color: #333;
457
    line-height: 28px;
458
    word-break: break-word;
459
}
460
461
.showDetail .showMain img {
462
    max-width: 100%;
463
}
464
465
.showDetail .showMain p {
466
    margin-bottom: 16px;
467
    font-size: 15px;
468
    color: #333;
469
    text-align: justify
470
}
471
472
#articleContent ul,
473
#articleContent ol {
474
    padding-left: 20px;
475
}
476
477
#articleContent ul {
478
    list-style-type: disc;
479
}
480
481
#articleContent ol {
482
    list-style-type: decimal;
483
}
484
485
#articleContent ul>li,
486
#articleContent ol>li {
487
    padding-left: 0px;
488
}
489
490
#articleContent ul>li>p,
491
#articleContent ol>li>p {
492
    margin: 0;
493
}
494
495
ul.tagList {
496
    padding: 0;
497
    margin: 18px 0 8px;
498
    overflow: hidden;
499
}
500
501
ul.tagList>li {
502
    list-style: none;
503
    float: left;
504
    margin-right: 10px;
505
    margin-bottom: 10px;
506
    padding: 4px 12px;
507
    color: #666;
508
    background: #EFEFEF;
509
}
510
511
ul.tagList>li .h2Font {
512
    font-size: 14px;
513
    color: #666;
514
    line-height: 16px;
515
}
516
517
.madiaBlock {
518
    clear: both;
519
}
520
521
.madiaBlock:before,
522
.madiaBlock:after {
523
    display: table;
524
    content: ""
525
}
526
527
.madiaBlock:after {
528
    clear: both;
529
}
530
531
.madiaBlock ul.mui-table-view {
532
    margin: 10px 0;
533
    overflow: hidden;
534
}
535
536
.madiaBlock ul.mui-table-view li {
537
    position: relative;
538
    cursor: pointer;
539
}
540
541
.madiaBlock .madiaTit {
542
    position: relative;
543
    font-size: 16px;
544
    color: #666;
545
    padding-left: 10px;
546
    margin-top: 15px;
547
    padding-bottom: 10px;
548
}
549
550
.madiaBlock .madiaTit:before {
551
    display: inline-block;
552
    content: "";
553
    width: 4px;
554
    height: 16px;
555
    position: absolute;
556
    top: 1px;
557
    left: 0;
558
    background: #ff9900;
559
}
560
561
.madiaBlock .madiaTit:after {
562
    position: absolute;
563
    bottom: 0;
564
    content: "";
565
    height: 1px;
566
    background: #E5E5E5;
567
    right: -15px;
568
    left: -15px;
569
}
570
571
.madiaBlock .madiaHead {
572
    width: 90px;
573
    height: 60px;
574
    margin-top: -30px;
575
    position: absolute;
576
    /*border:1px solid #E5E5E5;*/
577
    top: 50%;
578
    background-position: center;
579
    background-size: cover;
580
}
581
582
.madiaBlock .madiaHead.useHead {
583
    width: 50px;
584
    height: 50px;
585
    margin-top: -25px;
586
    background-image: url(../images/default-photo.jpg);
587
    border-radius: 50%;
588
}
589
590
.madiaBlock .madiaHead.resouseHead {
591
    background-image: url(../images/default-resource.jpg);
592
}
593
594
.madiaBlock .madiaHead.artHead {
595
    background-image: url(../images/default-artical.jpg);
596
}
597
598
.madiaBlock .madiaHead.cmpHead {
599
    background: #FFFFFF;
600
    border-radius: 0;
601
    border: none
602
}
603
604
.madiaBlock .madiaHead.cmpHead .boxBlock {
605
    width: 90px;
606
    height: 60px;
607
}
608
609
.madiaBlock .madiaHead.cmpHead2 {
610
    width: 50px;
611
    height: 40px;
612
    margin-top: -20px;
613
    background: none;
614
    border-radius: 0;
615
    border: none
616
}
617
618
.madiaBlock .madiaHead.cmpHead2 .boxBlock {
619
    width: 50px;
620
    height: 40px;
621
}
622
623
.madiaBlock .madiaHead.paperHead {
624
    background-image: url(../images/default-paper.jpg);
625
}
626
627
.madiaBlock .madiaHead.patentHead {
628
    background-image: url(../images/default-patent.jpg);
629
}
630
631
.madiaBlock .madiaInfo {
632
    padding-left: 62px;
633
    width: 100%;
634
    margin: 6px 0;
635
    overflow: hidden;
636
}
637
638
.madiaBlock .madiaInfo.OmadiaInfo {
639
    padding-left: 102px;
640
}
121 641
122 642
.madiaBlock .madiaInfo.OmadiaInfo.teamStyle {
123 643
    padding-left: 0px;
@ -125,38 +645,173 @@ ul.tagList>li .h2Font{font-size: 14px;color: #666;line-height: 16px;}
125 645
126 646
127 647
128
.madiaBlock .flexCenter{min-height:64px;}
129
.madiaBlock .flexCenter>a{display: block;width: 100%;}
130
.madiaBlock .flexCenter>a .madiaInfo{width: auto;}
131
.madiaBlock .flexCenter.OflexCenter{min-height:72px;}
132
.madiaBlock .madiaInfo .h1Font{font-size: 16px;margin:0;line-height:24px;}
133
.madiaBlock .madiaInfo .h2Font{font-size: 14px;margin: 0;line-height: 22px;color:#999999;}
134
.madiaBlock .madiaInfo .ellipsisSty-2{max-height: 44px;}
135
.madiaBlock .madiaInfo .time{font-size:14px;color:#999;}
136
.madiaBlock ul.mui-table-view.noactiveTab>li{padding: 0;position: relative;}
648
.madiaBlock .flexCenter {
649
    min-height: 64px;
650
}
651
652
.madiaBlock .flexCenter>a {
653
    display: block;
654
    width: 100%;
655
}
656
657
.madiaBlock .flexCenter>a .madiaInfo {
658
    width: auto;
659
}
660
661
.madiaBlock .flexCenter.OflexCenter {
662
    min-height: 72px;
663
}
664
665
.madiaBlock .madiaInfo .h1Font {
666
    font-size: 16px;
667
    margin: 0;
668
    line-height: 24px;
669
}
670
671
.madiaBlock .madiaInfo .h2Font {
672
    font-size: 14px;
673
    margin: 0;
674
    line-height: 22px;
675
    color: #999999;
676
}
677
678
.madiaBlock .madiaInfo .ellipsisSty-2 {
679
    max-height: 44px;
680
}
681
682
.madiaBlock .madiaInfo .time {
683
    font-size: 14px;
684
    color: #999;
685
}
686
687
.madiaBlock ul.mui-table-view.noactiveTab>li {
688
    padding: 0;
689
    position: relative;
690
}
691
137 692
/*点赞模块*/
138
.thumbBlock{text-align: center;margin:30px 0;}
139
.thumbBlock .thumbBtn{display:inline-block;position:relative;padding:10px 24px;padding-left:44px;font-size:16px;color:#fff;background:url(../images/g_article_icon_dianzan_nor.png) no-repeat 24px center;background-size:16px 16px;background-color:#ff9900;border-radius:30px;cursor: pointer;}
140
.thumbBlock .thumbBtn.thumbedBtn{background: #e0e0e0;}
141
.thumbBlock .stepBtn{display:inline-block;position:relative;padding:10px;padding-left:30px;font-size:16px;color:#666;background:url(../images/h5_img/g_article_icon_cai_nor.png) no-repeat 10px center;background-size:16px 16px;cursor: pointer;}
142
.thumbBlock .stepBtn.stepedBtn{opacity: .6;}
693
.thumbBlock {
694
    text-align: center;
695
    margin: 30px 0;
696
}
697
698
.thumbBlock .thumbBtn {
699
    display: inline-block;
700
    position: relative;
701
    padding: 10px 24px;
702
    padding-left: 44px;
703
    font-size: 16px;
704
    color: #fff;
705
    background: url(../images/g_article_icon_dianzan_nor.png) no-repeat 24px center;
706
    background-size: 16px 16px;
707
    background-color: #ff9900;
708
    border-radius: 30px;
709
    cursor: pointer;
710
}
711
712
.thumbBlock .thumbBtn.thumbedBtn {
713
    background: #e0e0e0;
714
}
715
716
.thumbBlock .stepBtn {
717
    display: inline-block;
718
    position: relative;
719
    padding: 10px;
720
    padding-left: 30px;
721
    font-size: 16px;
722
    color: #666;
723
    background: url(../images/h5_img/g_article_icon_cai_nor.png) no-repeat 10px center;
724
    background-size: 16px 16px;
725
    cursor: pointer;
726
}
727
728
.thumbBlock .stepBtn.stepedBtn {
729
    opacity: .6;
730
}
731
143 732
/*留言*/
144
.commentBlock .flexCenter{min-height:38px;}
145
.commentBlock .operateSpan .spanitem{margin-right:18px;}
146
.commentBlock .operateSpan .spanitem>em{font-style: normal;}
147
.commentBlock .madiaHead.useHead{width: 40px;height:40px;margin-top:-20px;}/*小图像*/
148
.commentBlock .madiaInfo{padding-left:52px;width: auto;}
149
.commentBlock .operateSpan{margin:8px 0 0;color:#9d9ea8;font-size: 13px;color: #999;cursor: pointer;}
150
.commentBlock .madiaInfo .h2Font{ -webkit-user-select:text;word-break\n:break-word;}
151
.leaveWord .madiaInfo .h1Font{font-size:14px;word-break: break-word;} 
152
.leaveWord .madiaInfo .h2Font{font-size:14px;word-break: break-word;} 
153
.madiaBlock ul.mui-table-view.commentBlock{margin:4px 0 10px}
154
.madiaBlock ul.mui-table-view.noactiveTab>li.leaveWord{padding:6px 0;}
155
.hold-icon{position:relative;top:3px;display:inline-block;width:15px;height:15px;background-size: 100% auto;background-repeat: no-repeat;}
156
.icon-zan{background-image:url(../images/qa-icon-zan.png);background-position:0 -14px;}
733
.commentBlock .flexCenter {
734
    min-height: 38px;
735
}
736
737
.commentBlock .operateSpan .spanitem {
738
    margin-right: 18px;
739
}
740
741
.commentBlock .operateSpan .spanitem>em {
742
    font-style: normal;
743
}
744
745
.commentBlock .madiaHead.useHead {
746
    width: 40px;
747
    height: 40px;
748
    margin-top: -20px;
749
}
750
751
/*小图像*/
752
.commentBlock .madiaInfo {
753
    padding-left: 52px;
754
    width: auto;
755
}
756
757
.commentBlock .operateSpan {
758
    margin: 8px 0 0;
759
    color: #9d9ea8;
760
    font-size: 13px;
761
    color: #999;
762
    cursor: pointer;
763
}
764
765
.commentBlock .madiaInfo .h2Font {
766
    -webkit-user-select: text;
767
    word-break\n: break-word;
768
}
769
770
.leaveWord .madiaInfo .h1Font {
771
    font-size: 14px;
772
    word-break: break-word;
773
}
774
775
.leaveWord .madiaInfo .h2Font {
776
    font-size: 14px;
777
    word-break: break-word;
778
}
779
780
.madiaBlock ul.mui-table-view.commentBlock {
781
    margin: 4px 0 10px
782
}
783
784
.madiaBlock ul.mui-table-view.noactiveTab>li.leaveWord {
785
    padding: 6px 0;
786
}
787
788
.hold-icon {
789
    position: relative;
790
    top: 3px;
791
    display: inline-block;
792
    width: 15px;
793
    height: 15px;
794
    background-size: 100% auto;
795
    background-repeat: no-repeat;
796
}
797
798
.icon-zan {
799
    background-image: url(../images/qa-icon-zan.png);
800
    background-position: 0 -14px;
801
}
802
157 803
/*资源轮播图片样式*/
158
#index-container {height:300px;background: #f0f0f0;position: relative;overflow: hidden;z-index: 1;}
159
#index-container .swiper-wrapper { position: relative;z-index: 1;
804
#index-container {
805
    height: 300px;
806
    background: #f0f0f0;
807
    position: relative;
808
    overflow: hidden;
809
    z-index: 1;
810
}
811
812
#index-container .swiper-wrapper {
813
    position: relative;
814
    z-index: 1;
160 815
    display: -webkit-box;
161 816
    display: -moz-box;
162 817
    display: -ms-flexbox;
@ -175,6 +830,7 @@ ul.tagList>li .h2Font{font-size: 14px;color: #666;line-height: 16px;}
175 830
    -moz-box-sizing: content-box;
176 831
    box-sizing: content-box
177 832
}
833
178 834
#index-container .swiper-slide {
179 835
    -webkit-transform-style: preserve-3d;
180 836
    -moz-transform-style: preserve-3d;
@ -183,316 +839,1663 @@ ul.tagList>li .h2Font{font-size: 14px;color: #666;line-height: 16px;}
183 839
    -webkit-flex-shrink: 0;
184 840
    -ms-flex: 0 0 auto;
185 841
    flex-shrink: 0;
186
    width: 100%;position: relative;float: left
187
}
188
#index-container .swiper-slide .tab-re{display: inline-block;text-align: center;max-width:100%;width:100%;height:300px;overflow: hidden;vertical-align:middle;}
189
#index-container .swiper-slide .tab-re img{width:auto;max-width: 100%;max-height: 100%;vertical-align: middle;position: relative;}
190
#index-container .swiper-slide  .tab-re:before{content: ' ';display: inline-block;vertical-align: middle;width: 0;height: 100%;overflow: hidden;margin-left: -6px;}
191
#index-container .swiper-pagination {bottom: 20px;left: 0;width: 100%;position: absolute;z-index: 2;text-align: center;}
192
#index-container .swiper-pagination .swiper-pagination-bullet {width: 6px;height: 6px;margin:0 10px;background: #ccc;display: inline-block;border-radius: 50%;opacity: 0.9;}
193
#index-container .swiper-pagination .swiper-pagination-bullet-active {background: #fff}
842
    width: 100%;
843
    position: relative;
844
    float: left
845
}
846
847
#index-container .swiper-slide .tab-re {
848
    display: inline-block;
849
    text-align: center;
850
    max-width: 100%;
851
    width: 100%;
852
    height: 300px;
853
    overflow: hidden;
854
    vertical-align: middle;
855
}
856
857
#index-container .swiper-slide .tab-re img {
858
    width: auto;
859
    max-width: 100%;
860
    max-height: 100%;
861
    vertical-align: middle;
862
    position: relative;
863
}
864
865
#index-container .swiper-slide .tab-re:before {
866
    content: ' ';
867
    display: inline-block;
868
    vertical-align: middle;
869
    width: 0;
870
    height: 100%;
871
    overflow: hidden;
872
    margin-left: -6px;
873
}
874
875
#index-container .swiper-pagination {
876
    bottom: 20px;
877
    left: 0;
878
    width: 100%;
879
    position: absolute;
880
    z-index: 2;
881
    text-align: center;
882
}
883
884
#index-container .swiper-pagination .swiper-pagination-bullet {
885
    width: 6px;
886
    height: 6px;
887
    margin: 0 10px;
888
    background: #ccc;
889
    display: inline-block;
890
    border-radius: 50%;
891
    opacity: 0.9;
892
}
893
894
#index-container .swiper-pagination .swiper-pagination-bullet-active {
895
    background: #fff
896
}
897
194 898
/*轮播图片样式 end*/
195
.showMain>ul{margin:0;padding:0;}
196
.showMain.showRes>ul>li{padding:0;margin:0;list-style: none;display: none;}
197
.showMain .showTit{position:relative;padding-left:10px;text-indent: 0;}
198
.showMain .showTit:before{position:absolute;top:50%;margin-top:-10px;left:0;display:inline-block;content:"";width:4px;height:16px;background:#ff9900;}
899
.showMain>ul {
900
    margin: 0;
901
    padding: 0;
902
}
903
904
.showMain.showRes>ul>li {
905
    padding: 0;
906
    margin: 0;
907
    list-style: none;
908
    display: none;
909
}
910
911
.showMain .showTit {
912
    position: relative;
913
    padding-left: 10px;
914
    text-indent: 0;
915
}
916
917
.showMain .showTit:before {
918
    position: absolute;
919
    top: 50%;
920
    margin-top: -10px;
921
    left: 0;
922
    display: inline-block;
923
    content: "";
924
    width: 4px;
925
    height: 16px;
926
    background: #ff9900;
927
}
928
199 929
/*--------------2017.07.12新功能论文和专利相关--------------*/
200
.showMainP{margin-top: 20px;}
201
.showMainP li{overflow: hidden;}
202
.showMainP .showTit{padding-left: 0;color: #666;}
203
.showMainP .showTit:before{content: none;}
204
.showMainP .showCon{color: #333;text-align:justify}
930
.showMainP {
931
    margin-top: 20px;
932
}
933
934
.showMainP li {
935
    overflow: hidden;
936
}
937
938
.showMainP .showTit {
939
    padding-left: 0;
940
    color: #666;
941
}
942
943
.showMainP .showTit:before {
944
    content: none;
945
}
946
947
.showMainP .showCon {
948
    color: #333;
949
    text-align: justify
950
}
951
205 952
/*新版用户和企业相关*/
206
.showCardI{overflow:hidden;background: url(../images/personal_img_bg_nor@3x.png) center 0 no-repeat;background-size:100% 130px;}
207
.cardTop{position:relative;text-align:center;min-height:140px;margin:15px 15px 6px;padding:40px 40px 20px;
208
		background: rgba(256,256,256,.6);background: linear-gradient( rgba(256,256,256,.6), rgba(256,256,256,.9));border-radius:6px;box-shadow: 0px 2px 4px 1px rgba(0,0,0,.1);}
209
.cardImg{position: absolute;margin-top:-15px;left:50%;margin-left: -40px;width:80px;height: 80px;overflow: hidden;background-size: cover;/*border:1px solid #E5E5E5;*/background-color: #fff;}
210
.cardImg.userCard{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
211
.cardImg.cmpCard{border-radius:4px;width:120px;margin-left: -60px;background:none;}
212
.cardImg.cmpCard .boxBlock{width:120px;height: 80px;}
213
.cardInfo{margin-top:82px;}
214
.cardInfo .h1Font{font-size:16px;}
215
.cardInfo .h2Font{font-size:14px;color: #666;}
216
.cardInfo .h3Font{font-size:13px;line-height: 16px;color: #666;}
217
.cardInfo .icon-address{position:relative;}
218
219
.mainbox{width:100%;margin:10px auto;background: #FFFFFF;}
953
.showCardI {
954
    overflow: hidden;
955
    background: url(../images/personal_img_bg_nor@3x.png) center 0 no-repeat;
956
    background-size: 100% 130px;
957
}
958
959
.cardTop {
960
    position: relative;
961
    text-align: center;
962
    min-height: 140px;
963
    margin: 15px 15px 6px;
964
    padding: 40px 40px 20px;
965
    background: rgba(256, 256, 256, .6);
966
    background: linear-gradient(rgba(256, 256, 256, .6), rgba(256, 256, 256, .9));
967
    border-radius: 6px;
968
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, .1);
969
}
970
971
.cardImg {
972
    position: absolute;
973
    margin-top: -15px;
974
    left: 50%;
975
    margin-left: -40px;
976
    width: 80px;
977
    height: 80px;
978
    overflow: hidden;
979
    background-size: cover;
980
    /*border:1px solid #E5E5E5;*/
981
    background-color: #fff;
982
}
983
984
.cardImg.userCard {
985
    background-image: url(../images/default-photo.jpg);
986
    border-radius: 50%;
987
}
988
989
.cardImg.cmpCard {
990
    border-radius: 4px;
991
    width: 120px;
992
    margin-left: -60px;
993
    background: none;
994
}
995
996
.cardImg.cmpCard .boxBlock {
997
    width: 120px;
998
    height: 80px;
999
}
1000
1001
.cardInfo {
1002
    margin-top: 82px;
1003
}
1004
1005
.cardInfo .h1Font {
1006
    font-size: 16px;
1007
}
1008
1009
.cardInfo .h2Font {
1010
    font-size: 14px;
1011
    color: #666;
1012
}
1013
1014
.cardInfo .h3Font {
1015
    font-size: 13px;
1016
    line-height: 16px;
1017
    color: #666;
1018
}
1019
1020
.cardInfo .icon-address {
1021
    position: relative;
1022
}
1023
1024
.mainbox {
1025
    width: 100%;
1026
    margin: 10px auto;
1027
    background: #FFFFFF;
1028
}
1029
220 1030
/*专家相关信息*/
221
.infocontit{font-size:16px;line-height: 40px;min-height:40px; position: relative;padding-left: 26px;color:#333}
222
.infocontit:before{position:absolute;top:50%;margin-top:-10px;left: 15px;;display:inline-block;content:"";width:4px;height:18px;border-radius:10px;background:#ff9900;}
223
.infocontit em{font-style: normal;position:absolute;right:28px;}
224
.infocontit em:before{border: solid transparent;border-left-color:#ccc;border-width: 7px;content: " ";position: absolute;left: 100%;top: 12px;}
225
.infocontit em:after{border: solid transparent;border-left-color:#fff;border-width: 5px;content: " ";position: absolute;left: 100%;top: 14px;}
226
227
.infocontitM{padding-left: 15px;}
228
.infocontitM:before{content: none;}
229
.OnetitM{border-color: transparent;}
230
.infocon{padding:15px; font-size: 14px;line-height:22px;color:#666;border-top: 1px solid #E5E5E5;}
231
.infocon .breifinfo{display: -webkit-box;white-space: normal !important;text-overflow: ellipsis;word-wrap: break-word; -webkit-line-clamp:5;-webkit-box-orient: vertical;overflow: hidden;max-height: 110px;}
232
233
.infocon ul{ padding:0; margin: 0; overflow: hidden;}
234
.infocon ul>li{list-style: none;}
235
ul.mui-table-view>li{position: relative;overflow: hidden; padding: 11px 0px;}
236
ul.mui-table-view>li:after{position: absolute;right: 0;bottom: 0;left:0px;height: 1px;content: '';-webkit-transform: scaleY(.5);transform: scaleY(.5); background-color: #E5E5E5;}
237
ul.mui-table-view>li:last-child:after{background: none;}
238
.infocon.listArea>ul{overflow: hidden;margin-right: -10px;margin-top:-10px;}
239
.infocon.listArea>ul>li{float: left;margin-right: 10px;margin-top:10px;border:1px solid #E5E5E5;border-radius:6px;padding:2px 12px;}
240
.infocon.madiaBlock>ul{margin:-15px;}
241
.infocon.madiaBlock>ul>li{padding:6px 15px;}
242
.infocon.madiaBlock>ul>li:after{left:15px}
243
.infocon.madiaBlock .h1Font{font-size: 16px;margin: 0;line-height: 24px;color: #333333;}
244
.infocon.madiaBlock .h2Font{font-size: 14px;margin: 0;line-height: 22px;color:#999999;}
245
246
.seeMore{cursor:pointer;text-align:center;font-size:14px;color:#999;line-height:40px;height:40px;border-top:1px solid #E5E5E5;position: relative;}
247
.seeMore em{font-style: normal;position:relative;padding-right:5px;}
248
.seeMore em:before{border: solid transparent;border-left-color:#ccc;border-width: 7px;content: " ";position: absolute;left: 100%;top: 3px;}
249
.seeMore em:after{border: solid transparent;border-left-color:#fff;border-width: 5px;content: " ";position: absolute;left: 100%;top: 5px;}
250
.seeMore:active{background: none;}
251
.detailInfo>ul>li{color:#333;padding-left:0;}
252
.detailInfo>ul>li>span{color:#666}
253
254
.listbox{ margin:5px 0;max-width:100%; overflow:hidden;}
255
.listbrowse{border: 1px solid #FF9900; border-radius: 0 6px 6px 0; text-align:center;font-size:13px;line-height:27px; float:left;padding-right: 8px; max-width:60%; overflow:hidden;}
256
.plusbtn{ font-size:20px; line-height: 22px; color:#999999;margin-left:4px; margin-top:2px;  }
257
.plusbtn.icon-appreciatefill{color:#FF9900;}
258
.like {display: block;float: left;width: 28px;font-size:12px;background: #FF9900; color: #fff; line-height: 27px;margin-right: 5px;}
259
.likenum{ float:right;max-width:130px;overflow:hidden; }
260
.likenum .mui-icon{ font-size:24px; color:#CCCCCC;}
261
.likepeople{ width:26px; height:26px; float:left; overflow:hidden; margin-right:5px; }
262
.likepeople img{ width:100%; height:100%;}
263
.likemore{ display: block; width: 26px; height: 26px; border:1px solid #CCCCCC;background: url(../images/likemore.png) no-repeat center center;}
264
265
.infoapply li{position: relative; padding-left:12px;padding-right:2px;}
266
.infoapply li:before{content:''; background: #999;display: block;width: 4px;height: 4px;border-radius: 50%; position: absolute;top:8px;left:0;}
1031
.infocontit {
1032
    font-size: 16px;
1033
    line-height: 40px;
1034
    min-height: 40px;
1035
    position: relative;
1036
    padding-left: 26px;
1037
    color: #333
1038
}
1039
1040
.infocontit:before {
1041
    position: absolute;
1042
    top: 50%;
1043
    margin-top: -10px;
1044
    left: 15px;
1045
    ;
1046
    display: inline-block;
1047
    content: "";
1048
    width: 4px;
1049
    height: 18px;
1050
    border-radius: 10px;
1051
    background: #ff9900;
1052
}
1053
1054
.infocontit em {
1055
    font-style: normal;
1056
    position: absolute;
1057
    right: 28px;
1058
}
1059
1060
.infocontit em:before {
1061
    border: solid transparent;
1062
    border-left-color: #ccc;
1063
    border-width: 7px;
1064
    content: " ";
1065
    position: absolute;
1066
    left: 100%;
1067
    top: 12px;
1068
}
1069
1070
.infocontit em:after {
1071
    border: solid transparent;
1072
    border-left-color: #fff;
1073
    border-width: 5px;
1074
    content: " ";
1075
    position: absolute;
1076
    left: 100%;
1077
    top: 14px;
1078
}
1079
1080
.infocontitM {
1081
    padding-left: 15px;
1082
}
1083
1084
.infocontitM:before {
1085
    content: none;
1086
}
1087
1088
.OnetitM {
1089
    border-color: transparent;
1090
}
1091
1092
.infocon {
1093
    padding: 15px;
1094
    font-size: 14px;
1095
    line-height: 22px;
1096
    color: #666;
1097
    border-top: 1px solid #E5E5E5;
1098
}
1099
1100
.infocon .breifinfo {
1101
    display: -webkit-box;
1102
    white-space: normal !important;
1103
    text-overflow: ellipsis;
1104
    word-wrap: break-word;
1105
    -webkit-line-clamp: 5;
1106
    -webkit-box-orient: vertical;
1107
    overflow: hidden;
1108
    max-height: 110px;
1109
}
1110
1111
.infocon ul {
1112
    padding: 0;
1113
    margin: 0;
1114
    overflow: hidden;
1115
}
1116
1117
.infocon ul>li {
1118
    list-style: none;
1119
}
1120
1121
ul.mui-table-view>li {
1122
    position: relative;
1123
    overflow: hidden;
1124
    padding: 11px 0px;
1125
}
1126
1127
ul.mui-table-view>li:after {
1128
    position: absolute;
1129
    right: 0;
1130
    bottom: 0;
1131
    left: 0px;
1132
    height: 1px;
1133
    content: '';
1134
    -webkit-transform: scaleY(.5);
1135
    transform: scaleY(.5);
1136
    background-color: #E5E5E5;
1137
}
1138
1139
ul.mui-table-view>li:last-child:after {
1140
    background: none;
1141
}
1142
1143
.infocon.listArea>ul {
1144
    overflow: hidden;
1145
    margin-right: -10px;
1146
    margin-top: -10px;
1147
}
1148
1149
.infocon.listArea>ul>li {
1150
    float: left;
1151
    margin-right: 10px;
1152
    margin-top: 10px;
1153
    border: 1px solid #E5E5E5;
1154
    border-radius: 6px;
1155
    padding: 2px 12px;
1156
}
1157
1158
.infocon.madiaBlock>ul {
1159
    margin: -15px;
1160
}
1161
1162
.infocon.madiaBlock>ul>li {
1163
    padding: 6px 15px;
1164
}
1165
1166
.infocon.madiaBlock>ul>li:after {
1167
    left: 15px
1168
}
1169
1170
.infocon.madiaBlock .h1Font {
1171
    font-size: 16px;
1172
    margin: 0;
1173
    line-height: 24px;
1174
    color: #333333;
1175
}
1176
1177
.infocon.madiaBlock .h2Font {
1178
    font-size: 14px;
1179
    margin: 0;
1180
    line-height: 22px;
1181
    color: #999999;
1182
}
1183
1184
.seeMore {
1185
    cursor: pointer;
1186
    text-align: center;
1187
    font-size: 14px;
1188
    color: #999;
1189
    line-height: 40px;
1190
    height: 40px;
1191
    border-top: 1px solid #E5E5E5;
1192
    position: relative;
1193
}
1194
1195
.seeMore em {
1196
    font-style: normal;
1197
    position: relative;
1198
    padding-right: 5px;
1199
}
1200
1201
.seeMore em:before {
1202
    border: solid transparent;
1203
    border-left-color: #ccc;
1204
    border-width: 7px;
1205
    content: " ";
1206
    position: absolute;
1207
    left: 100%;
1208
    top: 3px;
1209
}
1210
1211
.seeMore em:after {
1212
    border: solid transparent;
1213
    border-left-color: #fff;
1214
    border-width: 5px;
1215
    content: " ";
1216
    position: absolute;
1217
    left: 100%;
1218
    top: 5px;
1219
}
1220
1221
.seeMore:active {
1222
    background: none;
1223
}
1224
1225
.detailInfo>ul>li {
1226
    color: #333;
1227
    padding-left: 0;
1228
}
1229
1230
.detailInfo>ul>li>span {
1231
    color: #666
1232
}
1233
1234
.listbox {
1235
    margin: 5px 0;
1236
    max-width: 100%;
1237
    overflow: hidden;
1238
}
1239
1240
.listbrowse {
1241
    border: 1px solid #FF9900;
1242
    border-radius: 0 6px 6px 0;
1243
    text-align: center;
1244
    font-size: 13px;
1245
    line-height: 27px;
1246
    float: left;
1247
    padding-right: 8px;
1248
    max-width: 60%;
1249
    overflow: hidden;
1250
}
1251
1252
.plusbtn {
1253
    font-size: 20px;
1254
    line-height: 22px;
1255
    color: #999999;
1256
    margin-left: 4px;
1257
    margin-top: 2px;
1258
}
1259
1260
.plusbtn.icon-appreciatefill {
1261
    color: #FF9900;
1262
}
1263
1264
.like {
1265
    display: block;
1266
    float: left;
1267
    width: 28px;
1268
    font-size: 12px;
1269
    background: #FF9900;
1270
    color: #fff;
1271
    line-height: 27px;
1272
    margin-right: 5px;
1273
}
1274
1275
.likenum {
1276
    float: right;
1277
    max-width: 130px;
1278
    overflow: hidden;
1279
}
1280
1281
.likenum .mui-icon {
1282
    font-size: 24px;
1283
    color: #CCCCCC;
1284
}
1285
1286
.likepeople {
1287
    width: 26px;
1288
    height: 26px;
1289
    float: left;
1290
    overflow: hidden;
1291
    margin-right: 5px;
1292
}
1293
1294
.likepeople img {
1295
    width: 100%;
1296
    height: 100%;
1297
}
1298
1299
.likemore {
1300
    display: block;
1301
    width: 26px;
1302
    height: 26px;
1303
    border: 1px solid #CCCCCC;
1304
    background: url(../images/likemore.png) no-repeat center center;
1305
}
1306
1307
.infoapply li {
1308
    position: relative;
1309
    padding-left: 12px;
1310
    padding-right: 2px;
1311
}
1312
1313
.infoapply li:before {
1314
    content: '';
1315
    background: #999;
1316
    display: block;
1317
    width: 4px;
1318
    height: 4px;
1319
    border-radius: 50%;
1320
    position: absolute;
1321
    top: 8px;
1322
    left: 0;
1323
}
267 1324
268 1325
/*星级*/
269
.infocon .starShow{position: absolute;right: 0;top:50%; margin-top:-8px;overflow: hidden;}
270
.infocon .starShow>li{float: left;margin:0 2px;display: inline-block;width: 14px;height: 14px;background-image: url(../images/favoricon.png);background-size: 100% auto;background-position:0 0;}
271
.infocon .starShow>li.evastar{background-position:0 -14px;} 
272
.commentBlock .madiaHead.useHeadMsg{top:10px;margin-top:0;}
1326
.infocon .starShow {
1327
    position: absolute;
1328
    right: 0;
1329
    top: 50%;
1330
    margin-top: -8px;
1331
    overflow: hidden;
1332
}
1333
1334
.infocon .starShow>li {
1335
    float: left;
1336
    margin: 0 2px;
1337
    display: inline-block;
1338
    width: 14px;
1339
    height: 14px;
1340
    background-image: url(../images/favoricon.png);
1341
    background-size: 100% auto;
1342
    background-position: 0 0;
1343
}
1344
1345
.infocon .starShow>li.evastar {
1346
    background-position: 0 -14px;
1347
}
1348
1349
.commentBlock .madiaHead.useHeadMsg {
1350
    top: 10px;
1351
    margin-top: 0;
1352
}
273 1353
274 1354
/*下载按钮及公众二维码*/
275
.shareEcode{padding:20px 6px;background: #FFFFFF;}
276
.Ecodecon{width: 100%;margin-bottom: 40px;}
277
.Ecodeinfo{margin:-50px 10px 20px;}
1355
.shareEcode {
1356
    padding: 20px 6px6px;
1357
    background: #FFFFFF;
1358
}
1359
1360
.Ecodecon {
1361
    width: 100%;
1362
    margin-bottom: 40px;
1363
}
1364
1365
.Ecodeinfo {
1366
    margin: -50px 10px 20px;
1367
}
1368
278 1369
/*专利论文邀请作者*/
279
.invitebody2{background:#ffbd51;padding-bottom:20px;}
280
.topSTit{position:relative;max-width:640px;padding:20px 0 0;text-align: center;}
281
.topSTit img{width: 100%;}
282
.topSTit .titSort{position:relative;padding: 0 50px;top:-68px;}
283
.topSTit .titSort .biaoti{margin-bottom: 30px;}
284
.invitebody2 .formblock{width: 90%;margin:-24px auto 0;padding:30px 30px 20px;background:url(../images/share_bg_zhuce_nor@3x.png) right 0 no-repeat #ffe38d;background-size:100%;border-radius:6px;}
285
.invitebody2 .form-control{background: #fff;border-radius: 6px;color:#666;font-size:16px;padding-left: 12px;}
286
.invitebody2 .form-control:-moz-placeholder {color:#bbb;}
287
.invitebody2 .form-control::-moz-placeholder {color:#bbb;}
288
.invitebody2 input.form-control:-ms-input-placeholder,textarea:-ms-input-placeholder {color:#bbb;}
289
.invitebody2 input.form-control::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color:#bbb;}
290
.invitebody2 .canPoint{color: #fff;background: #f75243;opacity: 1;}
291
.formTit{color:#781f1d;font-weight: bold;font-size:18px;line-height: 28px;margin:10px 0;max-height: 60px;}
292
.invitebody2 .inforbox2{width: 80%;margin: auto;text-align: center;font-size:16px;color: #d79222;}
293
.invitebody2 .inforbox2 .btn{margin:10px 0 6px;}
294
.invitebody2 .inforbox2 h4{color:#781F1D;font-size:17px;}
295
.invitebody2 .inforbox2 .topIn{color:#781F1D;font-size:17px;font-weight: bold;margin-bottom: 60px;margin-top:-20px}
296
.invitebody2 .inforbox2 .topIn em{display:inline-block;width:32px;height:32px;background-size: cover;position: relative;top: 10px;left: -6px;}
297
.invitebody2 .inforbox2 .topIn .shibai{background-image:url(../images/share_icon_shibai_nor@3x.png);}
298
.invitebody2 .inforbox2 .topIn .chenggong{background-image:url(../images/share_icon_chenggong_nor@3x.png);}
299
.invitebody2 .inforbox ul{width: 280px;margin: auto;}
300
.invitebody2 .inforbox .rightcon{color: #cc8610;}
1370
.invitebody2 {
1371
    background: #ffbd51;
1372
    padding-bottom: 20px;
1373
}
1374
1375
.topSTit {
1376
    position: relative;
1377
    max-width: 640px;
1378
    padding: 20px 0 0;
1379
    text-align: center;
1380
}
1381
1382
.topSTit img {
1383
    width: 100%;
1384
}
1385
1386
.topSTit .titSort {
1387
    position: relative;
1388
    padding: 0 50px;
1389
    top: -68px;
1390
}
1391
1392
.topSTit .titSort .biaoti {
1393
    margin-bottom: 30px;
1394
}
1395
1396
.invitebody2 .formblock {
1397
    width: 90%;
1398
    margin: -24px auto 0;
1399
    padding: 30px 30px 20px;
1400
    background: url(../images/share_bg_zhuce_nor@3x.png) right 0 no-repeat #ffe38d;
1401
    background-size: 100%;
1402
    border-radius: 6px;
1403
}
1404
1405
.invitebody2 .form-control {
1406
    background: #fff;
1407
    border-radius: 6px;
1408
    color: #666;
1409
    font-size: 16px;
1410
    padding-left: 12px;
1411
}
1412
1413
.invitebody2 .form-control:-moz-placeholder {
1414
    color: #bbb;
1415
}
1416
1417
.invitebody2 .form-control::-moz-placeholder {
1418
    color: #bbb;
1419
}
1420
1421
.invitebody2 input.form-control:-ms-input-placeholder,
1422
textarea:-ms-input-placeholder {
1423
    color: #bbb;
1424
}
1425
1426
.invitebody2 input.form-control::-webkit-input-placeholder,
1427
textarea::-webkit-input-placeholder {
1428
    color: #bbb;
1429
}
1430
1431
.invitebody2 .canPoint {
1432
    color: #fff;
1433
    background: #f75243;
1434
    opacity: 1;
1435
}
1436
1437
.formTit {
1438
    color: #781f1d;
1439
    font-weight: bold;
1440
    font-size: 18px;
1441
    line-height: 28px;
1442
    margin: 10px 0;
1443
    max-height: 60px;
1444
}
1445
1446
.invitebody2 .inforbox2 {
1447
    width: 80%;
1448
    margin: auto;
1449
    text-align: center;
1450
    font-size: 16px;
1451
    color: #d79222;
1452
}
1453
1454
.invitebody2 .inforbox2 .btn {
1455
    margin: 10px 0 6px;
1456
}
1457
1458
.invitebody2 .inforbox2 h4 {
1459
    color: #781F1D;
1460
    font-size: 17px;
1461
}
1462
1463
.invitebody2 .inforbox2 .topIn {
1464
    color: #781F1D;
1465
    font-size: 17px;
1466
    font-weight: bold;
1467
    margin-bottom: 60px;
1468
    margin-top: -20px
1469
}
1470
1471
.invitebody2 .inforbox2 .topIn em {
1472
    display: inline-block;
1473
    width: 32px;
1474
    height: 32px;
1475
    background-size: cover;
1476
    position: relative;
1477
    top: 10px;
1478
    left: -6px;
1479
}
1480
1481
.invitebody2 .inforbox2 .topIn .shibai {
1482
    background-image: url(../images/share_icon_shibai_nor@3x.png);
1483
}
1484
1485
.invitebody2 .inforbox2 .topIn .chenggong {
1486
    background-image: url(../images/share_icon_chenggong_nor@3x.png);
1487
}
1488
1489
.invitebody2 .inforbox ul {
1490
    width: 280px;
1491
    margin: auto;
1492
}
1493
1494
.invitebody2 .inforbox .rightcon {
1495
    color: #cc8610;
1496
}
301 1497
302 1498
/*--------------新版需求相关--------------*/
303
.needList .madiaInfo{padding:0;}
304
.needList .madiaInfo .h1Font{font-size: 16px;margin-bottom: 10px;}
305
.infocon.madiaBlock.needList .h2Font{font-size: 14px;line-height:24px;margin: 4px 0;color: #666;}
306
.needList .madiaInfo .h3Font{font-size: 12px;color:#999;}
307
.infocon.madiaBlock.needList>ul>li{padding:15px;}
308
.showli{overflow: hidden;}
309
.showli>span{padding-right:10px;font-size: 12px;color:#999;}
1499
.needList .madiaInfo {
1500
    padding: 0;
1501
}
1502
1503
.needList .madiaInfo .h1Font {
1504
    font-size: 16px;
1505
    margin-bottom: 10px;
1506
}
1507
1508
.infocon.madiaBlock.needList .h2Font {
1509
    font-size: 14px;
1510
    line-height: 24px;
1511
    margin: 4px 0;
1512
    color: #666;
1513
}
1514
1515
.needList .madiaInfo .h3Font {
1516
    font-size: 12px;
1517
    color: #999;
1518
}
1519
1520
.infocon.madiaBlock.needList>ul>li {
1521
    padding: 15px;
1522
}
1523
1524
.showli {
1525
    overflow: hidden;
1526
}
1527
1528
.showli>span {
1529
    padding-right: 10px;
1530
    font-size: 12px;
1531
    color: #999;
1532
}
310 1533
311 1534
/*===========微信中指示浏览器打开===========*/
312
.strCss{
313
	background-image:url(../images/guideJump.png);
314
	background-size:cover;
315
	left:0;right:0;top:0;bottom:0;position:fixed;z-index:19999;}
316
/*===========首页和搜索==============*/	
317
.maintitbox{background: #FFFFFF;}
318
.maintitbox .maintit{ line-height: 40px; font-size: 16px; text-align: center; color: #FF9900;}
319
.conblock{ background: #FFFFFF;margin:10px 0;}
320
.gridbg{ background: #FFFFFF; border: none;margin:auto;}
321
.gridbg li{ padding: 10px 4px;text-align:center;border-right: 1px solid #eee;border-bottom: 1px solid #eee;}
322
.gridbg li>a{display: block;color: #333;font-size: 12px;}
323
324
.btnLinkBox li{padding:11px 15px;}
325
.btnLinkBox li>a{display:block;margin:0 15px}
326
.btnLinkBox li:first-child{border-right:2px dashed #E5E5E5;}
327
.btnLinkBox .h1Font{font-weight: normal;color:#333333;font-size:16px;line-height: 18px;margin-bottom: 0;}
328
.btnLinkBox .h2Font{color:#888;font-size:12px;line-height: 22px;margin-bottom: 0;}
329
.btnLinkIcon{position:absolute;width:28px; height:28px;top:50%;margin-top:-14px;left:36px;text-align: center;vertical-align: middle;background-position: center;background-size: cover;}
330
.btnLinkIcon.fabuBtn{background-image: url(../images/h5_img/home_faxuqiu_nor@3x.png);}
331
.btnLinkIcon.proBtn{background-image: url(../images/h5_img/home_zhaozj_nor@3x.png);}
332
.btnLink{padding-left:40px;}
1535
.strCss {
1536
    background-image: url(../images/guideJump.png);
1537
    background-size: cover;
1538
    left: ;
1539
    right: 0;
1540
    top: 0;
1541
    bottom: 0;
1542
    position: fixed;
1543
    z-index: 19999;
1544
}
1545
1546
/*===========首页和搜索==============*/
1547
.maintitbox {
1548
    background: #FFFFFF;
1549
}
1550
1551
.maintitbox .maintit {
1552
    line-height: 40px;
1553
    font-size: 16px;
1554
    text-align: center;
1555
    color: #FF9900;
1556
}
1557
1558
.conblock {
1559
    background: #FFFFFF;
1560
    margin: 10px 0;
1561
}
1562
1563
.gridbg {
1564
    background: #FFFFFF;
1565
    border: none;
1566
    margin: auto;
1567
}
1568
1569
.gridbg li {
1570
    padding: 10px 4px;
1571
    text-align: center;
1572
    border-right: 1px solid #eee;
1573
    border-bottom: 1px solid #eee;
1574
}
1575
1576
.gridbg li>a {
1577
    display: block;
1578
    color: #333;
1579
    font-size: 12px;
1580
}
1581
1582
.btnLinkBox li {
1583
    padding: 11px 15px;
1584
}
1585
1586
.btnLinkBox li>a {
1587
    display: block;
1588
    margin: 0 15px
1589
}
1590
1591
.btnLinkBox li:first-child {
1592
    border-right: 2px dashed #E5E5E5;
1593
}
1594
1595
.btnLinkBox .h1Font {
1596
    font-weight: normal;
1597
    color: #333333;
1598
    font-size: 16px;
1599
    line-height: 18px;
1600
    margin-bottom: 0;
1601
}
1602
1603
.btnLinkBox .h2Font {
1604
    color: #888;
1605
    font-size: 12px;
1606
    line-height: 22px;
1607
    margin-bottom: 0;
1608
}
1609
1610
.btnLinkIcon {
1611
    position: absolute;
1612
    width: 28px;
1613
    height: 28px;
1614
    top: 50%;
1615
    margin-top: -14px;
1616
    left: 36px;
1617
    text-align: center;
1618
    vertical-align: middle;
1619
    background-position: center;
1620
    background-size: cover;
1621
}
1622
1623
.btnLinkIcon.fabuBtn {
1624
    background-image: url(../images/h5_img/home_faxuqiu_nor@3x.png);
1625
}
1626
1627
.btnLinkIcon.proBtn {
1628
    background-image: url(../images/h5_img/home_zhaozj_nor@3x.png);
1629
}
1630
1631
.btnLink {
1632
    padding-left: 40px;
1633
}
1634
333 1635
/*热门领域*/
334
.fieldicon{display:block;width:24px; height:24px;margin:10px auto;background-repeat: no-repeat;background-size: cover;}
335
.fieldicon01{background-image: url(../images/field_icon/home_field_youqi.png);}
336
.fieldicon02{background-image: url(../images/field_icon/home_field_luosi.png);}
337
.fieldicon03{background-image: url(../images/field_icon/home_field_banshou.png);}
338
.fieldicon04{background-image: url(../images/field_icon/home_field_6bian.png);}
339
.fieldicon05{background-image: url(../images/field_icon/home_field_jinshu.png);}
340
.fieldicon-more{background-image: url(../images/field_icon/home_field_more.png);}
341
342
.infocon.madiaBlock .h3Font{font-size:13px;line-height:22px;color:#666666;}
1636
.fieldicon {
1637
    display: block;
1638
    width: 24px;
1639
    height: 24px;
1640
    margin: 10px auto;
1641
    background-repeat: no-repeat;
1642
    background-size: cover;
1643
}
1644
1645
.fieldicon01 {
1646
    background-image: url(../images/field_icon/home_field_youqi.png);
1647
}
1648
1649
.fieldicon02 {
1650
    background-image: url(../images/field_icon/home_field_luosi.png);
1651
}
1652
1653
.fieldicon03 {
1654
    background-image: url(../images/field_icon/home_field_banshou.png);
1655
}
1656
1657
.fieldicon04 {
1658
    background-image: url(../images/field_icon/home_field_6bian.png);
1659
}
1660
1661
.fieldicon05 {
1662
    background-image: url(../images/field_icon/home_field_jinshu.png);
1663
}
1664
1665
.fieldicon-more {
1666
    background-image: url(../images/field_icon/home_field_more.png);
1667
}
1668
1669
.infocon.madiaBlock .h3Font {
1670
    font-size: 13px;
1671
    line-height: 22px;
1672
    color: #666666;
1673
}
1674
343 1675
/*搜索*/
344
.fixedBlock{position:fixed;top:0;width:100%;max-width:640px;z-index:3;}
345
.searchBox{position:relative;height:42px;background:#ff9900;overflow:hidden;}
346
.searchBox input.form-control[type='search']{border-color:#ff9900;background:#FFFFFF;vertical-align:middle;text-align: left;width:98%;height: 30px; border-radius:4px; font-size:12px; line-height:16px;margin:6px auto;}
347
.searchBox input.form-control[type='search']:focus{outline:none;box-shadow:none;border-color:#ff9900;}
348
.searchboxNewT{padding-right:34px;}
349
.rightnav{position:absolute;right:0;top:50%;margin-top:-15px;padding:0 8px;text-align: center;font-size:12px;line-height: 12px;color:#FFFFFF;}
350
.serchicon{margin:0 2px;display:block;width:20px;height:20px;background-image: url(../images/h5_img/search-icon-filter.png);background-repeat: no-repeat;background-size:20px auto;}
351
.icon-filter{background-position:0 0;}
352
.rightnav .badge{position: absolute;right:4px;top:-1px;padding:1px 4px;background:#FFFFFF;color:#FF9900;}
1676
.fixedBlock {
1677
    position: fixed;
1678
    top: 0;
1679
    width: 100%;
1680
    max-width: 640px;
1681
    z-index: 3;
1682
}
1683
1684
.searchBox {
1685
    position: relative;
1686
    height: 42px;
1687
    background: #ff9900;
1688
    overflow: hidden;
1689
}
1690
1691
.searchBox input.form-control[type='search'] {
1692
    border-color: #ff9900;
1693
    background: #FFFFFF;
1694
    vertical-align: middle;
1695
    text-align: left;
1696
    width: 98%;
1697
    height: 30px;
1698
    border-radius: 4px;
1699
    font-size: 12px;
1700
    line-height: 16px;
1701
    margin: 6px auto;
1702
}
1703
1704
.searchBox input.form-control[type='search']:focus {
1705
    outline: none;
1706
    box-shadow: none;
1707
    border-color: #ff9900;
1708
}
1709
1710
.searchboxNewT {
1711
    padding-right: 34px;
1712
}
1713
1714
.rightnav {
1715
    position: absolute;
1716
    right: 0;
1717
    top: 50%;
1718
    margin-top: -15px;
1719
    padding: 0 8px;
1720
    text-align: center;
1721
    font-size: 12px;
1722
    line-height: 12px;
1723
    color: #FFFFFF;
1724
}
1725
1726
.serchicon {
1727
    margin: 0 2px;
1728
    display: block;
1729
    width: 20px;
1730
    height: 20px;
1731
    background-image: url(../images/h5_img/search-icon-filter.png);
1732
    background-repeat: no-repeat;
1733
    background-size: 20px auto;
1734
}
1735
1736
.icon-filter {
1737
    background-position: 0 0;
1738
}
1739
1740
.rightnav .badge {
1741
    position: absolute;
1742
    right: 4px;
1743
    top: -1px;
1744
    padding: 1px 4px;
1745
    background: #FFFFFF;
1746
    color: #FF9900;
1747
}
1748
353 1749
/*筛选条件*/
354
.filterCon{position:relative;width: 85%;max-width:435px;left: 65px;height: 100%;}
355
.filterCon .toptit{position: absolute; z-index: 2;top: 0;right: 0;width:100%;height: 42px;
356
		line-height: 42px;font-size:16px;background: #ff9900;color: #FFFFFF;text-align: center;}
357
.filterListNew{ padding:14px 14px 8px;}
358
.mmenu.mmenu-horizontal ul.filterUl{width: 100%;float: none;}
359
.mmenu li{border: none;}
360
#wrapper {position: absolute;z-index: 1;top: 42px;bottom: 40px;right: 0;width:100%;overflow: hidden;}
361
362
#scroller {position: absolute;z-index: 1;width: 100%;
363
	-webkit-transform: translateZ(0);
364
	-moz-transform: translateZ(0);
365
	-ms-transform: translateZ(0);
366
	-o-transform: translateZ(0);
367
	transform: translateZ(0);
368
	-webkit-touch-callout: none;
369
}
370
371
.midCon{padding-bottom: 45px;}
372
.filterUl{height: 80px;padding:0;margin:14px 0 0;margin-right: -2%; overflow: hidden;}
373
.filterUl.filterUlactive{height: auto;}
374
.filterUl li{list-style: none; float: left;text-align: center;padding:8px 10px; margin:0 2% 8px 0;font-size:12px; background: #F6F6F6; color: #333; border-radius: 4px;
375
    overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
376
.filterUl li.filterCurrent{background: #ff9900;color:#FFFFFF;}
377
.filterUl.fourUl li{width:23%;}
378
.filterUl.threeUl li{width:31.3333%;}
379
.rightbtn{color:#8f8f94;margin-bottom:10px;cursor: pointer;}
380
.rightbtn>span{color:#ff9900;margin-left:15px;}
381
.rightbtn{position: relative;}
382
.rightbtn .foldtr{position: absolute;top:8px;right: 42px;}
383
.rightbtn .foldtr:after{ border:solid transparent;border-top-color:#fff;border-width:5px;content:" ";position:absolute;top:100%;left:20px;}
384
.rightbtn .foldtr:before{border:solid transparent;border-top-color:#ccc;border-width:7px;content:" ";position:absolute;top:100%;left:18px;}
385
.rightbtn .unfoldtr{position: absolute;top:15px;right: 42px;}
386
.rightbtn .unfoldtr:after{ border:solid transparent;border-bottom-color:#fff;border-width:5px;content:" ";position:absolute;bottom:100%;left:20px;}
387
.rightbtn .unfoldtr:before{border:solid transparent;border-bottom-color:#ccc;border-width:7px;content:" ";position:absolute;bottom:100%;left:18px;}
388
389
.submitBtn{position: absolute;z-index: 2;bottom: 0;right: 0;bottom:0;width:100%;}
390
.submitBtn>span{display: inline-block;line-height:40px;color:#FFFFFF;width: 50%;text-align: center;background:#ffb649;}
391
.submitBtn>span:last-child{background:#FF7600;}
1750
.filterCon {
1751
    position: relative;
1752
    width: 85%;
1753
    max-width: 435px;
1754
    left: 65px;
1755
    height: 100%;
1756
}
1757
1758
.filterCon .toptit {
1759
    position: absolute;
1760
    z-index: 2;
1761
    top: 0;
1762
    right: 0;
1763
    width: 100%;
1764
    height: 42px;
1765
    line-height: 42px;
1766
    font-size: 16px;
1767
    background: #ff9900;
1768
    color: #FFFFFF;
1769
    text-align: center;
1770
}
1771
1772
.filterListNew {
1773
    padding: 14px 14px 8px;
1774
}
1775
1776
.mmenu.mmenu-horizontal ul.filterUl {
1777
    width: 100%;
1778
    float: none;
1779
}
1780
1781
.mmenu li {
1782
    border: none;
1783
}
1784
1785
#wrapper {
1786
    position: absolute;
1787
    z-index: 1;
1788
    top: 42px;
1789
    bottom: 40px;
1790
    right: 0;
1791
    width: 100%;
1792
    overflow: hidden;
1793
}
1794
1795
#scroller {
1796
    position: absolute;
1797
    z-index: 1;
1798
    width: 100%;
1799
    -webkit-transform: translateZ(0);
1800
    -moz-transform: translateZ(0);
1801
    -ms-transform: translateZ(0);
1802
    -o-transform: translateZ(0);
1803
    transform: translateZ(0);
1804
    -webkit-touch-callout: none;
1805
}
1806
1807
.midCon {
1808
    padding-bottom: 45px;
1809
}
1810
1811
.filterUl {
1812
    height: 80px;
1813
    padding: 0;
1814
    margin: 14px 0 0;
1815
    margin-right: -2%;
1816
    overflow: hidden;
1817
}
1818
1819
.filterUl.filterUlactive {
1820
    height: auto;
1821
}
1822
1823
.filterUl li {
1824
    list-style: none;
1825
    float: left;
1826
    text-align: center;
1827
    padding: 8px 10px;
1828
    margin: 0 2% 8px 0;
1829
    font-size: 12px;
1830
    background: #F6F6F6;
1831
    color: #333;
1832
    border-radius: 4px;
1833
    overflow: hidden;
1834
    white-space: nowrap;
1835
    text-overflow: ellipsis;
1836
}
1837
1838
.filterUl li.filterCurrent {
1839
    background: #ff9900;
1840
    color: #FFFFFF;
1841
}
1842
1843
.filterUl.fourUl li {
1844
    width: 23%;
1845
}
1846
1847
.filterUl.threeUl li {
1848
    width: 31.3333%;
1849
}
1850
1851
.rightbtn {
1852
    color: #8f8f94;
1853
    margin-bottom: 10px;
1854
    cursor: pointer;
1855
}
1856
1857
.rightbtn>span {
1858
    color: #ff9900;
1859
    margin-left: 15px;
1860
}
1861
1862
.rightbtn {
1863
    position: relative;
1864
}
1865
1866
.rightbtn .foldtr {
1867
    position: absolute;
1868
    top: 8px;
1869
    right: 42px;
1870
}
1871
1872
.rightbtn .foldtr:after {
1873
    border: solid transparent;
1874
    border-top-color: #fff;
1875
    border-width: 5px;
1876
    content: " ";
1877
    position: absolute;
1878
    top: 100%;
1879
    left: 20px;
1880
}
1881
1882
.rightbtn .foldtr:before {
1883
    border: solid transparent;
1884
    border-top-color: #ccc;
1885
    border-width: 7px;
1886
    content: " ";
1887
    position: absolute;
1888
    top: 100%;
1889
    left: 18px;
1890
}
1891
1892
.rightbtn .unfoldtr {
1893
    position: absolute;
1894
    top: 15px;
1895
    right: 42px;
1896
}
1897
1898
.rightbtn .unfoldtr:after {
1899
    border: solid transparent;
1900
    border-bottom-color: #fff;
1901
    border-width: 5px;
1902
    content: " ";
1903
    position: absolute;
1904
    bottom: 100%;
1905
    left: 20px;
1906
}
1907
1908
.rightbtn .unfoldtr:before {
1909
    border: solid transparent;
1910
    border-bottom-color: #ccc;
1911
    border-width: 7px;
1912
    content: " ";
1913
    position: absolute;
1914
    bottom: 100%;
1915
    left: 18px;
1916
}
1917
1918
.submitBtn {
1919
    position: absolute;
1920
    z-index: 2;
1921
    bottom: 0;
1922
    right: 0;
1923
    bottom: 0;
1924
    width: 100%;
1925
}
1926
1927
.submitBtn>span {
1928
    display: inline-block;
1929
    line-height: 40px;
1930
    color: #FFFFFF;
1931
    width: 50%;
1932
    text-align: center;
1933
    background: #ffb649;
1934
}
1935
1936
.submitBtn>span:last-child {
1937
    background: #FF7600;
1938
}
1939
392 1940
/*导航栏 */
393
.tabBox{height:40px; }
394
.swiper-wrapper-tab .swiper-slide-tab {line-height:40px;font-size: 15px;text-align: center;background: #fff;width:auto;padding:0 5%;}
395
.swiper-wrapper-tab .swiper-slide-tab:after { position: absolute; top: auto; right: auto; bottom: 0; left: 0; z-index: 2; display: block; width: 100%; height: 1px; content: ''; background-color: #dcdcdc; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-transform: scaleY(.5) }
396
.swiper-wrapper-tab .swiper-slide-tab.active-tab{color:#ff9900; }
397
.swiper-wrapper-tab .swiper-slide-tab.active-tab:after{opacity: 1; background-color:#ff9900; height: 4px; }
1941
.tabBox {
1942
    height: 40px;
1943
}
1944
1945
.swiper-wrapper-tab .swiper-slide-tab {
1946
    line-height: 40px;
1947
    font-size: 15px;
1948
    text-align: center;
1949
    background: #fff;
1950
    width: auto;
1951
    padding: 0 5%;
1952
}
1953
1954
.swiper-wrapper-tab .swiper-slide-tab:after {
1955
    position: absolute;
1956
    top: auto;
1957
    right: auto;
1958
    bottom: 0;
1959
    left: 0;
1960
    z-index: 2;
1961
    display: block;
1962
    width: 100%;
1963
    height: 1px;
1964
    content: '';
1965
    background-color: #dcdcdc;
1966
    -webkit-transform-origin: 50% 100%;
1967
    transform-origin: 50% 100%;
1968
    -webkit-transform: scaleY(.5)
1969
}
1970
1971
.swiper-wrapper-tab .swiper-slide-tab.active-tab {
1972
    color: #ff9900;
1973
}
1974
1975
.swiper-wrapper-tab .swiper-slide-tab.active-tab:after {
1976
    opacity: 1;
1977
    background-color: #ff9900;
1978
    height: 4px;
1979
}
1980
1981
.swiper-container-main {
1982
    position: relative;
1983
    margin-top: 80px;
1984
    padding-bottom: 80px;
1985
    overflow: visible;
1986
    z-index: 2;
1987
}
1988
1989
.swiper-container-main .swiper-slide ul.mui-table-view {
1990
    background: #FFFFFF;
1991
}
1992
1993
.swiper-container-main .swiper-slide ul.mui-table-view>li {
1994
    padding: 11px 15px;
1995
}
1996
1997
.refreshtip {
1998
    position: absolute;
1999
    left: 0;
2000
    width: 100%;
2001
    margin: 10px 0;
2002
    text-align: center;
2003
    color: #999;
2004
}
2005
2006
.init-loading {
2007
    border: none;
2008
    text-align: center;
2009
}
398 2010
399
.swiper-container-main{position:relative;margin-top:80px;padding-bottom:80px;overflow: visible;z-index: 2;}
400
.swiper-container-main .swiper-slide ul.mui-table-view{background: #FFFFFF;}
401
.swiper-container-main .swiper-slide ul.mui-table-view>li{padding:11px 15px;}
2011
.loadtip {
2012
    position: fixed;
2013
    display: block;
2014
    width: 100%;
2015
    line-height: 40px;
2016
    height: 40px;
2017
    text-align: center;
2018
    color: #999;
2019
    bottom: 20px;
2020
    z-index: 0;
2021
}
402 2022
403
.refreshtip {position: absolute;left: 0;width: 100%;margin: 10px 0;text-align: center;color: #999;}
404
.init-loading{border:none;text-align: center;}
2023
.swiper-container-main,
2024
.w {
2025
    height: calc(100vh - 80px);
2026
}
405 2027
406
.loadtip {position: fixed;display: block;width: 100%;line-height: 40px; height: 40px;text-align: center;color: #999;bottom:20px;z-index:0;}
407
.swiper-container-main, .w{height: calc(100vh - 80px);}
408
.swiper-slide{height: auto;}
2028
.swiper-slide {
2029
    height: auto;
2030
}
409 2031
410 2032
/*缺省*/
411
.nodatabox .nodata{width: auto;}
412
.nodatabox .picbox{width:100px;height:100px;}
413
.nodatabox .noContip{font-size:14px;line-height:20px;}
2033
.nodatabox .nodata {
2034
    width: auto;
2035
}
2036
2037
.nodatabox .picbox {
2038
    width: 100px;
2039
    height: 100px;
2040
}
2041
2042
.nodatabox .noContip {
2043
    font-size: 14px;
2044
    line-height: 20px;
2045
}
414 2046
415 2047
/*广告位的设计规则及尺寸    底部(760*220)*/
416
.advertItem .swiper-pagination-bullet{width:6px; height:6px;}
417
.advertsub{position: relative;display: block;}
418
.advertsub:after{content:"广告";font-size:10px;color:#fff;background:rgba(0,0,0,0.3);position:absolute;padding:0 4px;right:0;bottom:0px;}
2048
.advertItem .swiper-pagination-bullet {
2049
    width: 6px;
2050
    height: 6px;
2051
}
2052
2053
.advertsub {
2054
    position: relative;
2055
    display: block;
2056
}
2057
2058
.advertsub:after {
2059
    content: "广告";
2060
    font-size: 10px;
2061
    color: #fff;
2062
    background: rgba(0, 0, 0, 0.3);
2063
    position: absolute;
2064
    padding: 0 4px;
2065
    right: 0;
2066
    bottom: 0px;
2067
}
419 2068
420 2069
/*问答 2017.12.26*/
421
.con-kong{line-height: 60px;color: #aaa;font-size: 14px;text-align: center;padding:10% 0;background: none;}
422
.txtbox{font-size: 14px;}
423
.qa-count{position: relative;padding:6px 15px;background:#fff;}    
424
.qa-count>span{position:absolute;top:50%;display:inline-block;width:32px; height:32px;margin-top:-16px;background:url(../images/zan_qa_icon_hig@3x.png);background-size:cover}
425
.qa-count>p{padding-left:40px;margin: 0;line-height: 32px;font-size:15px;}
426
.qa-count>p>em{color:#FF9900;font-weight:bold;}
427
.qa-owner{overflow: hidden;min-height:40px;margin: 6px 0 2px;}
428
.searchTab .qa-owner{min-height:40px;}
429
.qa-owner .owner-head{position:absolute;top:50%;background-position: center;background-size: cover;}
430
.qa-owner .owner-head.useHead{width:32px;height:32px;margin-top:-16px;background-image: url(../images/default-photo.jpg);border-radius: 50%;}
431
.qa-owner .owner-info{padding-left:38px;width: 100%;overflow: hidden;height:30px;}
432
.owner-name{float: left;}
433
.owner-name .h1Font{font-size:16px;line-height: 30px;}
434
.owner-tit{padding-left:10px;color:#888888;font-size: 14px;}
435
.qa-con{font-size:14px;line-height: 22px;color:#666;}
436
.showliSpan{overflow: hidden;margin-top:10px;margin-right:-10px;}
437
.showliSpan>span{font-size:13px;line-height: 22px;color: #999999;padding-right:10px}
438
.mui-table-view.partLine{background: none;}
439
.mui-table-view.partLine>.mui-table-view-cell{margin-bottom: 10px;background: #fff; padding: 11px 15px;}
440
.mui-table-view.partLine>.mui-table-view-cell:after{content:none;}
441
.qa-btnlink{margin-bottom: 10px;background:#fff;}
442
.qa-btnlink .mui-media-object.btnLinkIcon{width:22px; height:22px;margin-top:-11px;left: 8px;}
443
.qa-btnlink .madiaBlock{overflow: hidden;}
444
.qa-top{border-bottom: 1px solid #e5e5e5;position: relative;}
445
.qa-top em{font-style: normal;position:absolute;right:24px;top:12%;}
446
.qa-top em:before{border: solid transparent;border-left-color:#ccc;border-width: 7px;content: " ";position: absolute;left: 100%;top: 12px;}
447
.qa-top em:after{border: solid transparent;border-left-color:#fff;border-width: 5px;content: " ";position: absolute;left: 100%;top: 14px;}
448
449
.qa-top .flexCenter{padding:0 15px;min-height:68px;}
450
.qa-top .unlogin{font-size:14px;color:#ff9900;line-height:68px;text-align: center;}
451
.qa-top .onlogin{position: relative;}
452
.showDetail>.qa-top{margin:0 -15px;padding:0 15px;min-height:48px;}
453
.showDetail>.qa-top .flex-pright{padding-right:26px;}
454
.searchTab .qa-btnlink .mui-media{text-align: center;}
455
.searchTab .qa-btnlink .mui-media-body.btnLink{display: inline-block;font-size:15px;line-height: 24px;padding-left:36px;}
456
.searchTab .qa-btnlink .mui-table-view-cell{padding:8px 15px;height:auto}
457
.searchTab .qa-btnlink .mui-table-view-cell>div{position:relative;display: inline-block;}
458
.show-item{overflow: hidden;}
459
.show-item>span{padding-right:10px;}
460
.qa-title{padding:15px;border-bottom:1px solid #e5e5e5;font-size: 16px;}
461
.request-qa .yaoqing{position: absolute;right: 15px;top:50%;margin-top:-16px;padding:6px 14px;color:#fff;background: #ff9900;border-radius:4px;}
462
.request-qa .yiyaoqing{background: #ccc;padding:6px 7px;}
463
.searchTab .mui-table-view.myAllneeds>.mui-table-view-cell{height: auto;}
464
.searchTab .mui-table-view.myAllneeds .madiaInfo{padding-left: 0;}
465
466
.list-main ul {display: block;padding: 0;list-style-type: none;font-size: 0;}
467
.list_content{background: #fff;margin-bottom: 10px;}
468
.list_content .tagList{padding:6px 15px;}
469
.list-hold-count{padding:0 15px;border-bottom:1px solid #e5e5e5;background:#fff;line-height:42px;overflow: hidden;}
470
.list-hold-count>span{float: left;}
471
.list-hold-count>ul{float: right;}
472
.list-hold-count>ul>li{float:left;display: inline-block;}
473
.list-hold-count>ul>li>span{position: relative;top:5px;display:inline-block;font-size:14px;line-height:24px;padding:0 10px;border:1px solid #e5e5e5}
474
.list-hold-count>ul>li.active>span{background: #ff9900;color:#fff;border-color: #ff9900}
475
.list-hold .qa-owner{margin: 0;}
476
.list-hold .con-kong{background: #FFFFFF;}
477
.item_detail{padding:6px 15px;}
478
.item_detail .h1Font{font-weight:normal;font-size:18px;line-height:24px;color:#000}
479
.item_detail .list_con{font-size: 15px;color: #333;line-height: 24px;margin: 6px 0;text-align:justify;word-break: break-word;}
480
.list-main .list_image{display: none;}
481
.item_info .h3Font{font-size: 14px;color:#888}
482
.item-btn{overflow: hidden;}
483
.list_image li,.item-btn li{display: inline-block;float:left; width: 33.3%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
484
.list_image li>.imgspan{display: block;width: 98%;height:90px;background-size: cover;background-position: center;}
485
.list_image li>.imgspan img{opacity: 0;width: 100%;height:100%}
486
487
.item-btn{border-top:1px solid #e5e5e5;}
488
.item-btn li{border-right:1px solid #e5e5e5;}
489
.item-btn li>span{display: inline-block;width: 100%;text-align: center;color:#666;font-size:14px;padding:8px 0;}
490
.item-btn li.answered>span{color:#FF0000}
491
.item-btn li.collectBtn>span{position:absolute;width:20px;left:50%;margin-left:-10px;top:8px;height:4px;}
2070
.con-kong {
2071
    line-height: 60px;
2072
    color: #aaa;
2073
    font-size: 14px;
2074
    text-align: center;
2075
    padding: 10% 0;
2076
    background: none;
2077
}
2078
2079
.txtbox {
2080
    font-size: 14px;
2081
}
2082
2083
.qa-count {
2084
    position: relative;
2085
    padding: 6px 15px;
2086
    background: #fff;
2087
}
2088
2089
.qa-count>span {
2090
    position: absolute;
2091
    top: 50%;
2092
    display: inline-block;
2093
    width: 32px;
2094
    height: 32px;
2095
    margin-top: -16px;
2096
    background: url(../images/zan_qa_icon_hig@3x.png);
2097
    background-size: cover
2098
}
2099
2100
.qa-count>p {
2101
    padding-left: 40px;
2102
    margin: 0;
2103
    line-height: 32px;
2104
    font-size: 15px;
2105
}
2106
2107
.qa-count>p>em {
2108
    color: #FF9900;
2109
    font-weight: bold;
2110
}
2111
2112
.qa-owner {
2113
    overflow: hidden;
2114
    min-height: 40px;
2115
    margin: 6px 0 2px;
2116
}
2117
2118
.searchTab .qa-owner {
2119
    min-height: 40px;
2120
}
2121
2122
.qa-owner .owner-head {
2123
    position: absolute;
2124
    top: 50%;
2125
    background-position: center;
2126
    background-size: cover;
2127
}
2128
2129
.qa-owner .owner-head.useHead {
2130
    width: 32px;
2131
    height: 32px;
2132
    margin-top: -16px;
2133
    background-image: url(../images/default-photo.jpg);
2134
    border-radius: 50%;
2135
}
2136
2137
.qa-owner .owner-info {
2138
    padding-left: 38px;
2139
    width: 100%;
2140
    overflow: hidden;
2141
    height: 30px;
2142
}
2143
2144
.owner-name {
2145
    float: left;
2146
}
2147
2148
.owner-name .h1Font {
2149
    font-size: 16px;
2150
    line-height: 30px;
2151
}
2152
2153
.owner-tit {
2154
    padding-left: 10px;
2155
    color: #888888;
2156
    font-size: 14px;
2157
}
2158
2159
.qa-con {
2160
    font-size: 14px;
2161
    line-height: 22px;
2162
    color: #666;
2163
}
2164
2165
.showliSpan {
2166
    overflow: hidden;
2167
    margin-top: 10px;
2168
    margin-right: -10px;
2169
}
2170
2171
.showliSpan>span {
2172
    font-size: 13px;
2173
    line-height: 22px;
2174
    color: #999999;
2175
    padding-right: 10px
2176
}
2177
2178
.mui-table-view.partLine {
2179
    background: none;
2180
}
2181
2182
.mui-table-view.partLine>.mui-table-view-cell {
2183
    margin-bottom: 10px;
2184
    background: #fff;
2185
    padding: 11px 15px;
2186
}
2187
2188
.mui-table-view.partLine>.mui-table-view-cell:after {
2189
    content: none;
2190
}
2191
2192
.qa-btnlink {
2193
    margin-bottom: 10px;
2194
    background: #fff;
2195
}
2196
2197
.qa-btnlink .mui-media-object.btnLinkIcon {
2198
    width: 22px;
2199
    height: 22px;
2200
    margin-top: -11px;
2201
    left: 8px;
2202
}
2203
2204
.qa-btnlink .madiaBlock {
2205
    overflow: hidden;
2206
}
2207
2208
.qa-top {
2209
    border-bottom: 1px solid #e5e5e5;
2210
    position: relative;
2211
}
2212
2213
.qa-top em {
2214
    font-style: normal;
2215
    position: absolute;
2216
    right: 24px;
2217
    top: 12%;
2218
}
2219
2220
.qa-top em:before {
2221
    border: solid transparent;
2222
    border-left-color: #ccc;
2223
    border-width: 7px;
2224
    content: " ";
2225
    position: absolute;
2226
    left: 100%;
2227
    top: 12px;
2228
}
2229
2230
.qa-top em:after {
2231
    border: solid transparent;
2232
    border-left-color: #fff;
2233
    border-width: 5px;
2234
    content: " ";
2235
    position: absolute;
2236
    left: 100%;
2237
    top: 14px;
2238
}
2239
2240
.qa-top .flexCenter {
2241
    padding: 0 15px;
2242
    min-height: 68px;
2243
}
2244
2245
.qa-top .unlogin {
2246
    font-size: 14px;
2247
    color: #ff9900;
2248
    line-height: 68px;
2249
    text-align: center;
2250
}
2251
2252
.qa-top .onlogin {
2253
    position: relative;
2254
}
2255
2256
.showDetail>.qa-top {
2257
    margin: 0 -15px;
2258
    padding: 0 15px;
2259
    min-height: 48px;
2260
}
2261
2262
.showDetail>.qa-top .flex-pright {
2263
    padding-right: 26px;
2264
}
2265
2266
.searchTab .qa-btnlink .mui-media {
2267
    text-align: center;
2268
}
2269
2270
.searchTab .qa-btnlink .mui-media-body.btnLink {
2271
    display: inline-block;
2272
    font-size: 15px;
2273
    line-height: 24px;
2274
    padding-left: 36px;
2275
}
2276
2277
.searchTab .qa-btnlink .mui-table-view-cell {
2278
    padding: 8px 15px;
2279
    height: auto
2280
}
2281
2282
.searchTab .qa-btnlink .mui-table-view-cell>div {
2283
    position: relative;
2284
    display: inline-block;
2285
}
2286
2287
.show-item {
2288
    overflow: hidden;
2289
}
2290
2291
.show-item>span {
2292
    padding-right: 10px;
2293
}
2294
2295
.qa-title {
2296
    padding: 15px;
2297
    border-bottom: 1px solid #e5e5e5;
2298
    font-size: 16px;
2299
}
2300
2301
.request-qa .yaoqing {
2302
    position: absolute;
2303
    right: 15px;
2304
    top: 50%;
2305
    margin-top: -16px;
2306
    padding: 6px 14px;
2307
    color: #fff;
2308
    background: #ff9900;
2309
    border-radius: 4px;
2310
}
2311
2312
.request-qa .yiyaoqing {
2313
    background: #ccc;
2314
    padding: 6px 7px;
2315
}
2316
2317
.searchTab .mui-table-view.myAllneeds>.mui-table-view-cell {
2318
    height: auto;
2319
}
2320
2321
.searchTab .mui-table-view.myAllneeds .madiaInfo {
2322
    padding-left: 0;
2323
}
2324
2325
.list-main ul {
2326
    display: block;
2327
    padding: 0;
2328
    list-style-type: none;
2329
    font-size: 0;
2330
}
2331
2332
.list_content {
2333
    background: #fff;
2334
    margin-bottom: 10px;
2335
}
2336
2337
.list_content .tagList {
2338
    padding: 6px 15px;
2339
}
2340
2341
.list-hold-count {
2342
    padding: 0 15px;
2343
    border-bottom: 1px solid #e5e5e5;
2344
    background: #fff;
2345
    line-height: 42px;
2346
    overflow: hidden;
2347
}
2348
2349
.list-hold-count>span {
2350
    float: left;
2351
}
2352
2353
.list-hold-count>ul {
2354
    float: right;
2355
}
2356
2357
.list-hold-count>ul>li {
2358
    float: left;
2359
    display: inline-block;
2360
}
2361
2362
.list-hold-count>ul>li>span {
2363
    position: relative;
2364
    top: 5px;
2365
    display: inline-block;
2366
    font-size: 14px;
2367
    line-height: 24px;
2368
    padding: 0 10px;
2369
    border: 1px solid #e5e5e5
2370
}
2371
2372
.list-hold-count>ul>li.active>span {
2373
    background: #ff9900;
2374
    color: #fff;
2375
    border-color: #ff9900
2376
}
2377
2378
.list-hold .qa-owner {
2379
    margin: 0;
2380
}
2381
2382
.list-hold .con-kong {
2383
    background: #FFFFFF;
2384
}
2385
2386
.item_detail {
2387
    padding: 6px 15px;
2388
}
2389
2390
.item_detail .h1Font {
2391
    font-weight: normal;
2392
    font-size: 18px;
2393
    line-height: 24px;
2394
    color: #000
2395
}
2396
2397
.item_detail .list_con {
2398
    font-size: 15px;
2399
    color: #333;
2400
    line-height: 24px;
2401
    margin: 6px 0;
2402
    text-align: justify;
2403
    word-break: break-word;
2404
}
2405
2406
.list-main .list_image {
2407
    display: none;
2408
}
2409
2410
.item_info .h3Font {
2411
    font-size: 14px;
2412
    color: #888
2413
}
2414
2415
.item-btn {
2416
    overflow: hidden;
2417
}
2418
2419
.list_image li,
2420
.item-btn li {
2421
    display: inline-block;
2422
    float: left;
2423
    width: 33.3%;
2424
    -webkit-box-sizing: border-box;
2425
    box-sizing: border-box;
2426
    position: relative;
2427
}
2428
2429
.list_image li>.imgspan {
2430
    display: block;
2431
    width: 98%;
2432
    height: 90px;
2433
    background-size: cover;
2434
    background-position: center;
2435
}
2436
2437
.list_image li>.imgspan img {
2438
    opacity: 0;
2439
    width: 100%;
2440
    height: 100%
2441
}
2442
2443
.item-btn {
2444
    border-top: 1px solid #e5e5e5;
2445
}
2446
2447
.item-btn li {
2448
    border-right: 1px solid #e5e5e5;
2449
}
2450
2451
.item-btn li>span {
2452
    display: inline-block;
2453
    width: 100%;
2454
    text-align: center;
2455
    color: #666;
2456
    font-size: 14px;
2457
    padding: 8px 0;
2458
}
2459
2460
.item-btn li.answered>span {
2461
    color: #FF0000
2462
}
2463
2464
.item-btn li.collectBtn>span {
2465
    position: absolute;
2466
    width: 20px;
2467
    left: 50%;
2468
    margin-left: -10px;
2469
    top: 8px;
2470
    height: 4px;
2471
}
2472
492 2473
/*附件提示*/
493
.atachList{color:#017eb8;background:#e7f5fb;padding:10px 20px;text-align: center;font-size:12px;}
2474
.atachList {
2475
    color: #017eb8;
2476
    background: #e7f5fb;
2477
    padding: 10px 20px;
2478
    text-align: center;
2479
    font-size: 12px;
2480
}
494 2481
495 2482
496 2483
.infocon.madiaBlock>#hotTeam>li {
497 2484
    padding: 0px 15px;
2485
}
2486
2487
.tag-show {
2488
    position: absolute;
2489
    right: 36px;
2490
    top: 10px;
2491
}
2492
2493
.tag-show>span {
2494
    display: block;
2495
    margin-bottom: 2px;
2496
    font-size: 10px;
2497
    color: #ffffff;
2498
    background: #ff0000;
2499
    border-radius: 20px;
2500
    padding: 2px 6px;
498 2501
}

+ 1293 - 1362
e/2.html

@ -63,13 +63,11 @@
63 63
			</div>
64 64
		</div> -->
65 65
		<!-- 头部文本 -->
66
67 66
		<div class="showCardI" style="background: none;  
68 67
		position: relative; ">
69 68
			<!-- <div class="cardTop">
70 69
						
71 70
				</div> -->
72
73 71
			<div style="height: 221px; background: #fff">
74 72
				<div class="box">
75 73
					<h3 class="teamName">团队名称</h3>
@ -143,11 +141,6 @@
143 141
				</ul>
144 142
			</div>
145 143
		</div>
146
147
148
149
150
151 144
		<div class="mainbox displayNone">
152 145
			<div class="infocontit">问答</div>
153 146
			<div class="infocon infoconM madiaBlock needList">
@ -157,14 +150,14 @@
157 150
			</div>
158 151
			<div class="seeMore displayNone" id="seeMoreQA"><em>查看全部 <span id="QANum">0</span>个</em></div>
159 152
		</div>
160
		<div class="mainbox displayNone">
153
		<!-- <div class="mainbox displayNone">
161 154
			<div class="infocontit">文章</div>
162 155
			<div class="infocon madiaBlock">
163 156
				<ul class="mui-table-view" id="articelShow">
164 157
				</ul>
165 158
			</div>
166 159
			<div class="seeMore displayNone" id="seeMoreArtical"><em>查看全部 <span id="articalNum">0</span>篇</em></div>
167
		</div>
160
		</div> -->
168 161
		<div class="mainbox displayNone">
169 162
			<div class="infocontit">非专利</div>
170 163
			<div class="infocon madiaBlock">
@ -180,16 +173,19 @@
180 173
					<ul class="mui-table-view" id="paperShow">
181 174
					</ul>
182 175
				</div>
183
				<div class="seeMore " id="seeMorePaper">
184
					<em>查看全部 <span id="paperNum">0</span>篇</em></div>
176
			</div>
177
			<div class="seeMore displayNone" id="seeMorePaper">
178
				<em>查看全部 <span id="paperHide">0</span>篇</em>
179
			</div>
185 180
186 181
187 182
188
				<div class="mainbox displayNone ">
189
					<div class="infocontit">论文</div>
190
					<div class="infocon madiaBlock">
191
						<ul class="mui-table-view" id="paperList">
192
							<!-- <li class="mui-table-view-cell">
183
184
			<div class="mainbox displayNone">
185
				<div class="infocontit">论文</div>
186
				<div class="infocon madiaBlock">
187
					<ul class="mui-table-view" id="paperList">
188
						<!-- <li class="mui-table-view-cell">
193 189
								<div class="madiaInfo">
194 190
									<p class="h1Font ellipsisSty-2">需求主题寻求一名斯特林热机技术顾问需求主题寻求一名斯特林热机技术顾问需求主题寻求一名斯特林热机技术顾问
195 191
									</p>
@ -204,1197 +200,1210 @@
204 200
									</div>
205 201
								</div>
206 202
							</li> -->
207
						</ul>
208
					</div>
209
					<div class="seeMore  " id="seeMorePaper"><em>查看全部 <span id="forumNum">0</span>篇</em></div>
203
					</ul>
210 204
				</div>
211
				<!--合作专家-->
212
				<div class="mainbox ">
213
					<div class="infocontit">团队专家</div>
214
					<div class="infocon madiaBlock">
215
						<ul class="mui-table-view" id="relateTeam">
216
						</ul>
217
					</div>
218
					<!-- <div class="seeMore  " id="seeMorePaper"><em>查看全部 <span id="personNum">0</span>个</em></div> -->
205
				<div class="seeMore  " id="seeMorePaper"><em>查看全部 <span id="forumNum">0</span>篇</em></div>
206
			</div>
207
			<!--合作专家-->
208
			<div class="mainbox displayNone">
209
				<div class="infocontit">团队专家</div>
210
				<div class="infocon madiaBlock">
211
					<ul class="mui-table-view" id="relateTeam">
212
					</ul>
219 213
				</div>
214
				<!-- <div class="seeMore  " id="seeMorePaper"><em>查看全部 <span id="personNum">0</span>个</em></div> -->
215
			</div>
220 216
221
				<!-- <div class="shareEcode">
217
			<!-- <div class="shareEcode">
222 218
			<img class="Ecodecon" src="../images/ecordCard.jpg" />
223 219
			<div class="Ecodeinfo">
224 220
				<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
225 221
			</div> -->
226
			</div>
227 222
		</div>
228
		<script type="text/javascript">
229
			$(document).ready(function () {
230
				var imgUrl = "http://www.ekexiu.com/images/logo180.png";
231
				var lineLink = document.location.href;
232
				var descContent;
233
				var shareTitle;
234
				var appid = '';
235
				var proId = GetQueryString("id");
223
	</div>
224
	<script type="text/javascript">
225
		$(document).ready(function () {
226
			var imgUrl = "http://www.ekexiu.com/images/logo180.png";
227
			var lineLink = document.location.href;
228
			var descContent;
229
			var shareTitle;
230
			var appid = '';
231
			var proId = GetQueryString("id");
236 232
237
				// var userid = $.cookie("userid");
233
			var secretary = '', //团队秘书id
234
				chief = '' //首席专家id
238 235
236
			// var userid = $.cookie("userid");
239 237
240 238
241 239
242
				function userMessage(id) { //团队详情
243
					$.ajax({
244
						type: "get",
245
						url: "/ajax/team/qo?id=" + proId,
246
						async: true,
247
						success: function (data) {
248
							var $info = data.data;
249
250
251
							if (data.success) {
252
								//团队
253
								$('.teamName').text($info.name)
254
								$('.city').text($info.city)
255
								$('.organization').text($info.orgName)
256
257
								// $("#proName").text($info.name);
258
259
								var oStyS = autho($info.authType, $info.orgAuth, $info.authStatus);
260
								$("#proAuth").addClass(oStyS.sty);
261
								$("#proAuth").attr("title", oStyS.title);
262
								if ($info.address) {
263
									$("#proAddress").html(
264
										'<em class="mui-icon iconfontnew icon-address"></em> ' +
265
										$info.address);
266
								}
267
								var proOther = "";
268
								if ($info.orgName) {
269
									if ($info.department) {
270
										if ($info.title) {
271
											proOther = $info.title + "," + $info.department + "," +
240
241
			function userMessage(id) { //团队详情
242
				$.ajax({
243
					type: "get",
244
					url: "/ajax/team/qo?id=" + proId,
245
					async: true,
246
					success: function (data) {
247
						var $info = data.data;
248
						if (data.success) {
249
							//团队
250
							$('.teamName').text($info.name)
251
							$('.city').text($info.city)
252
							$('.organization').text($info.orgName)
253
							// $("#proName").text($info.name);
254
							var oStyS = autho($info.authType, $info.orgAuth, $info.authStatus);
255
							$("#proAuth").addClass(oStyS.sty);
256
							$("#proAuth").attr("title", oStyS.title);
257
							if ($info.address) {
258
								$("#proAddress").html(
259
									'<em class="mui-icon iconfontnew icon-address"></em> ' +
260
									$info.address);
261
							}
262
							var proOther = "";
263
							if ($info.orgName) {
264
								if ($info.department) {
265
									if ($info.title) {
266
										proOther = $info.title + "," + $info.department + "," +
267
											$info.orgName
268
									} else {
269
										if ($info.office) {
270
											proOther = $info.office + "," + $info.department + "," +
272 271
												$info.orgName
273 272
										} else {
274
											if ($info.office) {
275
												proOther = $info.office + "," + $info.department + "," +
276
													$info.orgName
277
											} else {
278
												proOther = $info.department + "," + $info.orgName
279
											}
273
											proOther = $info.department + "," + $info.orgName
280 274
										}
281
									} else {
282
										proOther = $info.orgName
283 275
									}
284
								}
285
								$("#proOther").text(proOther);
286
								var llqtitle = $info.name + "-" + proOther.replace(/,/gi,
287
									"-"); //修改浏览器title信息
288
								document.title = llqtitle;
289
290
								//团队简介  如果有这个字段就显示没有就不显示
291
								if ($info.descp) {
292
									$("#breifinfo").text($info.descp);
293 276
								} else {
294
295
									document.getElementById("breifinfo").parentNode.parentNode.style
296
										.display =
297
										"none";
277
									proOther = $info.orgName
298 278
								}
279
							}
280
							$("#proOther").text(proOther);
281
							var llqtitle = $info.name + "-" + proOther.replace(/,/gi,
282
								"-"); //修改浏览器title信息
283
							document.title = llqtitle;
284
285
							//团队简介  如果有这个字段就显示没有就不显示
286
							if ($info.descp) {
287
								$("#breifinfo").text($info.descp);
288
							} else {
299 289
300
								//学术领域					
301
								if ($info.subject) {
302
									indu($info.subject, 'subjectShow')
303
								} else {
304
305
									document.getElementById("subjectShow").parentNode.parentNode.style
306
										.display = "none";
307
								}
290
								document.getElementById("breifinfo").parentNode.parentNode.style
291
									.display =
292
									"none";
293
							}
308 294
309
								//行业领域	
310
								if ($info.industry) {
311
									indu($info.industry, 'industryShow')
312
								} else {
313
									document.getElementById("industryShow").parentNode.parentNode.style
314
										.display = "none";
295
							//学术领域					
296
							if ($info.subject) {
297
								indu($info.subject, 'subjectShow')
298
							} else {
315 299
300
								document.getElementById("subjectShow").parentNode.parentNode.style
301
									.display = "none";
302
							}
316 303
317
								}
304
							//行业领域/行业领域	
305
							if ($info.industry) {
306
								indu($info.industry, 'industryShow')
307
							} else {
308
								document.getElementById("industryShow").parentNode.parentNode.style
309
									.display = "none";
318 310
319
								//微信再次分享
320
								// shareTitle = document.getElementById("proName").innerText;
321
								// descContent = document.getElementById("subjectShow").innerText
322
								//     .substring(0, 70);
323 311
324 312
							}
325
						},
326
						error: function () {}
327
					});
328
				}
329 313
314
							//微信再次分享
315
							// shareTitle = document.getElementById("proName").innerText;
316
							// descContent = document.getElementById("subjectShow").innerText
317
							//     .substring(0, 70);
318
319
						}
320
					},
321
					error: function () {}
322
				});
323
			}
330 324
331 325
332 326
333 327
334 328
335
				var resear = "";
336 329
337
				function researchAreaShow($datas, $datarecords) {
338
					if ($datas != undefined && $datas.length != 0) {
339
						var html = [];
340
						for (var i = 0; i < $datas.length; ++i) {
341
							var $data = $datas[i];
342
							var $photos = [];
343
							//获取头像					
344
							if ($datarecords.length > 0) {
345
								$photos = getRecords($datarecords, $data.caption);
346
							}
347
							var showDiv = "<div class='listbox'><div class='listbrowse ellipsisSty'dataCaption=" + $data
348
								.caption + "><span class='like'>" + $data.count + "</span>" + $data.caption +
349
								"</div><div class='likenum' dataCaption=" + $data.caption + ">"
350
351
							if ($photos.length < 4) {
352
								for (var j = 0; j < $photos.length; ++j) {
353
									if ($photos[j].img) {
354
										showDiv +=
355
											"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
356
											$photos[j].id + "_m.jpg'></span>";
357
									} else {
358
										showDiv +=
359
											"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
360
									}
330
			var resear = "";
331
332
			function researchAreaShow($datas, $datarecords) {
333
				if ($datas != undefined && $datas.length != 0) {
334
					var html = [];
335
					for (var i = 0; i < $datas.length; ++i) {
336
						var $data = $datas[i];
337
						var $photos = [];
338
						//获取头像					
339
						if ($datarecords.length > 0) {
340
							$photos = getRecords($datarecords, $data.caption);
341
						}
342
						var showDiv = "<div class='listbox'><div class='listbrowse ellipsisSty'dataCaption=" + $data
343
							.caption + "><span class='like'>" + $data.count + "</span>" + $data.caption +
344
							"</div><div class='likenum' dataCaption=" + $data.caption + ">"
345
346
						if ($photos.length < 4) {
347
							for (var j = 0; j < $photos.length; ++j) {
348
								if ($photos[j].img) {
349
									showDiv +=
350
										"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
351
										$photos[j].id + "_m.jpg'></span>";
352
								} else {
353
									showDiv +=
354
										"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
361 355
								}
362
							} else {
363
								for (var j = $photos.length - 2; j < $photos.length; ++j) {
364
									if ($photos[j].img) {
365
										showDiv +=
366
											"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
367
											$photos[j].id + "_m.jpg'></span>";
368
									} else {
369
										showDiv +=
370
											"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
371
									}
356
							}
357
						} else {
358
							for (var j = $photos.length - 2; j < $photos.length; ++j) {
359
								if ($photos[j].img) {
360
									showDiv +=
361
										"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
362
										$photos[j].id + "_m.jpg'></span>";
363
								} else {
364
									showDiv +=
365
										"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
372 366
								}
373
								showDiv +=
374
									"<span class='mui-icon iconfont icon-more likepeople likemore userRadius'></span>";
375 367
							}
376
							showDiv += "</div></div></div>";
377
							html.push(showDiv);
378
							resear += (i + 1) + "." + $data.caption + " ";
368
							showDiv +=
369
								"<span class='mui-icon iconfont icon-more likepeople likemore userRadius'></span>";
379 370
						}
380
						document.getElementById("reserachMess").innerHTML = html.join('')
371
						showDiv += "</div></div></div>";
372
						html.push(showDiv);
373
						resear += (i + 1) + "." + $data.caption + " ";
381 374
					}
375
					document.getElementById("reserachMess").innerHTML = html.join('')
382 376
				}
383
				/*应用行业及领域及企业纸质*/
384
				function indu(oString, oSelector) {
385
					var arr = oString.split(",");
386
					var oArr = new Array();
387
					var i;
388
					for (i in arr) {
389
						oArr.push('<li>' + arr[i] + '</li>');
390
					}
391
					document.getElementById(oSelector).innerHTML = oArr.join("");
377
			}
378
			/*应用行业及领域及企业纸质*/
379
			function indu(oString, oSelector) {
380
				var arr = oString.split(",");
381
				var oArr = new Array();
382
				var i;
383
				for (i in arr) {
384
					oArr.push('<li>' + arr[i] + '</li>');
392 385
				}
393
				var rows = 1
394
				var oAjax = function (url, dataS, otype, oFun) {
395
						$.ajax({
396
							url: url,
397
							dataType: 'json',
398
							type: otype,
399
							data: dataS,
400
							traditional: true,
401
							success: function (res) {
402
								if (res.success) {
403
									oFun(res)
404
								}
386
				document.getElementById(oSelector).innerHTML = oArr.join("");
387
			}
388
			var rows = 1
389
			var oAjax = function (url, dataS, otype, oFun) {
390
					$.ajax({
391
						url: url,
392
						dataType: 'json',
393
						type: otype,
394
						data: dataS,
395
						traditional: true,
396
						success: function (res) {
397
							if (res.success) {
398
								oFun(res)
405 399
							}
406
						});
407
					},
408
					demandListVal = function () {
409
						var aimId = "demandShow"
410
						oAjax("/ajax/demand/pq", {
411
							"state": [1],
412
							"uid": proId,
413
							"pageSize": 5
414
						}, "get", function (res) {
415
							var obj = res.data.data;
416
							if (obj.length > 0) {
417
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
418
									"displayNone");
419
								for (var i = 0; i < obj.length; i++) {
420
									var li = document.createElement("li");
421
									li.setAttribute("data-id", obj[i].id);
422
									var needDate = obj[i].invalidDay;
423
									var lastDate = TimeTr(needDate);
424
									li.className = "mui-table-view-cell";
425
									var oString = '<div class="madiaInfo">'
426
									oString += '<p class="h1Font ellipsisSty-2">' + obj[i].title + '</p>';
427
									oString += '<p class="h2Font ellipsisSty-5">' + obj[i].descp + '</p>'
428
									oString += '<div class="showli ellipsisSty h3Font">'
429
									oString += '<span>' + obj[i].province + '</span>'
430
									if (obj[i].duration != 0) {
431
										oString += '<span>预期 ' + demandDuration[obj[i].duration] + '</span>'
432
									}
433
									if (obj[i].cost != 0) {
434
										oString += '<span>预算 ' + demandCost[obj[i].cost] + '</span>'
435
									}
436
									oString += '<span>有效期至' + lastDate + ' </span>'
437
									oString += '</div>'
438
									oString += '</div>'
439
									li.innerHTML = oString
440
									document.getElementById(aimId).appendChild(li);
400
						}
401
					});
402
				},
403
				demandListVal = function () {
404
					var aimId = "demandShow"
405
					oAjax("/ajax/demand/pq", {
406
						"state": [1],
407
						"uid": proId,
408
						"pageSize": 5
409
					}, "get", function (res) {
410
						var obj = res.data.data;
411
						if (obj.length > 0) {
412
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
413
								"displayNone");
414
							for (var i = 0; i < obj.length; i++) {
415
								var li = document.createElement("li");
416
								li.setAttribute("data-id", obj[i].id);
417
								var needDate = obj[i].invalidDay;
418
								var lastDate = TimeTr(needDate);
419
								li.className = "mui-table-view-cell";
420
								var oString = '<div class="madiaInfo">'
421
								oString += '<p class="h1Font ellipsisSty-2">' + obj[i].title + '</p>';
422
								oString += '<p class="h2Font ellipsisSty-5">' + obj[i].descp + '</p>'
423
								oString += '<div class="showli ellipsisSty h3Font">'
424
								oString += '<span>' + obj[i].province + '</span>'
425
								if (obj[i].duration != 0) {
426
									oString += '<span>预期 ' + demandDuration[obj[i].duration] + '</span>'
427
								}
428
								if (obj[i].cost != 0) {
429
									oString += '<span>预算 ' + demandCost[obj[i].cost] + '</span>'
441 430
								}
431
								oString += '<span>有效期至' + lastDate + ' </span>'
432
								oString += '</div>'
433
								oString += '</div>'
434
								li.innerHTML = oString
435
								document.getElementById(aimId).appendChild(li);
442 436
							}
443
						})
444
					},
445
					articalListVal = function () {
446
						var aimId = "articelShow"
447
						oAjax("/ajax/article/publish", {
448
							"category": "1",
449
							"owner": proId,
450
							"rows": rows
451
						}, "get", function (res) {
452
							var obj = res.data;
453
							if (obj.length > 0) {
454
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
455
									"displayNone");
456
457
								for (var i = 0; i < obj.length; i++) {
458
									var hasImg = "../images/default-artical.jpg"
459
									if (obj[i].articleImg) {
460
										hasImg = "/data/article/" + obj[i].articleImg
461
									}
462
									var li = document.createElement("li");
463
									li.setAttribute("data-id", obj[i].articleId);
464
									li.className = "mui-table-view-cell";
465
									li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
466
										'<div class="madiaHead resouseHead" style="background-image:url(' +
467
										hasImg + ')"></div>' +
468
										'<div class="madiaInfo OmadiaInfo">' +
469
										'<p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>' +
470
										'<p class="h2Font ellipsisSty"><span class="time">' + commenTime(obj[i]
471
											.publishTime) + '</span></p>' +
472
										'</div>' +
473
										'</div>'
474
									document.getElementById(aimId).appendChild(li);
437
						}
438
					})
439
				},
440
				articalListVal = function () {
441
					var aimId = "articelShow"
442
					oAjax("/ajax/article/publish", {
443
						"category": "1",
444
						"owner": proId,
445
						"rows": rows
446
					}, "get", function (res) {
447
						var obj = res.data;
448
						if (obj.length > 0) {
449
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
450
								"displayNone");
451
452
							for (var i = 0; i < obj.length; i++) {
453
								var hasImg = "../images/default-artical.jpg"
454
								if (obj[i].articleImg) {
455
									hasImg = "/data/article/" + obj[i].articleImg
475 456
								}
457
								var li = document.createElement("li");
458
								li.setAttribute("data-id", obj[i].articleId);
459
								li.className = "mui-table-view-cell";
460
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
461
									'<div class="madiaHead resouseHead" style="background-image:url(' +
462
									hasImg + ')"></div>' +
463
									'<div class="madiaInfo OmadiaInfo">' +
464
									'<p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>' +
465
									'<p class="h2Font ellipsisSty"><span class="time">' + commenTime(obj[i]
466
										.publishTime) + '</span></p>' +
467
									'</div>' +
468
									'</div>'
469
								document.getElementById(aimId).appendChild(li);
476 470
							}
477
						})
478
					},
479
					resourceListVal = function () {
480
						var aimId = "resourceShow"
481
						oAjax("/ajax/resource/publish", {
482
							"category": "1",
483
							"owner": proId,
484
							"rows": rows
485
						}, "get", function (res) {
486
							var obj = res.data;
487
							if (obj.length > 0) {
488
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
489
									"displayNone");
490
								for (var i = 0; i < obj.length; i++) {
491
									var cnt = "",
492
										hasImg = "../images/default-resource.jpg"
493
									if (obj[i].images.length) {
494
										hasImg = '/data/resource/' + obj[i].images[0].imageSrc
495
									}
496
									if (obj[i].supportedServices) {
497
										cnt = "用途:" + obj[i].supportedServices
498
									}
499
									var li = document.createElement("li");
500
									li.setAttribute("data-id", obj[i].resourceId);
501
									li.className = "mui-table-view-cell";
502
									li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
503
										'<div class="madiaHead resouseHead" style="background-image:url(' +
504
										hasImg + ')"></div>' +
505
										'<div class="madiaInfo OmadiaInfo">' +
506
										'<p class="ellipsisSty-2 h1Font">' + obj[i].resourceName + '</p>' +
507
										'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
508
										'</div>' +
509
										'</div>'
510
									document.getElementById(aimId).appendChild(li);
471
						}
472
					})
473
				},
474
				resourceListVal = function () {
475
					var aimId = "resourceShow"
476
					oAjax("/ajax/resource/publish", {
477
						"category": "1",
478
						"owner": proId,
479
						"rows": rows
480
					}, "get", function (res) {
481
						var obj = res.data;
482
						if (obj.length > 0) {
483
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
484
								"displayNone");
485
							for (var i = 0; i < obj.length; i++) {
486
								var cnt = "",
487
									hasImg = "../images/default-resource.jpg"
488
								if (obj[i].images.length) {
489
									hasImg = '/data/resource/' + obj[i].images[0].imageSrc
511 490
								}
491
								if (obj[i].supportedServices) {
492
									cnt = "用途:" + obj[i].supportedServices
493
								}
494
								var li = document.createElement("li");
495
								li.setAttribute("data-id", obj[i].resourceId);
496
								li.className = "mui-table-view-cell";
497
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
498
									'<div class="madiaHead resouseHead" style="background-image:url(' +
499
									hasImg + ')"></div>' +
500
									'<div class="madiaInfo OmadiaInfo">' +
501
									'<p class="ellipsisSty-2 h1Font">' + obj[i].resourceName + '</p>' +
502
									'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
503
									'</div>' +
504
									'</div>'
505
								document.getElementById(aimId).appendChild(li);
512 506
							}
513
						})
514
							},
515
					serviceListVal = function () {
516
						var aimId = "serviceShow"
517
						oAjax("/ajax/ware/publish", {
518
							"category": "1",
519
							"owner": proId,
520
							"rows": rows
521
						}, "get", function (res) {
522
							var obj = res.data;
523
							if (obj.length > 0) {
524
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
525
									"displayNone");
526
								for (var i = 0; i < obj.length; i++) {
527
									var cnt = "",
528
										hasImg = "../images/default-service.jpg"
529
									if (obj[i].images) {
530
										var subs = strToAry(obj[i].images)
531
										if (subs.length > 0) {
532
											hasImg = "/data/ware" + subs[0]
533
										}
534
									}
535
									if (obj[i].cnt) {
536
										cnt = "内容:" + obj[i].cnt
507
						}
508
					})
509
				},
510
				serviceListVal = function () {
511
					var aimId = "serviceShow"
512
					oAjax("/ajax/ware/publish", {
513
						"category": "1",
514
						"owner": proId,
515
						"rows": rows
516
					}, "get", function (res) {
517
						var obj = res.data;
518
						if (obj.length > 0) {
519
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
520
								"displayNone");
521
							for (var i = 0; i < obj.length; i++) {
522
								var cnt = "",
523
									hasImg = "../images/default-service.jpg"
524
								if (obj[i].images) {
525
									var subs = strToAry(obj[i].images)
526
									if (subs.length > 0) {
527
										hasImg = "/data/ware" + subs[0]
537 528
									}
538
									var li = document.createElement("li");
539
									li.setAttribute("data-id", obj[i].id);
540
									li.className = "mui-table-view-cell";
541
									li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
542
										'<div class="madiaHead resouseHead" style="background-image:url(' +
543
										hasImg + ')"></div>' +
544
										'<div class="madiaInfo OmadiaInfo">' +
545
										'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
546
										'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
547
										'</div>' +
548
										'</div>'
549
									document.getElementById(aimId).appendChild(li);
550 529
								}
551
							}
552
						})
553
					},
554
					patentListVal = function () {
555
						var aimId = "patentShow"
556
						oAjax("/ajax/ppatent/professor", {
557
							"owner": proId,
558
							"rows": rows
559
						}, "get", function (res) {
560
							var obj = res.data;
561
							if (obj.length > 0) {
562
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
563
									"displayNone");
564
								for (var i = 0; i < obj.length; i++) {
565
									var li = document.createElement("li");
566
									li.setAttribute("data-id", obj[i].id);
567
									li.className = "mui-table-view-cell";
568
									li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
569
										'<div class="madiaHead patentHead"></div>' +
570
										'<div class="madiaInfo OmadiaInfo">' +
571
										'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
572
										'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
573
											.authors.length - 1) + '</p>' +
574
										'</div>' +
575
										'</div>'
576
									document.getElementById(aimId).appendChild(li);
530
								if (obj[i].cnt) {
531
									cnt = "内容:" + obj[i].cnt
577 532
								}
533
								var li = document.createElement("li");
534
								li.setAttribute("data-id", obj[i].id);
535
								li.className = "mui-table-view-cell";
536
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
537
									'<div class="madiaHead resouseHead" style="background-image:url(' +
538
									hasImg + ')"></div>' +
539
									'<div class="madiaInfo OmadiaInfo">' +
540
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
541
									'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
542
									'</div>' +
543
									'</div>'
544
								document.getElementById(aimId).appendChildyId(aimId).appendChild(li);
578 545
							}
579
						})
580
					},
581
					paperListVal = function () {
582
						var aimId = "paperShow"
583
						oAjax("/ajax/ppaper/professor", {
584
							"owner": proId,
585
							"rows": rows
586
						}, "get", function (res) {
587
							var obj = res.data;
588
							if (obj.length > 0) {
589
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
590
									"displayNone");
591
								for (var i = 0; i < obj.length; i++) {
592
									var li = document.createElement("li");
593
									li.setAttribute("data-id", obj[i].id);
594
									li.className = "mui-table-view-cell";
595
									li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
596
										'<div class="madiaHead paperHead"></div>' +
597
										'<div class="madiaInfo OmadiaInfo">' +
598
										'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
599
										'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
600
											.authors.length - 1) + '</p>' +
601
										'</div>' +
602
										'</div>'
603
									document.getElementById(aimId).appendChild(li);
604
								}
546
						}
547
					})
548
				},
549
				patentListVal = function () {
550
					var aimId = "patentShow"
551
					oAjax("/ajax/ppatent/professor", {
552
						"owner": proId,
553
						"rows": rows
554
					}, "get", function (res) {
555
						var obj = res.data;
556
						if (obj.length > 0) {
557
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
558
								"displayNone");
559
							for (var i = 0; i < obj.length; i++) {
560
								var li = document.createElement("li");
561
								li.setAttribute("data-id", obj[i].id);
562
								li.className = "mui-table-view-cell";
563
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
564
									'<div class="madiaHead patentHead"></div>' +
565
									'<div class="madiaInfo OmadiaInfo">' +
566
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
567
									'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
568
										.authors.length - 1) + '</p>' +
569
									'</div>' +
570
									'</div>'
571
								document.getElementById(aimId).appendChild(li);
605 572
							}
606
							console.log(res)
607
608
609
						})
610
					},
611
					answerListVal = function () {
612
						var aimId = "QAShow"
613
						oAjax("/ajax/question/answer/bySelf", {
614
							"uid": proId,
615
							"rows": rows
616
						}, "get", function (res) {
617
							var obj = res.data;
618
							if (obj.length > 0) {
619
								document.getElementById(aimId).parentNode.parentNode.classList.remove(
620
									"displayNone");
621
								for (var i = 0; i < obj.length; i++) {
622
									var hd = "";
623
									if (obj[i].agree > 0) {
624
										hd = '<span>赞 ' + obj[i].agree + '</span>'
625
									}
626
									var li = document.createElement("li");
627
									li.setAttribute("data-id", obj[i].id);
628
									li.className = "mui-table-view-cell";
629
									li.innerHTML = '<div class="madiaInfo">' +
630
										'<p class="h1Font ellipsisSty-2 qa-question"></p>' +
631
										'<div class="flexCenter qa-owner"></div>' +
632
										'<div class="qa-con ellipsisSty-5">' + listConCut(obj[i].cnt) +
633
										'</div>' +
634
										'<div class="showliSpan ellipsisSty">' +
635
										'<span>' + commenTime(obj[i].createTime) + '</span>' + hd +
636
										'<span class="leaveMsgCount"></span>' +
637
										'</div>' +
638
										'</div>'
639
									document.getElementById(aimId).appendChild(li);
640
									var $str = $(li);
641
									questioninfo(obj[i].qid, $str);
642
									proinfo(obj[i].uid, $str);
643
									leaveMsgCount(obj[i].id, "4", $str);
573
						}
574
					})
575
				},
576
				paperListVal = function () {
577
					var aimId = "paperList"
578
					oAjax("/ajax/ppaper/professor", {
579
						"owner": proId,
580
						"rows": rows
581
					}, "get", function (res) {
582
						var obj = res.data;
583
						if (obj.length > 0) {
584
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
585
								"displayNone");
586
							for (var i = 0; i < obj.length; i++) {
587
								var li = document.createElement("li");
588
								li.setAttribute("data-id", obj[i].id);
589
								li.className = "mui-table-view-cell";
590
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
591
									'<div class="madiaHead paperHead"></div>' +
592
									'<div class="madiaInfo OmadiaInfo">' +
593
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
594
									'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
595
										.authors.length - 1) + '</p>' +
596
									'</div>' +
597
									'</div>'
598
								document.getElementById(aimId).appendChild(li);
599
							}
600
						}
601
					})
602
				},
603
				answerListVal = function () {
604
					var aimId = "QAShow"
605
					oAjax("/ajax/question/answer/bySelf", {
606
						"uid": proId,
607
						"rows": rows
608
					}, "get", function (res) {
609
						var obj = res.data;
610
						if (obj.length > 0) {
611
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
612
								"displayNone");
613
							for (var i = 0; i < obj.length; i++) {
614
								var hd = "";
615
								if (obj[i].agree > 0) {
616
									hd = '<span>赞 ' + obj[i].agree + '</span>'
644 617
								}
618
								var li = document.createElement("li");
619
								li.setAttribute("data-id", obj[i].id);
620
								li.className = "mui-table-view-cell";
621
								li.innerHTML = '<div class="madiaInfo">' +
622
									'<p class="h1Font ellipsisSty-2 qa-question"></p>' +
623
									'<div class="flexCenter qa-owner"></div>' +
624
									'<div class="qa-con ellipsisSty-5">' + listConCut(obj[i].cnt) +
625
									'</div>' +
626
									'<div class="showliSpan ellipsisSty">' +
627
									'<span>' + commenTime(obj[i].createTime) + '</span>' + hd +
628
									'<span class="leaveMsgCount"></span>' +
629
									'</div>' +
630
									'</div>'
631
								document.getElementById(aimId).appendChild(li);
632
								var $str = $(li);
633
								questioninfo(obj[i].qid, $str);
634
								proinfo(obj[i].uid, $str);
635
								leaveMsgCount(obj[i].id, "4", $str);
645 636
							}
646
						})
647
					},
648
					proinfo = function (pid, $str) {
649
						oAjax("/ajax/professor/baseInfo/" + pid, {}, "get", function (data) {
650
							var dataStr = data.data
651
							var baImg = "../images/default-photo.jpg";
652
							if (dataStr.hasHeadImage == 1) {
653
								baImg = "/images/head/" + dataStr.id + "_l.jpg";
637
						}
638
					})
639
				},
640
				proinfo = function (pid, $str) {
641
					oAjax("/ajax/professor/baseInfo/" + pid, {}, "get", function (data) {
642
						var dataStr = data.data
643
						var baImg = "../images/default-photo.jpg";
644
						if (dataStr.hasHeadImage == 1) {
645
							baImg = "/images/head/" + dataStr.id + "_l.jpg";
646
						}
647
						var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
648
						var os = "";
649
						if (dataStr.title) {
650
							if (dataStr.orgName) {
651
								os = dataStr.title + "," + dataStr.orgName;
652
							} else {
653
								os = dataStr.title;
654 654
							}
655
							var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
656
							var os = "";
657
							if (dataStr.title) {
655
						} else {
656
							if (dataStr.office) {
658 657
								if (dataStr.orgName) {
659
									os = dataStr.title + "," + dataStr.orgName;
658
									os = dataStr.office + "," + dataStr.orgName;
660 659
								} else {
661
									os = dataStr.title;
660
									os = dataStr.office;
662 661
								}
663 662
							} else {
664
								if (dataStr.office) {
665
									if (dataStr.orgName) {
666
										os = dataStr.office + "," + dataStr.orgName;
667
									} else {
668
										os = dataStr.office;
669
									}
670
								} else {
671
									if (dataStr.orgName) {
672
										os = dataStr.orgName;
673
									}
663
								if (dataStr.orgName) {
664
									os = dataStr.orgName;
674 665
								}
675 666
							}
676
							var str = '<div class="owner-head useHead" style="background-image:url(' + baImg +
677
								')"></div>' +
678
								'<div class="owner-info">' +
679
								'<div class="owner-name"><span class="h1Font">' + dataStr.name +
680
								'</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title +
681
								'"></em></div>' +
682
								'<div class="owner-tit ellipsisSty h2Font">' + os + '</div>' +
683
								'</div>'
684
							$str.find(".qa-owner").html(str)
685
						});
686
					},
687
					questioninfo = function (qid, $str) {
688
						oAjax("/ajax/question/qo", {
689
							id: qid
690
						}, "get", function (data) {
691
							$str.find(".qa-question").html(data.data.title);
692
							if (data.data.pageViews > 0) {
693
								$str.find(".qaPageview").html("阅读量 " + data.data.pageViews);
694
							} else {
695
								$str.find(".qaPageview").hide()
696
							}
697
						});
698
					},
699
					queryPubCount = function () {
700
						oAjax("/ajax/article/count/publish", { //文章总数
701
							"owner": proId,
702
							"category": "1"
703
						}, "GET", function (data) {
704
							if (data.data > rows) {
705
								$("#seeMoreArtical").removeClass("displayNone")
706
								$("#articalNum").text(data.data);
707
							}
708
						});
709
						oAjax("/ajax/resource/count/publish", { //资源总数
710
							"owner": proId,
711
							"category": "1"
712
						}, "GET", function (data) {
713
							if (data.data > rows) {
714
								$("#seeMoreResource").removeClass("displayNone")
715
								$("#resourceNum").text(data.data);
716
							}
717
						});
718
						oAjax("/ajax/ware/count/publish", { //服务总数
719
							"owner": proId,
720
							"category": "1"
721
						}, "GET", function (data) {
722
							if (data.data > rows) {
723
								$("#seeMoreService").removeClass("displayNone")
724
								$("#serviceNum").text(data.data);
725
							}
726
						});
727
						oAjax("/ajax/ppatent/count/publish", { //专利总数
728
							"owner": proId,
729
						}, "GET", function (data) {
730
							if (data.data > rows) {
731
								$("#seeMorePatent").removeClass("displayNone")
732
								$("#patentNum").text(data.data);
733
							}
734
						});
735
						oAjax("/ajax/ppaper/count/publish", { //论文总数
736
							"owner": proId,
737
						}, "GET", function (data) {
738
							if (data.data > rows) {
739
								$("#seeMorePaper").removeClass("displayNone")
740
								$("#paperNum").text(data.data);
741
							}
742
						});
743
						oAjax("/ajax/question/answer/bySelf/count", { //回答总数
744
							"uid": proId,
745
						}, "GET", function (data) {
746
							if (data.data > rows) {
747
								$("#seeMoreQA").removeClass("displayNone")
748
								$("#QANum").text(data.data);
749
							}
750
						});
751
					},
752
					bindClickFun = function () {
753
						var this_ = "../html/userInforShow.html?proid=" + proId;
754
						wcFresh(this_);
755
						$("body").on("click", ".seeMore,#goCmpBrief", function () {
756
							isInstalled(this_, true);
757
							$(this).addClass("activeThis");
758
						})
759
						$('#articelShow,#relateArt').on('click', 'li', function () {
760
							var id = this.getAttribute("data-id");
761
							location.href = "http://" + window.location.host + "/e/a.html?id=" + id;
762
							$(this).addClass("activeThis");
763
						})
764
						$('#resourceShow').on('click', 'li', function () {
765
							var id = this.getAttribute("data-id");
766
							location.href = "http://" + window.location.host + "/e/r.html?id=" + id;
767
							$(this).addClass("activeThis");
768
						})
769
						$('#paperShow').on('click', 'li', function () {
770
							var id = this.getAttribute("data-id");
771
							location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
772
							$(this).addClass("activeThis");
773
						})
774
						$('#patentShow').on('click', 'li', function () {
775
							var id = this.getAttribute("data-id");
776
							location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
777
							$(this).addClass("activeThis");
778
						})
779
						$('#demandShow').on('click', 'li', function () {
780
							var id = this.getAttribute("data-id");
781
							location.href = "http://" + window.location.host + "/e/d.html?id=" + id;
782
							$(this).addClass("activeThis");
783
						})
784
						$('#serviceShow').on('click', 'li', function () {
785
							var id = this.getAttribute("data-id");
786
							location.href = "http://" + window.location.host + "/e/s.html?id=" + id;
787
							$(this).addClass("activeThis");
788
						})
789
						//论文
790
						$('#paperList').on('click', 'li', function () {
791
							var id = this.getAttribute("data-id");
792
							location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
793
							$(this).addClass("activeThis");
794
						})
795
796
						//专利
797
						$('#paperShow').on('click', 'li', function () {
798
							var id = this.getAttribute("data-id");
799
							location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
800
							$(this).addClass("activeThis");
801
						})
802
						//非专
803
						$('#proUnPatent').on('click', 'li', function () {
804
							var id = this.getAttribute("data-id");
805
							location.href = "http://" + window.location.host + "/e/3.html?id=" + id;
806
							$(this).addClass("activeThis");
807
						})
808
					}
809
810
				userMessage(proId);
811
				demandListVal()
812
				serviceListVal()
813
				resourceListVal()
814
				articalListVal()
815
				patentListVal()
816
				paperListVal()
817
				answerListVal()
818
				relevantExperts(); //合作专家
819
				relevantarticalList(); //相关文章
820
				likeExperts(); //感兴趣专家
821
				bindClickFun()
822
				queryPubCount();
823
				pageViewLog(proId, 1);
824
825
				//合作专家
826
				function relevantExperts() {
827
					$.ajax({
828
						"url": "/ajax/professor/coadjutant",
829
						"type": "get",
830
						"dataType": "json",
831
						"data": {
832
							"id": proId
833
						},
834
						"success": function (data) {
835
							if (data.success && data.data) {
836
								console.log(data)
837
								var lengthT;
838
								if (data.data.length > 5) {
839
									lengthT = 5;
840
								} else {
841
									lengthT = data.data.length
842
								}
843
								for (var i = 0; i < lengthT; i++) {
844
									var ExpId = data.data[i].professorId;
845
									var paperN = data.data[i].paperCount;
846
									var patentN = data.data[i].patentCount;
847
									var liItem = document.createElement("li");
848
									liItem.className = "mui-table-view-cell flexCenter";
849
									document.getElementById("relatePro").appendChild(liItem);
850
									relExpertsList(ExpId, paperN, patentN, liItem);
851
								}
852
853
							}
854
						},
855
						"error": function () {
856
							$.MsgBox.Alert('提示', '链接服务器超时')
857 667
						}
668
						var str = '<div class="owner-head useHead" style="background-image:url(' + baImg +
669
							')"></div>' +
670
							'<div class="owner-info">' +
671
							'<div class="owner-name"><span class="h1Font">' + dataStr.name +
672
							'</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title +
673
							'"></em></div>' +
674
							'<div class="owner-tit ellipsisSty h2Font">' + os + '</div>' +
675
							'</div>'
676
						$str.find(".qa-owner").html(str)
858 677
					});
859
				}
860
861
				function relExpertsList(Id, numL, numZ, liItem) {
862
					$.ajax({
863
						"url": "/ajax/professor/info/" + Id,
864
						"type": "GET",
865
						"dataType": "json",
866
						"success": function (data) {
867
							if (data.success && data.data != "") {
868
								document.getElementById("relatePro").parentNode.parentNode.classList.remove(
869
									"displayNone");
870
								var thisTit, thisImg, copNum = ""
871
								if (data.data.hasHeadImage == 1) {
872
									thisImg = "/images/head/" + data.data.id + "_l.jpg);"
873
								} else {
874
									thisImg = "../images/default-photo.jpg);"
875
								}
876
								if (numL) {
877
									if (numZ) {
878
										copNum = "合作:" + numZ + "项专利," + numL + "篇论文"
879
									} else {
880
										copNum = "合作:" + numL + "篇论文"
881
									}
882
								} else {
883
									if (numZ) {
884
										copNum = "合作:" + numZ + "项专利"
885
									} else {
678
				},
679
				questioninfo = function (qid, $str) {
680
					oAjax("/ajax/question/qo", {
681
						id: qid
682
					}, "get", function (data) {
683
						$str.find(".qa-question").html(data.data.title);
684
						if (data.data.pageViews > 0) {
685
							$str.find(".qaPageview").html("阅读量 " + data.data.pageViews);
686
						} else {
687
							$str.find(".qaPageview").hide()
688
						}
689
					});
690
				},
691
				queryPubCount = function () {
692
					// oAjax("/ajax/article/count/publish", { //文章总数
693
					// 	"owner": proId,
694
					// 	"category": "1"
695
					// }, "GET", function (data) {
696
					// 	if (data.data > rows) {
697
					// 		$("#seeMoreArtical").removeClass("displayNone")
698
					// 		$("#articalNum").text(data.data);
699
					//  	}
700
					// });
701
					oAjax("/ajax/resource/count/publish", { //资源总数
702
						"owner": proId,
703
						"category": "1"
704
					}, "GET", function (data) {
705
						if (data.data > rows) {
706
							$("#seeMoreResource").removeClass("displayNone")
707
							$("#resourceNum").text(data.data);
708
						}
709
					});
710
					oAjax("/ajax/ware/count/publish", { //服务总数
711
						"owner": proId,
712
						"category": "1"
713
					}, "GET", function (data) {
714
						if (data.data > rows) {
715
							$("#seeMoreService").removeClass("displayNone")
716
							$("#serviceNum").text(data.data);
717
						}
718
					});
719
					oAjax("/ajax/ppatent/count/publish", { //专利总数
720
						"owner": proId,
721
					}, "GET", function (data) {
722
						if (data.data > rows) {
723
							$("#seeMorePatent").removeClass("displayNone")
724
							$("#paperHide").text(data.data);
725
						}
726
					});
727
					oAjax("/ajax/ppaper/count/publish", { //论文总数
728
						"owner": proId,
729
					}, "GET", function (data) {
730
						if (data.data > rows) {
731
							$("#seeMorePaper").removeClass("displayNone")
732
							$("#paperShow").text(data.data);
733
						}
734
					});
735
					oAjax("/ajax/question/answer/bySelf/count", { //回答总数
736
						"uid": proId,
737
					}, "GET", function (data) {
738
						if (data.data > rows) {
739
							$("#seeMoreQA").removeClass("displayNone")
740
							$("#QANum").text(data.data);
741
						}
742
					});
743
				},
744
				bindClickFun = function () {
745
					var this_ = "../html/userInforShow.html?proid=" + proId;
746
					wcFresh(this_);
747
					$("body").on("click", ".seeMore,#goCmpBrief", function () {
748
						isInstalled(this_, true);
749
						$(this).addClass("activeThis");
750
					})
751
					$('#articelShow,#relateArt').on('click', 'li', function () {
752
						var id = this.getAttribute("data-id");
753
						location.href = "http://" + window.location.host + "/e/a.html?id=" + id;
754
						$(this).addClass("activeThis");
755
					})
756
					$('#resourceShow').on('click', 'li', function () {
757
						var id = this.getAttribute("data-id");
758
						location.href = "http://" + window.location.host + "/e/r.html?id=" + id;
759
						$(this).addClass("activeThis");
760
					})
761
					$('#paperShow').on('click', 'li', function () {
762
						var id = this.getAttribute("data-id");
763
						location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
764
						$(this).addClass("activeThis");
765
					})
766
					$('#patentShow').on('click', 'li', function () {
767
						var id = this.getAttribute("data-id");
768
						location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
769
						$(this).addClass("activeThis");
770
					})
771
					$('#demandShow').on('click', 'li', function () {
772
						var id = this.getAttribute("data-id");
773
						location.href = "http://" + window.location.host + "/e/d.html?id=" + id;
774
						$(this).addClass("activeThis");
775
					})
776
					$('#serviceShow').on('click', 'li', function () {
777
						var id = this.getAttribute("data-id");
778
						location.href = "http://" + window.location.host + "/e/s.html?id=" + id;
779
						$(this).addClass("activeThis");
780
					})
781
					//论文
782
					$('#paperList').on('click', 'li', function () {
783
						var id = this.getAttribute("data-id");
784
						location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
785
						$(this).addClass("activeThis");
786
					})
886 787
887
									}
888
								}
788
					//专利
789
					$('#paperShow').on('click', 'li', function () {
790
						var id = this.getAttribute("data-id");
791
						location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
792
						$(this).addClass("activeThis");
793
					})
794
					//非专
795
					$('#proUnPatent').on('click', 'li', function () {
796
						var id = this.getAttribute("data-id");
797
						location.href = "http://" + window.location.host + "/e/3.html?id=" + id;
798
						$(this).addClass("activeThis");
799
					})
800
				}
889 801
890
								if (data.data.title) {
891
									if (data.data.orgName) {
892
										thisTit = data.data.title + "," + data.data.orgName;
893
									} else {
894
										thisTit = data.data.title;
895
									}
896
								} else {
897
									if (data.data.office) {
898
										if (data.data.orgName) {
899
											thisTit = data.data.office + "," + data.data.orgName;
900
										} else {
901
											thisTit = data.data.office;
902
										}
903
									} else {
904
										if (data.data.orgName) {
905
											thisTit = data.data.orgName;
906
										}
907
									}
908
								}
909
								var userType = autho(data.data.authType, data.data.orgAuth, data.data
910
									.authStatus);
911
								var itemlist = '<a href="p.html?id=' + data.data.id +
912
									'" class="urlgo"><div class="madiaHead useHead" style="background-image:url(' +
913
									thisImg + ')"></div>';
914
								itemlist += '<div class="madiaInfo">';
915
								itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">' +
916
									data.data.name + '</span><em class="authiconNew ' + userType.sty +
917
									'" title="' + userType.title + '"></em></p>';
918
								itemlist += '<p class="ellipsisSty h2Font">' + thisTit + '</p>';
919
								itemlist += '<p class="h2Font ellipsisSty">' + copNum + '</p>';
920
								itemlist += '</div></a>';
921
								liItem.innerHTML = itemlist
922
								liItem.setAttribute("data-id", data.data.id)
802
			userMessage(proId);
803
			demandListVal()
804
			serviceListVal()
805
			resourceListVal()
806
			// articalListVal()
807
			patentListVal()
808
			paperListVal()
809
			answerListVal()
810
			relevantExperts(); //合作专家
811
			// relevantarticalList(); //相关文章
812
			likeExperts(); //感兴趣专家
813
			bindClickFun()
814
			queryPubCount();
815
			pageViewLog(proId, 1);
816
			// consociationTeam()
817
			//合作专家
818
			function relevantExperts() {
819
				$.ajax({
820
					"url": "/ajax/professor/coadjutant",
821
					"type": "get",
822
					"dataType": "json",
823
					"data": {
824
						"id": proId
825
					},
826
					"success": function (data) {
827
						if (data.success && data.data) {
828
							var lengthT;
829
							if (data.data.length > 5) {
830
								lengthT = 5;
831
							} else {
832
								lengthT = data.data.length
833
							}
834
							for (var i = 0; i < lengthT; i++) {
835
								var ExpId = data.data[i].professorId;
836
								var paperN = data.data[i].paperCount;
837
								var patentN = data.data[i].patentCount;
838
								var liItem = document.createElement("li");
839
								liItem.className = "mui-table-view-cell flexCenter";
840
								document.getElementById("relatePro").appendChild(liItem);
841
								relExpertsList(ExpId, paperN, patentN, liItem); //合作专家
923 842
							}
924
						},
925
						"error": function () {
926
							$.MsgBox.Alert('提示', '链接服务器超时')
927 843
						}
928
					});
929
				}
930
				//相关文章信息
931
				function relevantarticalList() {
932
					$.ajax({
933
						"url": "/ajax/article/byAssProfessor",
934
						"type": "GET",
935
						"dataType": "json",
936
						"data": {
937
							"id": proId
938
						},
939
						"async": "false",
940
						"traditional": true, //传数组必须加这个
941
						"success": function (data) {
942
							console.log(data);
943
							if (data.success && data.data != "") {
944
								document.getElementById("relateArt").parentNode.parentNode.classList.remove(
945
									"displayNone");
946
								document.getElementById("relateArt").innerHTML = "";
947
								var StrData = data.data
948
								var lengthT;
949
								if (data.data.length > 5) {
950
									lengthT = 5;
951
								} else {
952
									lengthT = data.data.length
953
								}
954
								for (var i = 0; i < lengthT; i++) {
955
									(function (n) {
956
										var imgL = "../images/default-artical.jpg";
957
										if (StrData[i].articleImg) {
958
											imgL = '../data/article/' + StrData[i].articleImg
959
										}
960
										var oURL;
961
										if (StrData[i].articleType == 1) {
962
											oURL = "/ajax/professor/baseInfo/" + StrData[i].ownerId;
963
										} else if (StrData[i].articleType == 2) {
964
											oURL = "/ajax/org/" + StrData[i].ownerId;
965
										} else if (StrData[i].articleType == 3) {
966
											oURL = "/ajax/platform/info";
967
										}
968
										$.ajax({
969
											"url": oURL,
970
											"data": {
971
												id: StrData[i].ownerId
972
											},
973
											"type": "GET",
974
											'dataType': "json",
975
											"success": function (data) {
976
												var thisName, userType, thisAuth, thisTitle
977
												if (data.data.forShort) {
978
													thisName = data.data.forShort;
979
												} else {
980
													thisName = data.data.name;
844
					},
845
					"error": function () {
846
						$.MsgBox.Alert('提示', '链接服务器超时')
847
					}
848
				});
849
			}
850
			//相关文章信息
851
			function relevantarticalList() {
852
				$.ajax({
853
					"url": "/ajax/article/byAssProfessor",
854
					"type": "GET",
855
					"dataType": "json",
856
					"data": {
857
						"id": proId
858
					},
859
					"async": "false",
860
					"traditional": true, //传数组必须加这个
861
					"success": function (data) {
862
						console.log(data);
863
						if (data.success && data.data != "") {
864
							document.getElementById("relateArt").parentNode.parentNode.classList.remove(
865
								"displayNone");
866
							document.getElementById("relateArt").innerHTML = "";
867
							var StrData = data.data
868
							var lengthT;
869
							if (data.data.length > 5) {
870
								lengthT = 5;
871
							} else {
872
								lengthT = data.data.length
873
							}
874
							for (var i = 0; i < lengthT; i++) {
875
								(function (n) {
876
									var imgL = "../images/default-artical.jpg";
877
									if (StrData[i].articleImg) {
878
										imgL = '../data/article/' + StrData[i].articleImg
879
									}
880
									var oURL;
881
									if (StrData[i].articleType == 1) {
882
										oURL = "/ajax/professor/baseInfo/" + StrData[i].ownerId;
883
									} else if (StrData[i].articleType == 2) {
884
										oURL = "/ajax/org/" + StrData[i].ownerId;
885
									} else if (StrData[i].articleType == 3) {
886
										oURL = "/ajax/platform/info";
887
									}
888
									$.ajax({
889
										"url": oURL,
890
										"data": {
891
											id: StrData[i].ownerId
892
										},
893
										"type": "GET",
894
										'dataType': "json",
895
										"success": function (data) {
896
											var thisName, userType, thisAuth, thisTitle
897
											if (data.data.forShort) {
898
												thisName = data.data.forShort;
899
											} else {
900
												thisName = data.data.name;
901
											}
902
											if (StrData[n].articleType == 1) {
903
												userType = autho(data.data.authType, data
904
													.data.orgAuth, data.data
905
													.authStatus);
906
												thisTitle = userType.title;
907
												thisAuth = userType.sty;
908
											} else if (StrData[n].articleType == 2) {
909
												if (data.data.authStatus == 3) {
910
													thisTitle = "科袖认证企业";
911
													thisAuth = "authicon-com-ok";
981 912
												}
982
												if (StrData[n].articleType == 1) {
983
													userType = autho(data.data.authType, data
984
														.data.orgAuth, data.data
985
														.authStatus);
986
													thisTitle = userType.title;
987
													thisAuth = userType.sty;
988
												} else if (StrData[n].articleType == 2) {
989
													if (data.data.authStatus == 3) {
990
														thisTitle = "科袖认证企业";
991
														thisAuth = "authicon-com-ok";
992
													}
993
												} else if (StrData[n].articleType == 3) {
913
											} else if (StrData[n].articleType == 3) {
994 914
995
												}
996
												var add = document.createElement("li");
997
												add.className =
998
													"mui-table-view-cell flexCenter OflexCenter";
999
												add.setAttribute("data-id", StrData[n]
1000
													.articleId);
1001
												var itemlist =
1002
													'<div class="madiaHead artHead" style="background-image:url(' +
1003
													imgL + ')"></div>';
1004
												itemlist +=
1005
													'<div class="madiaInfo OmadiaInfo">';
1006
												itemlist +=
1007
													'<p class="ellipsisSty-2 h1Font" id="usertitle">' +
1008
													StrData[n].articleTitle + '</p>';
1009
												itemlist +=
1010
													'<p><span class="h2Font" style="margin-right:10px">' +
1011
													thisName + '</span><span class="time">' +
1012
													commenTime(StrData[n].publishTime) +
1013
													'</span></p>';
1014
												itemlist += '</div>';
1015
1016
												add.innerHTML = itemlist;
1017
												document.getElementById("relateArt")
1018
													.appendChild(add);
1019
											},
1020
											'error': function () {
1021
												$.MsgBox.Alert('提示', '服务器连接超时!');
1022 915
											}
1023
										});
1024
									})(i);
1025
								}
916
											var add = document.createElement("li");
917
											add.className =
918
												"mui-table-view-cell flexCenter OflexCenter";
919
											add.setAttribute("data-id", StrData[n]
920
												.articleId);
921
											var itemlist =
922
												'<div class="madiaHead artHead" style="background-image:url(' +
923
												imgL + ')"></div>';
924
											itemlist +=
925
												'<div class="madiaInfo OmadiaInfo">';
926
											itemlist +=
927
												'<p class="ellipsisSty-2 h1Font" id="usertitle">' +
928
												StrData[n].articleTitle + '</p>';
929
											itemlist +=
930
												'<p><span class="h2Font" style="margin-right:10px">' +
931
												thisName + '</span><span class="time">' +
932
												commenTime(StrData[n].publishTime) +
933
												'</span></p>';
934
											itemlist += '</div>';
935
936
											add.innerHTML = itemlist;
937
											document.getElementById("relateArt")
938
												.appendChild(add);
939
										},
940
										'error': function () {
941
											$.MsgBox.Alert('提示', '服务器连接超时!');
942
										}
943
									});
944
								})(i);
1026 945
							}
1027
						},
1028
						"error": function () {
1029
							$.MsgBox.Alert('提示', '链接服务器超时')
1030 946
						}
1031
					});
1032
				}
1033
				//感兴趣
1034
				function likeExperts() {
1035
					$.ajax({
1036
						"url": "/ajax/professor/ralateProfessors",
1037
						"type": "get",
1038
						"dataType": "json",
1039
						"data": {
1040
							"professorId": proId
1041
						},
1042
						"success": function (data) {
1043
							if (data.success && data.data) {
1044
								console.log(data)
1045
								var lengthT;
1046
								if (data.data.length > 5) {
1047
									lengthT = 5;
1048
								} else {
1049
									lengthT = data.data.length
1050
								}
1051
								for (var i = 0; i < lengthT; i++) {
1052
									var ExpId = data.data[i].id;
1053
									likeExpertsList(ExpId);
1054
								}
947
					},
948
					"error": function () {
949
						console.log(1)
950
						// $.MsgBox.Alert('提示', '链接服务器超时')
951
					}
952
				});
953
			}
954
			//感兴趣
955
			function likeExperts() {
956
				$.ajax({
957
					"url": "/ajax/professor/ralateProfessors",
958
					"type": "get",
959
					"dataType": "json",
960
					"data": {
961
						"professorId": proId
962
					},
963
					"success": function (data) {
964
						if (data.success && data.data) {
965
							var lengthT;
966
							if (data.data.length > 5) {
967
								lengthT = 5;
968
							} else {
969
								lengthT = data.data.length
970
							}
971
							for (var i = 0; i < lengthT; i++) {
972
								var ExpId = data.data[i].id;
973
								likeExpertsList(ExpId);
1055 974
							}
1056
						},
1057
						"error": function () {
1058
							$.MsgBox.Alert('提示', '链接服务器超时')
1059 975
						}
1060
					});
1061
				}
976
					},
977
					"error": function () {
978
						$.MsgBox.Alert('提示', '链接服务器超时')
979
					}
980
				});
981
			}
1062 982
1063
				function likeExpertsList(Id) {
1064
					$.ajax({
1065
						"url": "/ajax/professor/info/" + Id,
1066
						"type": "GET",
1067
						"dataType": "json",
1068
						"success": function (data) {
1069
							if (data.success && data.data != "") {
1070
								console.log(data)
1071
								document.getElementById("likePro").parentNode.parentNode.classList.remove(
1072
									"displayNone");
1073
								var itemlist = '<li class="flexCenter"><a href="" class="urlgo">';
1074
								itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
1075
								itemlist += '<div class="madiaInfo">';
1076
								itemlist +=
1077
									'<p><span class="h1Font" id="userName"></span><em class="authiconNew" title=""></em></p>';
1078
								itemlist += '<p class="ellipsisSty h2Font" id="usertitle"></p>';
1079
								itemlist += '</div></a></li>';
1080
								$itemlist = $(itemlist);
1081
								$("#likePro").append($itemlist);
1082
								if (data.data.title) {
983
			function likeExpertsList(Id) {
984
				$.ajax({
985
					"url": "/ajax/professor/info/" + Id,
986
					"type": "GET",
987
					"dataType": "json",
988
					"success": function (data) {
989
						if (data.success && data.data != "") {
990
							console.log(data)
991
							document.getElementById("likePro").parentNode.parentNode.classList.remove(
992
								"displayNone");
993
							var itemlist = '<li class="flexCenter"><a href="" class="urlgo">';
994
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
995
							itemlist += '<div class="madiaInfo">';
996
							itemlist +=
997
								'<p><span class="h1Font" id="userName"></span><em class="authiconNew" title=""></em></p>';
998
							itemlist += '<p class="ellipsisSty h2Font" id="usertitle"></p>';
999
							itemlist += '</div></a></li>';
1000
							$itemlist = $(itemlist);
1001
							$("#likePro").append($itemlist);
1002
							if (data.data.title) {
1003
								if (data.data.orgName) {
1004
									$itemlist.find("#usertitle").text(data.data.title + "," + data.data
1005
										.orgName);
1006
								} else {
1007
									$itemlist.find("#usertitle").text(data.data.title);
1008
								}
1009
							} else {
1010
								if (data.data.office) {
1083 1011
									if (data.data.orgName) {
1084
										$itemlist.find("#usertitle").text(data.data.title + "," + data.data
1085
											.orgName);
1012
										$itemlist.find("#usertitle").text(data.data.office + "," + data
1013
											.data.orgName);
1086 1014
									} else {
1087
										$itemlist.find("#usertitle").text(data.data.title);
1015
										$itemlist.find("#usertitle").text(data.data.office);
1088 1016
									}
1089 1017
								} else {
1090
									if (data.data.office) {
1091
										if (data.data.orgName) {
1092
											$itemlist.find("#usertitle").text(data.data.office + "," + data
1093
												.data.orgName);
1094
										} else {
1095
											$itemlist.find("#usertitle").text(data.data.office);
1096
										}
1097
									} else {
1098
										if (data.data.orgName) {
1099
											$itemlist.find("#usertitle").text(data.data.orgName);
1100
										}
1018
									if (data.data.orgName) {
1019
										$itemlist.find("#usertitle").text(data.data.orgName);
1101 1020
									}
1102 1021
								}
1103
								$itemlist.find("#userName").text(data.data.name);
1104
								$itemlist.find(".urlgo").attr("href", "p.html?id=" + data.data.id);
1022
							}
1023
							$itemlist.find("#userName").text(data.data.name);
1024
							$itemlist.find(".urlgo").attr("href", "p.html?id=" + data.data.id);
1105 1025
1106
								if (data.data.hasHeadImage == 1) {
1107
									$itemlist.find("#userimg").attr("style",
1108
										"background-image: url(/images/head/" + data.data.id + "_l.jpg);"
1109
									);
1110
								}
1111
								var userType = autho(data.data.authType, data.data.orgAuth, data.data
1112
									.authStatus);
1113
								$itemlist.find(".authiconNew").attr("title", userType.title);
1114
								$itemlist.find(".authiconNew").addClass(userType.sty);
1026
							if (data.data.hasHeadImage == 1) {
1027
								$itemlist.find("#userimg").attr("style",
1028
									"background-image: url(/images/head/" + data.data.id + "_l.jpg);"
1029
								);
1115 1030
							}
1116
						},
1117
						"error": function () {
1118
							$.MsgBox.Alert('提示', '链接服务器超时')
1031
							var userType = autho(data.data.authType, data.data.orgAuth, data.data
1032
								.authStatus);
1033
							$itemlist.find(".authiconNew").attr("title", userType.title);
1034
							$itemlist.find(".authiconNew").addClass(userType.sty);
1119 1035
						}
1120
					});
1036
					},
1037
					"error": function () {
1038
						$.MsgBox.Alert('提示', '链接服务器超时')
1039
					}
1040
				});
1121 1041
1122
				}
1042
			}
1123 1043
1124
				/*微信分享*/
1125
				$.ajax({
1126
					url: "../ajax/weixin/jsapiTicket",
1127
					type: 'get',
1128
					dataType: 'json',
1129
					contentType: "application/x-www-form-urlencoded; charset=utf-8",
1130
					data: {
1131
						'url': location.href.split('#')[0]
1132
					},
1133
					success: function (data) {
1134
						if (data.data) {
1135
							wx.config({
1136
								debug: false, //调试模式好犀利
1137
								appId: data.data.appId,
1138
								timestamp: data.data.timestamp,
1139
								nonceStr: data.data.nonceStr,
1140
								signature: data.data.signature,
1141
								jsApiList: [ // 所有要调用的 API 都要加到这个列表中
1142
									"onMenuShareAppMessage",
1143
									"onMenuShareTimeline",
1144
									"onMenuShareQQ",
1145
									"onMenuShareQZone",
1146
									"scanQRCode",
1147
								]
1044
			/*微信分享*/
1045
			$.ajax({
1046
				url: "../ajax/weixin/jsapiTicket",
1047
				type: 'get',
1048
				dataType: 'json',
1049
				contentType: "application/x-www-form-urlencoded; charset=utf-8",
1050
				data: {
1051
					'url': location.href.split('#')[0]
1052
				},
1053
				success: function (data) {
1054
					if (data.data) {
1055
						wx.config({
1056
							debug: false, //调试模式好犀利
1057
							appId: data.data.appId,
1058
							timestamp: data.data.timestamp,
1059
							nonceStr: data.data.nonceStr,
1060
							signature: data.data.signature,
1061
							jsApiList: [ // 所有要调用的 API 都要加到这个列表中
1062
								"onMenuShareAppMessage",
1063
								"onMenuShareTimeline",
1064
								"onMenuShareQQ",
1065
								"onMenuShareQZone",
1066
								"scanQRCode",
1067
							]
1068
						});
1069
						wx.ready(function () {
1070
							// 在这里调用 API
1071
							wx.onMenuShareAppMessage({ //分享给朋友
1072
								title: shareTitle, // 分享标题
1073
								desc: descContent, // 分享描述
1074
								link: lineLink, // 分享链接
1075
								imgUrl: imgUrl, // 分享图标
1076
								success: share_success_callback,
1077
								cancel: share_cancel_callback
1148 1078
							});
1149
							wx.ready(function () {
1150
								// 在这里调用 API
1151
								wx.onMenuShareAppMessage({ //分享给朋友
1152
									title: shareTitle, // 分享标题
1153
									desc: descContent, // 分享描述
1154
									link: lineLink, // 分享链接
1155
									imgUrl: imgUrl, // 分享图标
1156
									success: share_success_callback,
1157
									cancel: share_cancel_callback
1158
								});
1159
								wx.onMenuShareTimeline({ //分享到朋友圈
1160
									title: shareTitle, // 分享标题
1161
									desc: descContent, // 分享描述
1162
									link: lineLink, // 分享链接
1163
									imgUrl: imgUrl, // 分享图标
1164
									success: share_success_callback,
1165
									cancel: share_cancel_callback
1166
								});
1167
								wx.onMenuShareQQ({ //分享到QQ
1168
									title: shareTitle, // 分享标题
1169
									desc: descContent, // 分享描述
1170
									link: lineLink, // 分享链接
1171
									imgUrl: imgUrl, // 分享图标
1172
									success: share_success_callback,
1173
									cancel: share_cancel_callback
1174
								});
1175
								wx.onMenuShareQZone({ //分享到QQ空间
1176
									title: shareTitle, // 分享标题
1177
									desc: descContent, // 分享描述
1178
									link: lineLink, // 分享链接
1179
									imgUrl: imgUrl, // 分享图标
1180
									success: share_success_callback,
1181
									cancel: share_cancel_callback
1182
								});
1079
							wx.onMenuShareTimeline({ //分享到朋友圈
1080
								title: shareTitle, // 分享标题
1081
								desc: descContent, // 分享描述
1082
								link: lineLink, // 分享链接
1083
								imgUrl: imgUrl, // 分享图标
1084
								success: share_success_callback,
1085
								cancel: share_cancel_callback
1183 1086
							});
1184
							//分享成功后的回调函数	
1185
							function share_success_callback() {}
1186
							//用户取消分享后执行的回调函数	
1187
							function share_cancel_callback() {}
1188
						}
1087
							wx.onMenuShareQQ({ //分享到QQ
1088
								title: shareTitle, // 分享标题
1089
								desc: descContent, // 分享描述
1090
								link: lineLink, // 分享链接
1091
								imgUrl: imgUrl, // 分享图标
1092
								success: share_success_callback,
1093
								cancel: share_cancel_callback
1094
							});
1095
							wx.onMenuShareQZone({ //分享到QQ空间
1096
								title: shareTitle, // 分享标题
1097
								desc: descContent, // 分享描述
1098
								link: lineLink, // 分享链接
1099
								imgUrl: imgUrl, // 分享图标
1100
								success: share_success_callback,
1101
								cancel: share_cancel_callback
1102
							});
1103
						});
1104
						//分享成功后的回调函数	
1105
						function share_success_callback() {}
1106
						//用户取消分享后执行的回调函数	
1107
						function share_cancel_callback() {}
1189 1108
					}
1190
				});
1191
			})
1192
1193
			//非专
1194
			function sevrResource($data) {
1195
				var namepo, userType;
1196
				if ($data.resourceType == 1) {
1197
					namepo = $data.editProfessor.name;
1198
					userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1109
				}
1110
			});
1111
		})
1112
1113
		//非专
1114
		function sevrResource($data) {
1115
			var namepo, userType;
1116
			if ($data.resourceType == 1) {
1117
				namepo = $data.editProfessor.name;
1118
				userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1119
			} else {
1120
				userType = {};
1121
				if ($data.organization.forShort) {
1122
					namepo = $data.organization.forShort;
1199 1123
				} else {
1200
					userType = {};
1201
					if ($data.organization.forShort) {
1202
						namepo = $data.organization.forShort;
1203
					} else {
1204
						namepo = $data.organization.name;
1205
					}
1206
					if ($data.organization.authStatus == 3) {
1207
						userType.sty = "authicon-com-ok"
1208
					}
1124
					namepo = $data.organization.name;
1209 1125
				}
1210
				var rImg = "../images/default-resource.jpg";
1211
				if ($data.images.length > 0) {
1212
					rImg = "/data/resource/" + $data.images[0].imageSrc;
1126
				if ($data.organization.authStatus == 3) {
1127
					userType.sty = "authicon-com-ok"
1213 1128
				}
1214
				var li = document.createElement("li");
1215
				li.setAttribute("data-id", $data.resourceId);
1216
				li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1217
					' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1218
					'<div class="madiaInfo OmadiaInfo">' +
1219
					'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1220
					'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1221
					'" title="科袖认证专家"></em></p>' +
1222
					'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1223
					'</div>' +
1224
					'</div>'
1225
				document.getElementById("resourceList").appendChild(li);
1226 1129
			}
1130
			var rImg = "../images/default-resource.jpg";
1131
			if ($data.images.length > 0) {
1132
				rImg = "/data/resource/" + $data.images[0].imageSrc;
1133
			}
1134
			var li = document.createElement("li");
1135
			li.setAttribute("data-id", $data.resourceId);
1136
			li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1137
				' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1138
				'<div class="madiaInfo OmadiaInfo">' +
1139
				'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1140
				'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1141
				'" title="科袖认证专家"></em></p>' +
1142
				'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1143
				'</div>' +
1144
				'</div>'
1145
			document.getElementById("resourceList").appendChild(li);
1146
		}
1227 1147
1228
			//专利
1229
			function sevrResource($data) {
1230
				var namepo, userType;
1231
				if ($data.resourceType == 1) {
1232
					namepo = $data.editProfessor.name;
1233
					userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1148
		//专利
1149
		function sevrResource($data) {
1150
			var namepo, userType;
1151
			if ($data.resourceType == 1) {
1152
				namepo = $data.editProfessor.name;
1153
				userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1154
			} else {
1155
				userType = {};
1156
				if ($data.organization.forShort) {
1157
					namepo = $data.organization.forShort;
1234 1158
				} else {
1235
					userType = {};
1236
					if ($data.organization.forShort) {
1237
						namepo = $data.organization.forShort;
1238
					} else {
1239
						namepo = $data.organization.name;
1240
					}
1241
					if ($data.organization.authStatus == 3) {
1242
						userType.sty = "authicon-com-ok"
1243
					}
1159
					namepo = $data.organization.name;
1244 1160
				}
1245
				var rImg = "../images/default-resource.jpg";
1246
				if ($data.images.length > 0) {
1247
					rImg = "/data/resource/" + $data.images[0].imageSrc;
1161
				if ($data.organization.authStatus == 3) {
1162
					userType.sty = "authicon-com-ok"
1248 1163
				}
1249
				var li = document.createElement("li");
1250
				li.setAttribute("data-id", $data.resourceId);
1251
				li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1252
					' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1253
					'<div class="madiaInfo OmadiaInfo">' +
1254
					'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1255
					'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1256
					'" title="科袖认证专家"></em></p>' +
1257
					'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1258
					'</div>' +
1259
					'</div>'
1260
				document.getElementById("resourceList").appendChild(li);
1261 1164
			}
1262
			//论文
1263
			function sevrResource($data) {
1264
1265
				var namepo, userType;
1266
				if ($data.resourceType == 1) {
1267
					namepo = $data.editProfessor.name;
1268
					userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1165
			var rImg = "../images/default-resource.jpg";
1166
			if ($data.images.length > 0) {
1167
				rImg = "/data/resource/" + $data.images[0].imageSrc;
1168
			}
1169
			var li = document.createElement("li");
1170
			li.setAttribute("data-id", $data.resourceId);
1171
			li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1172
				' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1173
				'<div class="madiaInfo OmadiaInfo">' +
1174
				'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1175
				'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1176
				'" title="科袖认证专家"></em></p>' +
1177
				'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1178
				'</div>' +
1179
				'</div>'
1180
			document.getElementById("resourceList").appendChild(li);
1181
		}
1182
		//论文
1183
		function sevrResource($data) {
1184
1185
			var namepo, userType;
1186
			if ($data.resourceType == 1) {
1187
				namepo = $data.editProfessor.name;
1188
				userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
1189
			} else {
1190
				userType = {};
1191
				if ($data.organization.forShort) {
1192
					namepo = $data.organization.forShort;
1269 1193
				} else {
1270
					userType = {};
1271
					if ($data.organization.forShort) {
1272
						namepo = $data.organization.forShort;
1273
					} else {
1274
						namepo = $data.organization.name;
1275
					}
1276
					if ($data.organization.authStatus == 3) {
1277
						userType.sty = "authicon-com-ok"
1278
					}
1194
					namepo = $data.organization.name;
1279 1195
				}
1280
				var rImg = "../images/default-resource.jpg";
1281
				if ($data.images.length > 0) {
1282
					rImg = "/data/resource/" + $data.images[0].imageSrc;
1196
				if ($data.organization.authStatus == 3) {
1197
					userType.sty = "authicon-com-ok"
1283 1198
				}
1284
				var li = document.createElement("li");
1285
				li.setAttribute("data-id", $data.resourceId);
1286
				li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1287
					' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1288
					'<div class="madiaInfo OmadiaInfo">' +
1289
					'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1290
					'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1291
					'" title="科袖认证专家"></em></p>' +
1292
					'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1293
					'</div>' +
1294
					'</div>'
1295
				document.getElementById("resourceList").appendChild(li);
1296 1199
			}
1200
			var rImg = "../images/default-resource.jpg";
1201
			if ($data.images.length > 0) {
1202
				rImg = "/data/resource/" + $data.images[0].imageSrc;
1203
			}
1204
			var li = document.createElement("li");
1205
			li.setAttribute("data-id", $data.resourceId);
1206
			li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
1207
				' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
1208
				'<div class="madiaInfo OmadiaInfo">' +
1209
				'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
1210
				'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty +
1211
				'" title="科袖认证专家"></em></p>' +
1212
				'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
1213
				'</div>' +
1214
				'</div>'
1215
			document.getElementById("resourceList").appendChild(li);
1216
		}
1297 1217
1298 1218
1299 1219
1300 1220
1301
			//定义一个数组储存返回的数据
1302
			var patentArr = [],
1303
				unpatentArr = [];
1304
			var tId = GetQueryString("id"); //获取url Id
1305
			var pageNo = 1,
1306
				rows = 20,
1221
		//定义一个数组储存返回的数据
1222
		var patentArr = [],
1223
			unpatentArr = [];
1224
		var tId = GetQueryString("id"); //获取url Id
1225
		var pageNo = 1,
1226
			rows = 20,
1307 1227
1308
				oAjax = function (url, dataS, otype, oFun, beforeFun, completeFun, async) {
1309
					$.ajax({
1310
						async: async ==null ? true : async,
1311
						url: url,
1312
						dataType: 'json',
1313
						type: otype,
1314
						data: dataS,
1315
						traditional: true,
1316
						beforeSend: beforeFun,
1317
						success: function (res) {
1318
							oFun(res)
1319
						},
1320
						complete: completeFun
1228
			oAjax = function (url, dataS, otype, oFun, beforeFun, completeFun, async) {
1229
				$.ajax({
1230
					async: async ==null ? true : async,
1231
					url: url,
1232
					dataType: 'json',
1233
					type: otype,
1234
					data: dataS,
1235
					traditional: true,
1236
					beforeSend: beforeFun,
1237
					success: function (res) {
1238
						oFun(res)
1239
					},
1240
					complete: completeFun
1321 1241
1322
					});
1323
				},
1242
				});
1243
			},
1324 1244
1325
				//专利
1326
				patentListVal = function (isbind) {
1327
					var aimId = "proPatent",
1328
						newStr = "尚未关联任何专利成果"
1329
					oAjax("/ajax/team/patent", {
1330
						id: tId,
1331
						pageSize: rows,
1332
						pageNo: pageNo,
1333
					}, "get", function (res) {
1334
						var $info = res.data.data;
1245
			//专利
1246
			patentListVal = function (isbind) {
1247
				var aimId = "paperShow",
1248
					newStr = "尚未关联任何专利成果"
1249
				oAjax("/ajax/team/patent", {
1250
					id: tId,
1251
					pageSize: rows,
1252
					pageNo: pageNo,
1253
				}, "get", function (res) {
1254
					var $info = res.data.data;
1255
					$("#patentShow").html("")
1256
					if ($info.length > 0) {
1257
						if (res.data.total > 0 && res.data.total < 99) {
1258
							$("#patCount").text(res.data.total);
1259
						}
1260
						if (res.data.total > 99) {
1261
							$("#patCount").text("99+");
1262
						}
1263
						$("#" + aimId).show()
1264
						for (var i = 0; i < $info.length; i++) {
1265
							patentArr.push($info[i].patent)
1335 1266
1267
						}
1268
						detailPat(aimId)
1269
					} else {
1270
						$("#showPatent").parents('.otherShow').hide()
1271
					}
1272
					var liLen = document.getElementById(aimId).querySelectorAll("li").length;
1336 1273
1337
						$("#patentShow").html("")
1338
						if ($info.length > 0) {
1339
							if (res.data.total > 0 && res.data.total < 99) {
1340
								$("#patCount").text(res.data.total);
1341
							}
1342
							if (res.data.total > 99) {
1343
								$("#patCount").text("99+");
1344
							}
1345
							$("#" + aimId).show()
1346
							for (var i = 0; i < $info.length; i++) {
1347
								patentArr.push($info[i].patent)
1274
					// removeNodata(aimId);
1275
					if ($info.length == 0 && liLen == 0) {
1276
						$("#" + aimId).hide()
1277
						// insertNodata(aimId, newStr);
1278
					}
1279
					if (isbind) {
1280
						$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
1281
							pageNo++
1282
							patentListVal(false)
1283
						})
1284
					}
1285
					if ($info.length < rows) {
1286
						$("#" + aimId).parent().find(".js-load-more").unbind("click");
1287
						$("#" + aimId).parent().find(".js-load-more").hide();
1288
					}
1289
				}, function () {
1290
					$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
1291
					$("#" + aimId).parent().find(".js-load-more").addClass("active");
1292
				}, function () {
1293
					$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
1294
					$("#" + aimId).parent().find(".js-load-more").removeClass("active");
1295
				})
1296
			}
1297
		//获取专利数据
1298
		detailPat = function (obj) {
1299
			oAjax("/ajax/ppatent/qm", {
1300
				id: patentArr,
1301
			}, "get", function (data) {
1302
				console.log(data)
1303
				var dataStr = data.data;
1304
				var strAdd = '';
1305
				// 	strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="/'+ pageUrl("pt",dataStr[i]) +'" class="flexCenter urlgo">';
1306
				// 	strAdd += '<div class="madiaHead patentHead"></div>';
1307
				// 	strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
1308
				// 	strAdd += '<p class="h2Font ellipsisSty">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
1309
				// 	strAdd += '<p class="h2Font ellipsisSty">申请人:'+ dataStr[i].reqPerson +'</p>';
1310
				// 	strAdd += '</div>';
1311
				// 	strAdd += '</a></li>';
1312
				if (dataStr.length > 0) {
1313
					document.getElementById('paperShow').parentNode.parentNode.classList.remove("displayNone");
1314
1315
					var li = document.createElement("li");
1316
					li.setAttribute("data-id", dataStr[0].id);
1317
					li.className = "mui-table-view-cell";
1318
					li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
1319
						'<div class="madiaHead paperHead"></div>' +
1320
						'<div class="madiaInfo OmadiaInfo">' +
1321
						'<p class="ellipsisSty-2 h1Font">' + dataStr[0].name + '</p>' +
1322
						'<p class="ellipsisSty h2Font">' + dataStr[0].authors + '</p>' +
1323
						//.substring(0, dataStr[i].authors.length - 1)    
1324
						'</div>' +
1325
						'</div>'
1326
					document.getElementById('paperShow').appendChild(li);
1327
1328
					$("#" + obj).append(strAdd)
1329
1330
					// if (dataStr.length == 1) {
1331
					// 	$('#paperNum').parent().parent().css('display', 'none')
1332
					// }
1333
					// // $('#paperNum').text(dataStr.length)
1334
					// if (i < 3) {
1335
					// 	$("#showPatent").append(strAdd);
1336
					// }
1337
				}
1348 1338
1349
							}
1350
							detailPat(aimId)
1351
						} else {
1352
							$("#showPatent").parents('.otherShow').hide()
1353
						}
1354
						// var liLen=document.getElementById(aimId).querySelectorAll("li").length;
1355
						// removeNodata(aimId);
1356
						// console.log(document.getElementById(aimId).querySelectorAll("li"));
1357 1339
1340
			});
1341
		}
1358 1342
1359
						if ($info.length == 0 && liLen == 0) {
1360
							$("#" + aimId).hide()
1361
							insertNodata(aimId, newStr);
1343
		//非专利
1344
		unpatentListVal = function (isbind) {
1345
				var aimId = "proUnPatent",
1346
					newStr = "尚未关联任何非专利成果"
1347
				oAjax("/ajax/team/resResult", {
1348
					id: tId,
1349
					pageSize: rows,
1350
					pageNo: pageNo,
1351
				}, "get", function (res) {
1352
					var $info = res.data.data;
1353
					$("#showUnPatent").html("")
1354
					if ($info.length > 0) {
1355
						if (res.data.total > 0 && res.data.total < 99) {
1356
							$("#unpatCount").text(res.data.total);
1362 1357
						}
1363
						if (isbind) {
1364
							$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
1365
								pageNo++
1366
								patentListVal(false)
1367
							})
1358
						if (res.data.total > 99) {
1359
							$("#unpatCount").text("99+");
1368 1360
						}
1369
						if ($info.length < rows) {
1370
							$("#" + aimId).parent().find(".js-load-more").unbind("click");
1371
							$("#" + aimId).parent().find(".js-load-more").hide();
1361
						// $("#" + aimId).show()
1362
						// $("#" + aimIdF).parents(".leftconItem").find(".nodatabox").hide()
1363
						// $("#" + aimIdF).parents(".form-item").removeClass("displayNone");
1364
						// $("#" + aimIdF).parents(".coninfobox").show();
1365
						for (var i = 0; i < $info.length; i++) {
1366
							unpatentArr.push($info[i].researchResult)
1372 1367
						}
1373
					}, function () {
1374
						$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
1375
						$("#" + aimId).parent().find(".js-load-more").addClass("active");
1376
					}, function () {
1377
						$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
1378
						$("#" + aimId).parent().find(".js-load-more").removeClass("active");
1379
					})
1380
				}
1381
			//获取专利数据
1382
			detailPat = function (obj) {
1383
				oAjax("/ajax/ppatent/qm", {
1384
					id: patentArr,
1368
						detailUnPat(aimId)
1369
					} else {
1370
						$("#showUnPatent").parents('.otherShow').hide()
1371
					}
1372
					var liLen = document.getElementById(aimId).querySelectorAll("li").length;
1373
					// removeNodata(aimId);
1374
1375
1376
					// if ($info.length == 0 && liLen == 0) {
1377
					// 	$("#" + aimId).hide()
1378
					// 	insertNodata(aimId, newStr);
1379
					// }
1380
					if (isbind) {
1381
						$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
1382
							pageNo++
1383
							unpatentListVal(false)
1384
						})
1385
					}
1386
					if ($info.length < rows) {
1387
						$("#" + aimId).parent().find(".js-load-more").unbind("click");
1388
						$("#" + aimId).parent().find(".js-load-more").hide();
1389
					}
1390
				}, function () {
1391
					$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
1392
					$("#" + aimId).parent().find(".js-load-more").addClass("active");
1393
				}, function () {
1394
					$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
1395
					$("#" + aimId).parent().find(".js-load-more").removeClass("active");
1396
				})
1397
			},
1398
			//团队非专数据渲染
1399
			detailUnPat = function (obj) { //二次请求获取到id 请求数据进行渲染
1400
				oAjax("/ajax/resResult/qm", {
1401
					id: unpatentArr,
1385 1402
				}, "get", function (data) {
1386 1403
					var dataStr = data.data;
1387 1404
					var strAdd = '';
1388
					// 	strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="/'+ pageUrl("pt",dataStr[i]) +'" class="flexCenter urlgo">';
1389
					// 	strAdd += '<div class="madiaHead patentHead"></div>';
1390
					// 	strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
1391
					// 	strAdd += '<p class="h2Font ellipsisSty">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
1392
					// 	strAdd += '<p class="h2Font ellipsisSty">申请人:'+ dataStr[i].reqPerson +'</p>';
1393
					// 	strAdd += '</div>';
1394
					// 	strAdd += '</a></li>';
1395 1405
					if (dataStr.length > 0) {
1396 1406
						document.getElementById('proUnPatent').parentNode.parentNode.classList.remove("displayNone");
1397
1398 1407
						var li = document.createElement("li");
1399 1408
						li.setAttribute("data-id", dataStr[0].id);
1400 1409
						li.className = "mui-table-view-cell";
@ -1402,214 +1411,101 @@
1402 1411
							'<div class="madiaHead paperHead"></div>' +
1403 1412
							'<div class="madiaInfo OmadiaInfo">' +
1404 1413
							'<p class="ellipsisSty-2 h1Font">' + dataStr[0].name + '</p>' +
1405
							'<p class="ellipsisSty h2Font">' + dataStr[0].authors + '</p>' +
1414
							'<p class="ellipsisSty h2Font dis">' + dataStr[0].applyDescp + '</p>' +
1406 1415
							//.substring(0, dataStr[i].authors.length - 1)    
1407
1408 1416
							'</div>' +
1409 1417
							'</div>'
1410
						document.getElementById('paperShow').appendChild(li);
1411
1412
1413
							
1414
1418
						document.getElementById('proUnPatent').appendChild(li);
1419
						if (dataStr[0].applyDescp == undefined) {
1420
							$('.dis').css('display', 'none')
1421
						}
1415 1422
						$("#" + obj).append(strAdd)
1416 1423
1417
						if(dataStr.length==1) {
1418
							$('#paperNum').parent().parent().css('display','none')
1424
						if (dataStr.length == 1) {
1425
							$('#patentNum').parent().parent().css('display', 'none')
1419 1426
						}
1420
						$('#paperNum').text(dataStr.length)
1427
1428
1429
						$('#patentNum').text(dataStr.length)
1421 1430
						// if (i < 3) {
1422 1431
						// 	$("#showPatent").append(strAdd);
1423 1432
						// }
1424 1433
					}
1425 1434
1426
1435
					// $("#" + obj).append(strAdd);
1436
					// if (i < 3) {
1437
					// 	$("#showUnPatent").append(strAdd)
1438
					// }
1439
					// var $itemlist = $(strAdd);
1440
					// // queryResearcher(dataStr[i].id, $itemlist)
1441
					// // if (dataStr[i].orgId) {
1442
					// // 	queryReseOrgName(dataStr[i].orgId, $itemlist)
1443
					// // }
1427 1444
				});
1428
			}
1429
1430
			//非专利
1431
			unpatentListVal = function (isbind) {
1432
					var aimId = "proUnPatent",
1433
1434
						newStr = "尚未关联任何非专利成果"
1435
					oAjax("/ajax/team/resResult", {
1436
						id: tId,
1437
						pageSize: rows,
1438
						pageNo: pageNo,
1439
					}, "get", function (res) {
1440
						var $info = res.data.data;
1441
1442
						$("#showUnPatent").html("")
1443
						if ($info.length > 0) {
1444
1445
							if (res.data.total > 0 && res.data.total < 99) {
1446
1447
								$("#unpatCount").text(res.data.total);
1448
							}
1449
							if (res.data.total > 99) {
1450
								$("#unpatCount").text("99+");
1451
							}
1452
							// $("#" + aimId).show()
1453
							// $("#" + aimIdF).parents(".leftconItem").find(".nodatabox").hide()
1454
							// $("#" + aimIdF).parents(".form-item").removeClass("displayNone");
1455
							// $("#" + aimIdF).parents(".coninfobox").show();
1456
							for (var i = 0; i < $info.length; i++) {
1457
								unpatentArr.push($info[i].researchResult)
1458
							}
1459
							detailUnPat(aimId)
1460
						} else {
1461
							$("#showUnPatent").parents('.otherShow').hide()
1462
						}
1463
						// var liLen = document.getElementById(aimId).querySelectorAll("li").length;
1464
						// removeNodata(aimId);
1465
1466
1467
						// if ($info.length == 0 && liLen == 0) {
1468
						// 	$("#" + aimId).hide()
1469
						// 	insertNodata(aimId, newStr);
1470
						// }
1471
						if (isbind) {
1472
							$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
1473
								pageNo++
1474
								unpatentListVal(false)
1475
							})
1476
						}
1477
						if ($info.length < rows) {
1478
							$("#" + aimId).parent().find(".js-load-more").unbind("click");
1479
							$("#" + aimId).parent().find(".js-load-more").hide();
1480
						}
1481
					}, function () {
1482
						$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
1483
						$("#" + aimId).parent().find(".js-load-more").addClass("active");
1484
					}, function () {
1485
						$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
1486
						$("#" + aimId).parent().find(".js-load-more").removeClass("active");
1487
					})
1488
				},
1489
1490
				detailUnPat = function (obj) { //二次请求获取到id 请求数据进行渲染
1491
					oAjax("/ajax/resResult/qm", {
1492
						id: unpatentArr,
1493
					}, "get", function (data) {
1494
						var dataStr = data.data;
1495
						var strAdd = '';
1496
						// console.log(dataStr);
1445
			},
1446
1447
			// 论文
1448
			paperListVal = function () { //论文
1449
				var aimId = "paperList"
1450
				oAjax("/ajax/team/paper/search", {
1451
					"rows": rows,
1452
					"team": tId
1453
				}, "get", function (res) {
1454
					var obj = res.data;
1455
					if (obj.length > 0) {
1456
						document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
1497 1457
1498
						if (dataStr.length > 0) {
1499
1500
							document.getElementById('paperShow').parentNode.parentNode.classList.remove("displayNone");
1501
1502
							var li = document.createElement("li");
1503
							li.setAttribute("data-id", dataStr[0].id);
1504
							li.className = "mui-table-view-cell";
1505
							li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
1506
								'<div class="madiaHead paperHead"></div>' +
1507
								'<div class="madiaInfo OmadiaInfo">' +
1508
								'<p class="ellipsisSty-2 h1Font">' + dataStr[0].name + '</p>' +
1509
								'<p class="ellipsisSty h2Font dis">' + dataStr[0].applyDescp + '</p>' +
1510
								//.substring(0, dataStr[i].authors.length - 1)    
1511
								'</div>' +
1512
								'</div>'
1513
							document.getElementById('proUnPatent').appendChild(li);
1514
							if (dataStr[0].applyDescp == undefined) {
1515
								$('.dis').css('display', 'none')
1516
							}
1517
							$("#" + obj).append(strAdd)
1518
1519
							if(dataStr.length==1) {
1520
								$('#patentNum').parent().parent().css('display','none')
1521
							}
1522
1523
1524
							$('#patentNum').text(dataStr.length)
1525
							// if (i < 3) {
1526
							// 	$("#showPatent").append(strAdd);
1527
							// }
1528
						}
1458
						var li = document.createElement("li");
1459
						li.setAttribute("data-id", obj[0].id);
1460
						li.className = "mui-table-view-cell";
1461
						li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
1462
							'<div class="madiaHead paperHead"></div>' +
1463
							'<div class="madiaInfo OmadiaInfo">' +
1464
							'<p class="ellipsisSty-2 h1Font">' + obj[0].name + '</p>' +
1465
							'<p class="ellipsisSty h2Font">' + obj[0].authors.substring(0, obj[0].authors
1466
								.length - 1) + '</p>' +
1467
							'</div>' +
1468
							'</div>'
1469
						document.getElementById(aimId).appendChild(li);
1470
					}
1471
					if (obj.length == 1) {
1472
						$('#forumNum').parent().parent().css('display', 'none')
1473
						console.log($('#forumNum').parent().parent());
1474
					}
1475
					$('#forumNum').text(obj.length)
1476
				})
1477
			},
1529 1478
1530
						// $("#" + obj).append(strAdd);
1531
						// if (i < 3) {
1532
						// 	$("#showUnPatent").append(strAdd)
1533
						// }
1534
						// var $itemlist = $(strAdd);
1535
						// // queryResearcher(dataStr[i].id, $itemlist)
1536
						// // if (dataStr[i].orgId) {
1537
						// // 	queryReseOrgName(dataStr[i].orgId, $itemlist)
1538
						// // }
1539
					});
1540
				},
1541 1479
1542
				// 论文
1543
				paperListVal = function () { //论文
1544
					var aimId = "paperList"
1545
					oAjax("/ajax/team/paper/search", {
1546
						"rows": rows,
1547
						"team": tId
1548
					}, "get", function (res) {
1549
						console.log(res)
1550
						var obj = res.data;
1551
						if (obj.length > 0) {
1552
							document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
1553 1480
1481
			relevantExperts = function () { //论文
1482
				var aimId = "paperList"
1483
				oAjax("/ajax/team/paper/search", {
1484
					"rows": rows,
1485
					"team": tId
1486
				}, "get", function (res) {
1487
					var obj = res.data;
1488
					if (obj.length > 0) {
1489
						document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
1490
						for (var i = 0; i < obj.length; i++) {
1554 1491
							var li = document.createElement("li");
1555
							li.setAttribute("data-id", obj[0].id);
1492
							li.setAttribute("data-id", obj[i].id);
1556 1493
							li.className = "mui-table-view-cell";
1557 1494
							li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
1558 1495
								'<div class="madiaHead paperHead"></div>' +
1559 1496
								'<div class="madiaInfo OmadiaInfo">' +
1560
								'<p class="ellipsisSty-2 h1Font">' + obj[0].name + '</p>' +
1561
								'<p class="ellipsisSty h2Font">' + obj[0].authors.substring(0, obj[0].authors
1497
								'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
1498
								'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors
1562 1499
									.length - 1) + '</p>' +
1563 1500
								'</div>' +
1564 1501
								'</div>'
1565 1502
							document.getElementById(aimId).appendChild(li);
1566
1567
1568
1569
1570
						}
1571
						
1572
						if (obj.length == 1) {
1573
							console.log(1);
1574
							
1575
							$('#forumNum').parent().parent().css('display', 'none')
1576
							console.log($('#forumNum').parent().parent());
1577
						}
1578
						$('#forumNum').text(obj.length)
1579
					})
1580
				},
1581
1582
1583
1584
				relevantExperts = function () { //论文
1585
					var aimId = "paperList"
1586
					oAjax("/ajax/team/paper/search", {
1587
						"rows": rows,
1588
						"team": tId
1589
					}, "get", function (res) {
1590
						var obj = res.data;
1591
						if (obj.length > 0) {
1592
							document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
1593
							for (var i = 0; i < obj.length; i++) {
1594
								var li = document.createElement("li");
1595
								li.setAttribute("data-id", obj[i].id);
1596
								li.className = "mui-table-view-cell";
1597
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
1598
									'<div class="madiaHead paperHead"></div>' +
1599
									'<div class="madiaInfo OmadiaInfo">' +
1600
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
1601
									'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors
1602
										.length - 1) + '</p>' +
1603
									'</div>' +
1604
									'</div>'
1605
								document.getElementById(aimId).appendChild(li);
1606
								// $('#forumNum').remove("displayNone");
1607
								$('#forumNum').text(obj.length)
1608
							}
1503
							// $('#forumNum').remove("displayNone");
1504
							$('#forumNum').text(obj.length)
1609 1505
						}
1610
					})
1611
				},
1612
1506
					}
1507
				})
1508
			},
1613 1509
1614 1510
1615 1511
@ -1625,136 +1521,171 @@
1625 1521
1626 1522
1627 1523
1628
				teamofExperts()
1629 1524
1630
			//专家团队
1631
			function teamofExperts() {
1525
			teamofExperts()
1632 1526
1633
				oAjax('/ajax/team/pro', {
1634
					id: tId,
1635
					"pageSize": rows,
1636
					"pageNo": pageNo,
1637
				}, 'get', function (res) {
1638
					if (res.success && res.data) {
1639
						var data = res.data.data
1640
						// console.log(data);
1641
						for (var i = 0; i < data.length; i++) {
1642
							var paperN = data[i].id; //传专家id
1643
							var ExpId = data[i].professor;
1644
							var patentN = data[i].secretary;
1645
							var liItem = document.createElement("li");
1646
							liItem.className = "mui-table-view-cell flexCenter";
1647
							document.getElementById("relateTeam").appendChild(liItem);
1648
							relExpertsList(ExpId, paperN, patentN, liItem)
1527
		//专家团队
1528
		function teamofExperts() {
1529
			oAjax('/ajax/team/pro', {
1530
				id: tId,
1531
				"pageSize": rows,
1532
				"pageNo": pageNo,
1533
			}, 'get', function (res) {
1534
				if (res.success && res.data) {
1535
					var data = res.data.data
1536
					for (var i = 0; i < data.length; i++) {
1537
						var paperN, patentN;
1538
						$.ajax({
1539
							url: '/ajax/professor/coadjutant',
1540
							data: {
1541
								id: data[i].professor
1542
							},
1543
							type: 'get',
1544
							timeout: 400,
1545
							success: function (res) {
1546
								var $data = res.data
1547
								for (let i = 0; i < $data.length; i++) {
1548
									paperN = $data[i].paperCount
1549
									patentN = $data[i].patentCount
1550
								}
1551
							}
1552
						})
1649 1553
1554
						// var paperN = data.total;
1555
						var ExpId = data[i].professor; //传专家id
1556
						// var patentN = data[i].secretary;
1557
						var secretary = ''
1558
						var chief = ''
1559
						var liItem = document.createElement("li");
1560
						liItem.className = "mui-table-view-cell flexCenter";
1561
						if (data[i].secretary) { //团队秘书
1562
							// console.log(secretary)
1563
							secretary = data[i].professor
1650 1564
						}
1565
						if (data[i].chief) {
1566
							chief = data[i].professor
1567
						}
1568
						console.log(secretary)
1569
						console.log(chief)
1570
						document.getElementById("relateTeam").appendChild(liItem);
1571
						relExpertsList(ExpId, paperN, patentN, liItem, secretary, chief) //专家团队
1572
					}
1573
					// console.log($('#personNum').parent().parent(1));
1651 1574
1652
						// console.log($('#personNum').parent().parent(1));
1653
1654
						// data.length==1? $('#personNum').css('display','none'):$('#personNum').css('display:block')
1575
					// data.length==1? $('#personNum').css('display','none'):$('#personNum').css('display:block')
1655 1576
1577
					if (data.length == 1) {
1578
						$('#personNum').parent().parent().css('display', 'none')
1579
					} else {
1580
						$('#personNum').parent().parent().css('display', 'block')
1581
					}
1582
					$('#personNum').text(data.length)
1656 1583
1657 1584
1658
						if (data.length == 1) {
1659
							$('#personNum').parent().parent().css('display', 'none')
1660
						} else {
1661
							$('#personNum').parent().parent().css('display', 'block')
1662
						}
1663
						$('#personNum').text(data.length)
1585
				}
1586
			})
1587
		}
1664 1588
1665 1589
1666
					}
1667
				})
1668
			}
1669 1590
1670 1591
1671 1592
1672 1593
1594
		//获取团队专家内部内容
1595
		function relExpertsList(Id, numL, numZ, liItem, secretary, chief) {
1596
			$.ajax({
1597
				"url": "/ajax/professor/info/" + Id,
1598
				"type": "GET",
1599
				"dataType": "json",
1600
				"success": function (data) {
1601
					if (data.success && data.data != "") {
1602
						// if (flay.secretary) {
1603
						// 	console.log(flay.secretary)
1604
						// }
1673 1605
1674
			//获取团队专家内部内容
1675
			function relExpertsList(Id, numL, numZ, liItem) {
1676
				$.ajax({
1677
					"url": "/ajax/professor/info/" + Id,
1678
					"type": "GET",
1679
					"dataType": "json",
1680
					"success": function (data) {
1681
						if (data.success && data.data != "") {
1682
							document.getElementById("relateTeam").parentNode.parentNode.classList.remove(
1683
								"displayNone");
1684
							var thisTit, thisImg, copNum = ""
1685
							if (data.data.hasHeadImage == 1) {
1686
								thisImg = "/images/head/" + data.data.id + "_l.jpg);"
1606
						if (data.data.id === secretary) {
1607
							spanA = "<span>" + '团队秘书' + "</span>"
1608
						} else {
1609
							spanA = ''
1610
						}
1611
						if (data.data.id === chief) {
1612
							spanB = "<span>" + '首席专家' + "</span>"
1613
						} else {
1614
							spanB = ''
1615
						}
1616
						document.getElementById("relateTeam").parentNode.parentNode.classList.remove(
1617
							"displayNone");
1618
						var thisTit, thisImg, spanA, spanB, copNum = ""
1619
						if (data.data.hasHeadImage == 1) {
1620
							thisImg = "/images/head/" + data.data.id + "_l.jpg);"
1621
						} else {
1622
							thisImg = "../images/default-photo.jpg);"
1623
						}
1624
						if (numL) {
1625
							if (numZ) {
1626
								copNum = "合作:" + numZ + "项专利," + numL + "篇论文"
1687 1627
							} else {
1688
								thisImg = "../images/default-photo.jpg);"
1628
								copNum = "合作:" + numL + "篇论文"
1689 1629
							}
1690
							if (numL) {
1691
								if (numZ) {
1692
									copNum = "合作:" + numZ + "项专利," + numL + "篇论文"
1693
								} else {
1694
									copNum = "合作:" + numL + "篇论文"
1695
								}
1630
						} else {
1631
							if (numZ) {
1632
								copNum = "合作:" + numZ + "项专利"
1696 1633
							} else {
1697
								if (numZ) {
1698
									copNum = "合作:" + numZ + "项专利"
1699
								} else {
1700 1634
1701
								}
1702 1635
							}
1636
						}
1703 1637
1704
							if (data.data.title) {
1638
						if (data.data.title) {
1639
							if (data.data.orgName) {
1640
								thisTit = data.data.title + "," + data.data.orgName;
1641
							} else {
1642
								thisTit = data.data.title;
1643
							}
1644
						} else {
1645
							if (data.data.office) {
1705 1646
								if (data.data.orgName) {
1706
									thisTit = data.data.title + "," + data.data.orgName;
1647
									thisTit = data.data.office + "," + data.data.orgName;
1707 1648
								} else {
1708
									thisTit = data.data.title;
1649
									thisTit = data.data.office;
1709 1650
								}
1710 1651
							} else {
1711
								if (data.data.office) {
1712
									if (data.data.orgName) {
1713
										thisTit = data.data.office + "," + data.data.orgName;
1714
									} else {
1715
										thisTit = data.data.office;
1716
									}
1717
								} else {
1718
									if (data.data.orgName) {
1719
										thisTit = data.data.orgName;
1720
									}
1652
								if (data.data.orgName) {
1653
									thisTit = data.data.orgName;
1721 1654
								}
1722 1655
							}
1656
						}
1723 1657
1724 1658
1725
1726
							var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
1727
							var itemlist = '<a href="p.html?id=' + data.data.id +
1728
								'" class="urlgo"><div class="madiaHead useHead" style="background-image:url(' +
1729
								thisImg + ')"></div>';
1730
							itemlist += '<div class="madiaInfo">';
1731
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">' + data.data
1732
								.name + '</span><em class="authiconNew ' + userType.sty + '" title="' + userType
1733
								.title + '"></em></p>';
1734
							itemlist += '<p class="ellipsisSty h2Font">' + thisTit + '</p>';
1735
							itemlist += '<p class="h2Font ellipsisSty">' + copNum + '</p>';
1736
							itemlist += '</div></a>';
1737
							liItem.innerHTML = itemlist
1738
							liItem.setAttribute("data-id", data.data.id)
1739
1740
1741
1742
						}
1743
					},
1744
					"error": function () {
1745
						$.MsgBox.Alert('提示', '链接服务器超时')
1659
						var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
1660
						var itemlist = '<a href="p.html?id=' + data.data.id +
1661
							'" class="urlgo"><div class="madiaHead useHead" style="background-image:url(' +
1662
							thisImg + ')"></div>';
1663
						itemlist += '<div class="madiaInfo">';
1664
						itemlist += '<div class="tag-show">' + spanA + spanB + '</div>';
1665
						itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">' + data.data
1666
							.name + '</span><em class="authiconNew ' + userType.sty + '" title="' + userType
1667
							.title + '"></em></p>';
1668
						itemlist += '<p class="ellipsisSty h2Font">' + thisTit + '</p>';
1669
						itemlist += '<p class="h2Font ellipsisSty">' + copNum + '</p>';
1670
						itemlist += '</div></a>';
1671
						liItem.innerHTML = itemlist
1672
						liItem.setAttribute("data-id", data.data.id)
1746 1673
					}
1747
				});
1748
			}
1674
				},
1675
				"error": function () {
1676
					$.MsgBox.Alert('提示', '链接服务器超时')
1677
				}
1678
			});
1679
		}
1749 1680
1750 1681
1751 1682
1752 1683
1753 1684
1754
			patentListVal(true)
1755
			unpatentListVal(true)
1756
			paperListVal()
1757
		</script>
1685
		patentListVal(true)
1686
		unpatentListVal(true)
1687
		paperListVal()
1688
	</script>
1758 1689
</body>
1759 1690
1760 1691
</html>

+ 1027 - 851
e/p.html

@ -1,32 +1,39 @@
1 1
<!DOCTYPE html>
2 2
<html>
3
3 4
<head>
4
<meta charset="UTF-8">
5
<title>用户分享-科袖网</title>
6
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
7
<link rel="stylesheet" href="../css/reset.css" />
8
<link rel="stylesheet" href="../css/common.css" />
9
<link rel="stylesheet" href="../css/share.css" />
10
<style>
11
	html,body{margin:0;padding:0px;background: #F4F6F8;}
12
</style>
13
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
14
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
15
<script type="text/javascript" src="../js/public/baseUtil.js"></script>	
16
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
17
<script type="text/javascript" src="../js/public/openApp.js"></script>	
5
	<meta charset="UTF-8">
6
	<title>用户分享-科袖网</title>
7
	<meta name="viewport"
8
		content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
9
	<link rel="stylesheet" href="../css/reset.css" />
10
	<link rel="stylesheet" href="../css/common.css" />
11
	<link rel="stylesheet" href="../css/share.css" />
12
	<style>
13
		html,
14
		body {
15
			margin: 0;
16
			padding: 0px;
17
			background: #F4F6F8;
18
		}
19
	</style>
20
	<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
21
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
22
	<script type="text/javascript" src="../js/public/baseUtil.js"></script>
23
	<script type="text/javascript" src="../js/public/shareCom.js"></script>
24
	<script type="text/javascript" src="../js/public/openApp.js"></script>
18 25
</head>
19 26
20 27
<body>
21 28
	<div class="contentBody2">
22
	    <div class="showCardI">
29
		<div class="showCardI">
23 30
			<div class="cardTop">
24 31
				<div class="cardImg userCard" id="proHead"></div>
25 32
				<div class="cardInfo">
26 33
					<p><span class="h1Font" id="proName"></span><em class="authiconNew" title="" id="proAuth"></em></p>
27
					<p class="ellipsisSty h2Font"id="proOther"></p>
34
					<p class="ellipsisSty h2Font" id="proOther"></p>
28 35
					<p class="h3Font" id="proAddress"></p>
29
				</div>		
36
				</div>
30 37
			</div>
31 38
		</div>
32 39
		<div class="mainbox displayNone">
@ -53,8 +60,8 @@
53 60
			<div class="infocontit">可提供服务</div>
54 61
			<div class="infocon infoconM madiaBlock">
55 62
				<ul class="mui-table-view" id="serviceShow">
56
			        
57
			    </ul>
63
64
				</ul>
58 65
			</div>
59 66
			<div class="seeMore displayNone" id="seeMoreService"><em>查看全部 <span id="serviceNum">0</span>个</em></div>
60 67
		</div>
@ -62,7 +69,7 @@
62 69
			<div class="infocontit">可共享资源</div>
63 70
			<div class="infocon madiaBlock">
64 71
				<ul class="mui-table-view" id="resourceShow">
65
			    </ul>
72
				</ul>
66 73
			</div>
67 74
			<div class="seeMore displayNone" id="seeMoreResource"><em>查看全部 <span id="resourceNum">0</span>个</em></div>
68 75
		</div>
@ -70,14 +77,14 @@
70 77
			<div class="infocontit mui-clearfix">个人介绍 <em></em></div>
71 78
			<div class="infocon">
72 79
				<span class="breifinfo" id="breifinfo">
73
        		</span>
80
				</span>
74 81
			</div>
75 82
		</div>
76 83
		<div class="mainbox">
77 84
			<div class="infocontit">学术领域</div>
78 85
			<div class="infocon listArea">
79 86
				<ul id="subjectShow">
80
					
87
81 88
				</ul>
82 89
			</div>
83 90
		</div>
@ -91,7 +98,7 @@
91 98
			<div class="infocontit">行业领域</div>
92 99
			<div class="infocon listArea">
93 100
				<ul id="industryShow">
94
					
101
95 102
				</ul>
96 103
			</div>
97 104
		</div>
@ -99,8 +106,8 @@
99 106
			<div class="infocontit">问答</div>
100 107
			<div class="infocon infoconM madiaBlock needList">
101 108
				<ul class="mui-table-view" id="QAShow">
102
			        
103
			    </ul>
109
110
				</ul>
104 111
			</div>
105 112
			<div class="seeMore displayNone" id="seeMoreQA"><em>查看全部 <span id="QANum">0</span>个</em></div>
106 113
		</div>
@ -116,15 +123,25 @@
116 123
			<div class="infocontit">专利</div>
117 124
			<div class="infocon madiaBlock">
118 125
				<ul class="mui-table-view" id="patentShow">
119
			    </ul>
126
				</ul>
120 127
			</div>
121 128
			<div class="seeMore displayNone" id="seeMorePatent"><em>查看全部 <span id="patentNum">0</span>项</em></div>
122 129
		</div>
130
131
		<div class="mainbox displayNone">
132
			<div class="infocontit">非专利</div>
133
			<div class="infocon madiaBlock">
134
				<ul class="mui-table-view" id="proUnPatent">
135
				</ul>
136
			</div>
137
			<div class="seeMore displayNone" id="seeMorePatent"><em>查看全部 <span id="propatentNum">0</span>项</em></div>
138
		</div>
139
123 140
		<div class="mainbox displayNone">
124 141
			<div class="infocontit">论文</div>
125 142
			<div class="infocon madiaBlock">
126 143
				<ul class="mui-table-view" id="paperShow">
127
			    </ul>
144
				</ul>
128 145
			</div>
129 146
			<div class="seeMore displayNone" id="seeMorePaper"><em>查看全部 <span id="paperNum">0</span>篇</em></div>
130 147
		</div>
@ -133,7 +150,7 @@
133 150
			<div class="infocontit">合作专家</div>
134 151
			<div class="infocon madiaBlock">
135 152
				<ul class="mui-table-view" id="relatePro">
136
			    </ul>
153
				</ul>
137 154
			</div>
138 155
		</div>
139 156
		<!--相关文章-->
@ -149,884 +166,1043 @@
149 166
			<div class="infocontit">您可能感兴趣的专家</div>
150 167
			<div class="infocon madiaBlock">
151 168
				<ul class="mui-table-view" id="likePro">
152
			    </ul>
169
				</ul>
153 170
			</div>
154 171
		</div>
155
		
156
	    <div class="shareEcode">
172
173
		<div class="shareEcode">
157 174
			<img class="Ecodecon" src="../images/ecordCard.jpg" />
158 175
			<div class="Ecodeinfo">
159
				<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
176
				<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button
177
						class="frmbtn frmactive">下载移动客户端</button></a>
160 178
			</div>
161
	    </div>
179
		</div>
162 180
	</div>
163
<script type="text/javascript">
164
$(document).ready(function() {
165
	var imgUrl = "http://www.ekexiu.com/images/logo180.png";
166
	var lineLink = document.location.href;
167
	var descContent;
168
	var shareTitle;
169
	var appid = '';
170
	var proId = GetQueryString("id");
171
	
172
	function userMessage(id) {
173
		$.ajax({
174
			type:"get",
175
			url:"/ajax/professor/info/"+ proId,
176
			async:true,
177
			success: function(data) {
178
				var $info = data.data;
179
				if(data.success) {
180
					if($info.hasHeadImage){
181
						$("#proHead").css("background-image","url(/images/head/"+ $info.id +"_l.jpg)");
182
					}
183
					$("#proName").text($info.name);
184
					var oStyS=autho($info.authType,$info.orgAuth,$info.authStatus);
185
					$("#proAuth").addClass(oStyS.sty); $("#proAuth").attr("title",oStyS.title);
186
					if($info.address){
187
						$("#proAddress").html('<em class="mui-icon iconfontnew icon-address"></em> ' + $info.address);
188
					}
189
					var proOther="";
190
					if($info.orgName){
191
						if($info.department){
192
							if($info.title){
193
								proOther = $info.title + "," + $info.department + "," + $info.orgName
194
							}else{
195
								if($info.office){
196
									proOther = $info.office + "," + $info.department + "," + $info.orgName
197
								}else{
198
									proOther = $info.department + "," + $info.orgName
199
								}
181
	<script type="text/javascript">
182
		$(document).ready(function () {
183
			var imgUrl = "http://www.ekexiu.com/images/logo180.png";
184
			var lineLink = document.location.href;
185
			var descContent;
186
			var shareTitle;
187
			var appid = '';
188
			var proId = GetQueryString("id");
189
190
191
192
			function unpatentShow() { //专家非专利
193
				return new Promise(function (resolve, reject) {
194
					$.ajax({
195
						url: '/ajax/resResult/pq/researcher',
196
						type: 'get',
197
						data: {
198
							status: [1],
199
							id: proId,
200
							pageSize: 10,
201
							pageNo: 1
202
						},
203
						success: function (res) {
204
							resolve(res)
205
							var $info = res.data.data
206
							if ($info.length > 1) {
207
								$('#propatentNum').parent().parent().removeClass('displayNone')
208
								$('#propatentNum').text($info.length)
200 209
							}
201
						}else{
202
							proOther = $info.orgName
203 210
						}
211
					})
212
				})
213
			}
214
			function person(dataStr) { //专家非专利
215
				return new Promise(function (resolve, reject) {
216
					$.ajax({
217
						url: '/ajax/resResult/researcher',
218
						type: 'get',
219
						data: {
220
							id: dataStr.id
221
						},
222
						success: function (res) {
223
							var $info = res.data
224
							for (var i = 0; i < $info.length; i++) {
225
								document.getElementById('proUnPatent').parentNode.parentNode
226
									.classList.remove(
227
										"displayNone");
228
								var li = document.createElement("li");
229
								li.setAttribute("data-id", dataStr.id);
230
								li.className = "mui-table-view-cell";
231
								li.innerHTML =
232
									'<div class="flexCenter OflexCenter mui-clearfix">' +
233
									'<div class="madiaHead paperHead"></div>' +
234
									'<div class="madiaInfo OmadiaInfo">' +
235
									'<p class="ellipsisSty-2 h1Font">' + dataStr.name +
236
									'</p>' +
237
									'<p class="ellipsisSty h2Font dis">' + $info[i].name +
238
									'</p>' +
239
									//.substring(0, dataStr[i].authors.length - 1)    
240
									'</div>' +
241
									'</div>'
242
								document.getElementById('proUnPatent').appendChild(li);
243
							}
244
						}
245
					})
246
				})
247
			}
248
			unpatentShow().then( //专家非专利
249
				res => {
250
					var $info = res.data.data
251
					for (var i = 0; i < $info.length; i++) {
252
						return person($info[0])
204 253
					}
205
					$("#proOther").text(proOther);
206
					var llqtitle=$info.name + "-" + proOther.replace(/,/gi,"-");//修改浏览器title信息
207
					document.title = llqtitle;
254
				}
255
			)
208 256
209
					//个人简介
210
					if($info.descp) {
211
						$("#breifinfo").text($info.descp);
212
					}else{
213
						document.getElementById("breifinfo").parentNode.style.display = "none";
214
					}
215
					//学术领域					
216
					if($info.subject) {
217
						indu($info.subject, 'subjectShow')
218
					} else {
219
						document.getElementById("subjectShow").parentNode.parentNode.style.display = "none";
220
					}
221
					//研究方向
222
					if($info.researchAreas.length) {
223
						researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
224
					} else {
225
						document.getElementById("reserachMess").parentNode.style.display = "none";
226
					}
227
					//行业领域	
228
					if($info.industry) {
229
						indu($info.industry, 'industryShow')
230
					} else {
231
						document.getElementById("industryShow").parentNode.parentNode.style.display = "none";
232
					}
233 257
234
					//微信再次分享
235
					shareTitle = document.getElementById("proName").innerText;
236
					descContent = document.getElementById("subjectShow").innerText.substring(0,70);
237
					
238
				}
239
			},
240
			error: function() {
258
259
260
261
262
263
264
265
266
			function userMessage(id) {
267
				$.ajax({
268
					type: "get",
269
					url: "/ajax/professor/info/" + proId,
270
					async: true,
271
					success: function (data) {
272
						var $info = data.data;
273
						if (data.success) {
274
							if ($info.hasHeadImage) {
275
								$("#proHead").css("background-image", "url(/images/head/" + $info.id +
276
									"_l.jpg)");
277
							}
278
							$("#proName").text($info.name);
279
							var oStyS = autho($info.authType, $info.orgAuth, $info.authStatus);
280
							$("#proAuth").addClass(oStyS.sty);
281
							$("#proAuth").attr("title", oStyS.title);
282
							if ($info.address) {
283
								$("#proAddress").html(
284
									'<em class="mui-icon iconfontnew icon-address"></em> ' + $info
285
									.address);
286
							}
287
							var proOther = "";
288
							if ($info.orgName) {
289
								if ($info.department) {
290
									if ($info.title) {
291
										proOther = $info.title + "," + $info.department + "," + $info
292
											.orgName
293
									} else {
294
										if ($info.office) {
295
											proOther = $info.office + "," + $info.department + "," + $info
296
												.orgName
297
										} else {
298
											proOther = $info.department + "," + $info.orgName
299
										}
300
									}
301
								} else {
302
									proOther = $info.orgName
303
								}
304
							}
305
							$("#proOther").text(proOther);
306
							var llqtitle = $info.name + "-" + proOther.replace(/,/gi, "-"); //修改浏览器title信息
307
							document.title = llqtitle;
308
309
							//个人简介
310
							if ($info.descp) {
311
								$("#breifinfo").text($info.descp);
312
							} else {
313
								document.getElementById("breifinfo").parentNode.style.display = "none";
314
							}
315
							//学术领域					
316
							if ($info.subject) {
317
								indu($info.subject, 'subjectShow')
318
							} else {
319
								document.getElementById("subjectShow").parentNode.parentNode.style
320
									.display = "none";
321
							}
322
							//研究方向
323
							if ($info.researchAreas.length) {
324
								researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
325
							} else {
326
								document.getElementById("reserachMess").parentNode.style.display = "none";
327
							}
328
							//行业领域	
329
							if ($info.industry) {
330
								indu($info.industry, 'industryShow')
331
							} else {
332
								document.getElementById("industryShow").parentNode.parentNode.style
333
									.display = "none";
334
							}
335
336
							//微信再次分享
337
							shareTitle = document.getElementById("proName").innerText;
338
							descContent = document.getElementById("subjectShow").innerText.substring(0,
339
								70);
340
341
						}
342
					},
343
					error: function () {}
344
				});
241 345
			}
242
		});
243
	}
244
	//查询研究方向	
245
	function getRecords($researchAreaLogs, caption) {
246
		var ret = [];
247
		var t = 0;
248
		for(var i = 0; i < $researchAreaLogs.length; i++) {
249
			if(caption == $researchAreaLogs[i].caption) {
250
				ret[t] = {
251
					id: $researchAreaLogs[i].opreteProfessorId,
252
					img: $researchAreaLogs[i].hasHeadImage
346
			//查询研究方向	
347
			function getRecords($researchAreaLogs, caption) {
348
				var ret = [];
349
				var t = 0;
350
				for (var i = 0; i < $researchAreaLogs.length; i++) {
351
					if (caption == $researchAreaLogs[i].caption) {
352
						ret[t] = {
353
							id: $researchAreaLogs[i].opreteProfessorId,
354
							img: $researchAreaLogs[i].hasHeadImage
355
						}
356
						t++;
357
					}
253 358
				}
254
				t++;
359
				return ret;
255 360
			}
256
		}
257
		return ret;
258
	}
259
	var resear = "";
260
	function researchAreaShow($datas, $datarecords) {
261
		if($datas != undefined && $datas.length != 0) {
262
			var html = [];
263
			for(var i = 0; i < $datas.length; ++i) {
264
				var $data = $datas[i];
265
				var $photos = [];
266
				//获取头像					
267
				if($datarecords.length > 0) {
268
					$photos = getRecords($datarecords, $data.caption);
269
				}
270
				var showDiv = "<div class='listbox'><div class='listbrowse ellipsisSty'dataCaption="+$data.caption+"><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='likenum' dataCaption="+$data.caption+">"
271
				
272
				if($photos.length < 4) {
273
					for(var j = 0; j < $photos.length; ++j) {
274
						if($photos[j].img) {
275
							showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/head/" + $photos[j].id + "_m.jpg'></span>";
276
						} else {
277
							showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
361
			var resear = "";
362
363
			function researchAreaShow($datas, $datarecords) {
364
				if ($datas != undefined && $datas.length != 0) {
365
					var html = [];
366
					for (var i = 0; i < $datas.length; ++i) {
367
						var $data = $datas[i];
368
						var $photos = [];
369
						//获取头像					
370
						if ($datarecords.length > 0) {
371
							$photos = getRecords($datarecords, $data.caption);
278 372
						}
279
					}
280
				} else {
281
					for(var j = $photos.length - 2; j < $photos.length; ++j) {
282
						if($photos[j].img) {
283
							showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/head/" + $photos[j].id + "_m.jpg'></span>";
373
						var showDiv = "<div class='listbox'><div class='listbrowse ellipsisSty'dataCaption=" + $data
374
							.caption + "><span class='like'>" + $data.count + "</span>" + $data.caption +
375
							"</div><div class='likenum' dataCaption=" + $data.caption + ">"
376
377
						if ($photos.length < 4) {
378
							for (var j = 0; j < $photos.length; ++j) {
379
								if ($photos[j].img) {
380
									showDiv +=
381
										"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
382
										$photos[j].id + "_m.jpg'></span>";
383
								} else {
384
									showDiv +=
385
										"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
386
								}
387
							}
284 388
						} else {
285
							showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
389
							for (var j = $photos.length - 2; j < $photos.length; ++j) {
390
								if ($photos[j].img) {
391
									showDiv +=
392
										"<span class='likepeople userRadius'><img class='like-h' src='../images/head/" +
393
										$photos[j].id + "_m.jpg'></span>";
394
								} else {
395
									showDiv +=
396
										"<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
397
								}
398
							}
399
							showDiv +=
400
								"<span class='mui-icon iconfont icon-more likepeople likemore userRadius'></span>";
286 401
						}
402
						showDiv += "</div></div></div>";
403
						html.push(showDiv);
404
						resear += (i + 1) + "." + $data.caption + " ";
287 405
					}
288
					showDiv += "<span class='mui-icon iconfont icon-more likepeople likemore userRadius'></span>";
406
					document.getElementById("reserachMess").innerHTML = html.join('')
289 407
				}
290
				showDiv += "</div></div></div>";
291
				html.push(showDiv);
292
				resear += (i + 1) + "." + $data.caption + " ";
293 408
			}
294
			document.getElementById("reserachMess").innerHTML = html.join('')
295
		}
296
	}
297
	/*应用行业及领域及企业纸质*/
298
	function indu(oString, oSelector) {
299
		var arr = oString.split(",");
300
		var oArr = new Array();
301
		var i;
302
		for(i in arr) {
303
			oArr.push('<li>' + arr[i] + '</li>');
304
		}
305
		document.getElementById(oSelector).innerHTML = oArr.join("");
306
	}
307
	var rows = 1
308
	var oAjax = function(url, dataS, otype, oFun) {
309
			$.ajax({
310
				url:url,
311
				dataType: 'json',
312
				type: otype,
313
				data: dataS,
314
				traditional: true,
315
				success: function(res) {
316
					if(res.success) {
317
						oFun(res)
318
					}
319
				}
320
			});
321
		},	
322
		demandListVal=function() {
323
			var aimId="demandShow"
324
			oAjax("/ajax/demand/pq",{
325
				"state":[1],
326
				"uid":proId,
327
				"pageSize":5
328
			}, "get", function(res){
329
				var obj = res.data.data;
330
				if(obj.length > 0) {
331
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
332
					for(var i = 0; i < obj.length; i++) {
333
						var li = document.createElement("li");
334
						li.setAttribute("data-id",obj[i].id);
335
						var needDate=obj[i].invalidDay;
336
						var lastDate=TimeTr(needDate);
337
						li.className = "mui-table-view-cell";
338
						var oString = '<div class="madiaInfo">'
339
							oString += '<p class="h1Font ellipsisSty-2">'+obj[i].title+'</p>';
340
							oString += '<p class="h2Font ellipsisSty-5">'+obj[i].descp+'</p>'
341
							oString += '<div class="showli ellipsisSty h3Font">'
342
							oString += '<span>'+obj[i].province+'</span>'
343
							if(obj[i].duration!=0){oString += '<span>预期 '+demandDuration[obj[i].duration]+'</span>'}
344
							if(obj[i].cost!=0){oString += '<span>预算 '+demandCost[obj[i].cost]+'</span>'}
345
							oString += '<span>有效期至'+lastDate+' </span>'
346
						    oString += '</div>'
347
							oString += '</div>'
348
						li.innerHTML=oString
349
						document.getElementById(aimId).appendChild(li);
350
					}
409
			/*应用行业及领域及企业纸质*/
410
			function indu(oString, oSelector) {
411
				var arr = oString.split(",");
412
				var oArr = new Array();
413
				var i;
414
				for (i in arr) {
415
					oArr.push('<li>' + arr[i] + '</li>');
351 416
				}
352
			})
353
		},
354
        articalListVal=function(){
355
			var aimId="articelShow"
356
			oAjax("/ajax/article/publish",{
357
				"category": "1",
358
				"owner":proId,
359
				"rows": rows
360
			}, "get", function(res){
361
				var obj = res.data;
362
				if(obj.length > 0) {
363
					// document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
364
			
365
					for(var i = 0; i < obj.length; i++) {
366
						var hasImg="../images/default-artical.jpg"
367
						if(obj[i].articleImg) {
368
							hasImg="/data/article/" + obj[i].articleImg
417
				document.getElementById(oSelector).innerHTML = oArr.join("");
418
			}
419
			var rows = 1
420
			var oAjax = function (url, dataS, otype, oFun) {
421
					$.ajax({
422
						url: url,
423
						dataType: 'json',
424
						type: otype,
425
						data: dataS,
426
						traditional: true,
427
						success: function (res) {
428
							if (res.success) {
429
								oFun(res)
430
							}
369 431
						}
370
						var li = document.createElement("li");
371
						li.setAttribute("data-id", obj[i].articleId);
372
						li.className = "mui-table-view-cell";
373
						li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
374
							'<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
375
							'<div class="madiaInfo OmadiaInfo">' +
376
							'<p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>' +
377
							'<p class="h2Font ellipsisSty"><span class="time">'+commenTime(obj[i].publishTime)+'</span></p>'+
378
							'</div>' +
379
							'</div>'
380
						document.getElementById(aimId).appendChild(li);
381
					}
382
				}
383
			})
384
		},
385
		resourceListVal=function(){
386
			var aimId="resourceShow"
387
			oAjax("/ajax/resource/publish",{
388
				"category": "1",
389
				"owner":proId,
390
				"rows": rows
391
			}, "get", function(res){
392
				var obj = res.data;
393
				if(obj.length > 0) {
394
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
395
					for(var i = 0; i < obj.length; i++) {
396
						var cnt="", hasImg="../images/default-resource.jpg"
397
						if(obj[i].images.length) {
398
							hasImg='/data/resource/' + obj[i].images[0].imageSrc 
432
					});
433
				},
434
				demandListVal = function () {
435
					var aimId = "demandShow"
436
					oAjax("/ajax/demand/pq", {
437
						"state": [1],
438
						"uid": proId,
439
						"pageSize": 5
440
					}, "get", function (res) {
441
						var obj = res.data.data;
442
						if (obj.length > 0) {
443
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
444
								"displayNone");
445
							for (var i = 0; i < obj.length; i++) {
446
								var li = document.createElement("li");
447
								li.setAttribute("data-id", obj[i].id);
448
								var needDate = obj[i].invalidDay;
449
								var lastDate = TimeTr(needDate);
450
								li.className = "mui-table-view-cell";
451
								var oString = '<div class="madiaInfo">'
452
								oString += '<p class="h1Font ellipsisSty-2">' + obj[i].title + '</p>';
453
								oString += '<p class="h2Font ellipsisSty-5">' + obj[i].descp + '</p>'
454
								oString += '<div class="showli ellipsisSty h3Font">'
455
								oString += '<span>' + obj[i].province + '</span>'
456
								if (obj[i].duration != 0) {
457
									oString += '<span>预期 ' + demandDuration[obj[i].duration] + '</span>'
458
								}
459
								if (obj[i].cost != 0) {
460
									oString += '<span>预算 ' + demandCost[obj[i].cost] + '</span>'
461
								}
462
								oString += '<span>有效期至' + lastDate + ' </span>'
463
								oString += '</div>'
464
								oString += '</div>'
465
								li.innerHTML = oString
466
								document.getElementById(aimId).appendChild(li);
467
							}
399 468
						}
400
						if(obj[i].supportedServices){
401
							cnt="用途:"+ obj[i].supportedServices
469
					})
470
				},
471
				articalListVal = function () {
472
					var aimId = "articelShow"
473
					oAjax("/ajax/article/publish", {
474
						"category": "1",
475
						"owner": proId,
476
						"rows": rows
477
					}, "get", function (res) {
478
						var obj = res.data;
479
						if (obj.length > 0) {
480
							// document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
481
482
							for (var i = 0; i < obj.length; i++) {
483
								var hasImg = "../images/default-artical.jpg"
484
								if (obj[i].articleImg) {
485
									hasImg = "/data/article/" + obj[i].articleImg
486
								}
487
								var li = document.createElement("li");
488
								li.setAttribute("data-id", obj[i].articleId);
489
								li.className = "mui-table-view-cell";
490
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
491
									'<div class="madiaHead resouseHead" style="background-image:url(' +
492
									hasImg + ')"></div>' +
493
									'<div class="madiaInfo OmadiaInfo">' +
494
									'<p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>' +
495
									'<p class="h2Font ellipsisSty"><span class="time">' + commenTime(obj[i]
496
										.publishTime) + '</span></p>' +
497
									'</div>' +
498
									'</div>'
499
								document.getElementById(aimId).appendChild(li);
500
							}
402 501
						}
403
						var li = document.createElement("li");
404
						li.setAttribute("data-id", obj[i].resourceId);
405
						li.className = "mui-table-view-cell";
406
						li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
407
							'<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
408
							'<div class="madiaInfo OmadiaInfo">' +
409
							'<p class="ellipsisSty-2 h1Font">' + obj[i].resourceName + '</p>' +
410
							'<p class="ellipsisSty h2Font">' + cnt+ '</p>' +
411
							'</div>' +
412
							'</div>'
413
						document.getElementById(aimId).appendChild(li);
414
					}
415
				}
416
			})
417
		},
418
		serviceListVal=function(){
419
			var aimId="serviceShow"
420
			oAjax("/ajax/ware/publish",{
421
				"category":"1",
422
				"owner":proId,
423
				"rows": rows
424
			}, "get", function(res){
425
				var obj = res.data;
426
				if(obj.length > 0) {
427
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
428
					for(var i = 0; i < obj.length; i++) {
429
						var cnt="", hasImg="../images/default-service.jpg"
430
						if(obj[i].images) {
431
							var subs = strToAry(obj[i].images)
432
							if(subs.length > 0) {
433
								hasImg="/data/ware" + subs[0]
502
					})
503
				},
504
				resourceListVal = function () {
505
					var aimId = "resourceShow"
506
					oAjax("/ajax/resource/publish", {
507
						"category": "1",
508
						"owner": proId,
509
						"rows": rows
510
					}, "get", function (res) {
511
						var obj = res.data;
512
						if (obj.length > 0) {
513
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
514
								"displayNone");
515
							for (var i = 0; i < obj.length; i++) {
516
								var cnt = "",
517
									hasImg = "../images/default-resource.jpg"
518
								if (obj[i].images.length) {
519
									hasImg = '/data/resource/' + obj[i].images[0].imageSrc
520
								}
521
								if (obj[i].supportedServices) {
522
									cnt = "用途:" + obj[i].supportedServices
523
								}
524
								var li = document.createElement("li");
525
								li.setAttribute("data-id", obj[i].resourceId);
526
								li.className = "mui-table-view-cell";
527
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
528
									'<div class="madiaHead resouseHead" style="background-image:url(' +
529
									hasImg + ')"></div>' +
530
									'<div class="madiaInfo OmadiaInfo">' +
531
									'<p class="ellipsisSty-2 h1Font">' + obj[i].resourceName + '</p>' +
532
									'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
533
									'</div>' +
534
									'</div>'
535
								document.getElementById(aimId).appendChild(li);
434 536
							}
435 537
						}
436
						if(obj[i].cnt){
437
							cnt="内容:"+obj[i].cnt
538
					})
539
				},
540
				serviceListVal = function () {
541
					var aimId = "serviceShow"
542
					oAjax("/ajax/ware/publish", {
543
						"category": "1",
544
						"owner": proId,
545
						"rows": rows
546
					}, "get", function (res) {
547
						var obj = res.data;
548
						if (obj.length > 0) {
549
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
550
								"displayNone");
551
							for (var i = 0; i < obj.length; i++) {
552
								var cnt = "",
553
									hasImg = "../images/default-service.jpg"
554
								if (obj[i].images) {
555
									var subs = strToAry(obj[i].images)
556
									if (subs.length > 0) {
557
										hasImg = "/data/ware" + subs[0]
558
									}
559
								}
560
								if (obj[i].cnt) {
561
									cnt = "内容:" + obj[i].cnt
562
								}
563
								var li = document.createElement("li");
564
								li.setAttribute("data-id", obj[i].id);
565
								li.className = "mui-table-view-cell";
566
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
567
									'<div class="madiaHead resouseHead" style="background-image:url(' +
568
									hasImg + ')"></div>' +
569
									'<div class="madiaInfo OmadiaInfo">' +
570
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
571
									'<p class="ellipsisSty h2Font">' + cnt + '</p>' +
572
									'</div>' +
573
									'</div>'
574
								document.getElementById(aimId).appendChild(li);
575
							}
438 576
						}
439
						var li = document.createElement("li");
440
						li.setAttribute("data-id", obj[i].id);
441
						li.className = "mui-table-view-cell";
442
						li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
443
							'<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
444
							'<div class="madiaInfo OmadiaInfo">' +
445
							'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
446
							'<p class="ellipsisSty h2Font">' + cnt+ '</p>' +
447
							'</div>' +
448
							'</div>'
449
						document.getElementById(aimId).appendChild(li);
450
					}
451
				}
452
			})
453
		},
454
		patentListVal=function(){
455
			var aimId="patentShow"
456
			oAjax("/ajax/ppatent/professor",{
457
				"owner":proId,
458
				"rows": rows
459
			}, "get", function(res){
460
				var obj = res.data;
461
				if(obj.length > 0) {
462
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
463
					for(var i = 0; i < obj.length; i++) {
464
						var li = document.createElement("li");
465
						li.setAttribute("data-id", obj[i].id);
466
						li.className = "mui-table-view-cell";
467
						li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
468
							'<div class="madiaHead patentHead"></div>' +
469
							'<div class="madiaInfo OmadiaInfo">' +
470
							'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
471
							'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>' +
472
							'</div>' +
473
							'</div>'
474
						document.getElementById(aimId).appendChild(li);
475
					}
476
				}
477
			})
478
		},
479
		paperListVal=function(){   //论文
480
			var aimId="paperShow"
481
			oAjax("/ajax/ppaper/professor",{
482
				"owner":proId,
483
				"rows": rows
484
			}, "get", function(res){
485
				var obj = res.data;
486
				console.log(res.data);
487
				
488
				if(obj.length > 0) {
489
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
490
					for(var i = 0; i < obj.length; i++) {
491
						var li = document.createElement("li");
492
							li.setAttribute("data-id", obj[i].id);
493
							li.className = "mui-table-view-cell";
494
							li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
495
								'<div class="madiaHead paperHead"></div>' +
496
								'<div class="madiaInfo OmadiaInfo">' +
497
								'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
498
								'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>' +
499
								'</div>' +
500
								'</div>'
501
						document.getElementById(aimId).appendChild(li);
502
					}
503
				}
504
				
505
			})
506
		},
577
					})
578
				},
579
				patentListVal = function () {
580
					var aimId = "patentShow"
581
					oAjax("/ajax/ppatent/professor", {
582
						"owner": proId,
583
						"rows": rows
584
					}, "get", function (res) {
585
						var obj = res.data;
586
						if (obj.length > 0) {
587
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
588
								"displayNone");
589
							for (var i = 0; i < obj.length; i++) {
590
								var li = document.createElement("li");
591
								li.setAttribute("data-id", obj[i].id);
592
								li.className = "mui-table-view-cell";
593
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
594
									'<div class="madiaHead patentHead"></div>' +
595
									'<div class="madiaInfo OmadiaInfo">' +
596
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
597
									'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
598
										.authors.length - 1) + '</p>' +
599
									'</div>' +
600
									'</div>'
601
								document.getElementById(aimId).appendChild(li);
602
							}
603
						}
604
					})
605
				},
606
				paperListVal = function () { //论文
607
					var aimId = "paperShow"
608
					oAjax("/ajax/ppaper/professor", {
609
						"owner": proId,
610
						"rows": rows
611
					}, "get", function (res) {
612
						var obj = res.data;
613
						console.log(res.data);
507 614
615
						if (obj.length > 0) {
616
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
617
								"displayNone");
618
							for (var i = 0; i < obj.length; i++) {
619
								var li = document.createElement("li");
620
								li.setAttribute("data-id", obj[i].id);
621
								li.className = "mui-table-view-cell";
622
								li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
623
									'<div class="madiaHead paperHead"></div>' +
624
									'<div class="madiaInfo OmadiaInfo">' +
625
									'<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
626
									'<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i]
627
										.authors.length - 1) + '</p>' +
628
									'</div>' +
629
									'</div>'
630
								document.getElementById(aimId).appendChild(li);
631
							}
632
						}
508 633
634
					})
635
				},
509 636
510 637
511
		answerListVal=function(){
512
        	var aimId="QAShow"
513
			oAjax("/ajax/question/answer/bySelf",{
514
                "uid":proId,
515
                "rows":rows
516
			}, "get", function(res){
517
				var obj = res.data;
518
				if(obj.length > 0) {
519
					document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
520
					for(var i = 0; i < obj.length; i++) {
521
						var hd = "";
522
		                if (obj[i].agree > 0) {
523
		                    hd = '<span>赞 ' + obj[i].agree + '</span>'
524
		                }
525
						var li = document.createElement("li");
526
							li.setAttribute("data-id", obj[i].id);
527
							li.className = "mui-table-view-cell";
528
							li.innerHTML = '<div class="madiaInfo">' +
529
			                    '<p class="h1Font ellipsisSty-2 qa-question"></p>' +
530
			                    '<div class="flexCenter qa-owner"></div>' +
531
			                    '<div class="qa-con ellipsisSty-5">' + listConCut(obj[i].cnt) + '</div>' +
532
			                    '<div class="showliSpan ellipsisSty">' +
533
			                    '<span>' + commenTime(obj[i].createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span>'+
534
			                    '</div>' +
535
			                    '</div>'
536
						document.getElementById(aimId).appendChild(li);
537
						var $str = $(li);
538
		                questioninfo(obj[i].qid, $str);
539
		                proinfo(obj[i].uid, $str);
540
						leaveMsgCount(obj[i].id,"4", $str);
541
					}
542
				}
543
			})
544
    	},
545
    	proinfo=function(pid, $str) {
546
			oAjax("/ajax/professor/baseInfo/" + pid,{}, "get", function(data){
547
                var dataStr = data.data
548
                var baImg = "../images/default-photo.jpg";
549
                if (dataStr.hasHeadImage == 1) {
550
                    baImg = "/images/head/" + dataStr.id + "_l.jpg";
551
                }
552
                var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
553
                var os = "";
554
                if (dataStr.title) {
555
                    if (dataStr.orgName) {
556
                        os = dataStr.title + "," + dataStr.orgName;
557
                    } else {
558
                        os = dataStr.title;
559
                    }
560
                } else {
561
                    if (dataStr.office) {
562
                        if (dataStr.orgName) {
563
                            os = dataStr.office + "," + dataStr.orgName;
564
                        } else {
565
                            os = dataStr.office;
566
                        }
567
                    } else {
568
                        if (dataStr.orgName) {
569
                            os = dataStr.orgName;
570
                        }
571
                    }
572
                }
573
                var str = '<div class="owner-head useHead" style="background-image:url(' + baImg + ')"></div>' +
574
                    '<div class="owner-info">' +
575
                    '<div class="owner-name"><span class="h1Font">' + dataStr.name + '</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title + '"></em></div>' +
576
                    '<div class="owner-tit ellipsisSty h2Font">' + os + '</div>' +
577
                    '</div>'
578
                $str.find(".qa-owner").html(str)
579
	        });
580
	    },
581
	    questioninfo=function(qid, $str) {
582
	        oAjax("/ajax/question/qo",{
583
	        	id:qid
584
	        }, "get", function(data){
585
                $str.find(".qa-question").html(data.data.title);
586
                if(data.data.pageViews>0){
587
                    $str.find(".qaPageview").html("阅读量 "+data.data.pageViews);
588
                }else{
589
                    $str.find(".qaPageview").hide()
590
                }
591
	        });
592
	    },
593
		queryPubCount=function(){
594
			oAjax("/ajax/article/count/publish",{//文章总数
595
				"owner": proId,
596
				"category":"1"
597
			}, "GET", function(data){
598
				if(data.data>rows){
599
					$("#seeMoreArtical").removeClass("displayNone")
600
					$("#articalNum").text(data.data);
601
				}
602
			});
603
			oAjax("/ajax/resource/count/publish",{//资源总数
604
				"owner": proId,
605
				"category":"1"
606
			}, "GET", function(data){
607
				if(data.data>rows){
608
					$("#seeMoreResource").removeClass("displayNone")
609
					$("#resourceNum").text(data.data);
610
				}
611
			});
612
			oAjax("/ajax/ware/count/publish",{//服务总数
613
				"owner": proId,
614
				"category":"1"
615
			}, "GET", function(data){
616
				if(data.data>rows){
617
					$("#seeMoreService").removeClass("displayNone")
618
					$("#serviceNum").text(data.data);
619
				}
620
			});
621
			oAjax("/ajax/ppatent/count/publish",{//专利总数
622
				"owner": proId,
623
			}, "GET", function(data){
624
				if(data.data>rows){
625
					$("#seeMorePatent").removeClass("displayNone")
626
					$("#patentNum").text(data.data);
627
				}
628
			});
629
			oAjax("/ajax/ppaper/count/publish",{//论文总数
630
				"owner": proId,
631
			}, "GET", function(data){
632
				if(data.data>rows){
633
					$("#seeMorePaper").removeClass("displayNone")
634
					$("#paperNum").text(data.data);
635
				}
636
			});
637
			oAjax("/ajax/question/answer/bySelf/count",{//回答总数
638
				"uid": proId,
639
			}, "GET", function(data){
640
				if(data.data>rows){
641
					$("#seeMoreQA").removeClass("displayNone")
642
					$("#QANum").text(data.data);
643
				}
644
			});
645
		},
646
		bindClickFun=function(){
647
			var this_="../html/userInforShow.html?proid="+proId;
648
			wcFresh(this_);
649
			$("body").on("click",".seeMore,#goCmpBrief",function(){
650
				isInstalled(this_,true);
651
				$(this).addClass("activeThis");
652
			})
653
			$('#articelShow,#relateArt').on('click', 'li', function() {
654
				var id = this.getAttribute("data-id");
655
				location.href="http://" + window.location.host + "/e/a.html?id=" + id;
656
				$(this).addClass("activeThis");
657
			})
658
			$('#resourceShow').on('click', 'li', function() {
659
				var id = this.getAttribute("data-id");
660
				location.href="http://" + window.location.host + "/e/r.html?id=" + id;
661
				$(this).addClass("activeThis");
662
			})
663
			$('#paperShow').on('click', 'li', function() {
664
				var id = this.getAttribute("data-id");
665
				location.href="http://" + window.location.host + "/e/l.html?id=" + id;
666
				$(this).addClass("activeThis");
667
			})
668
			$('#patentShow').on('click', 'li', function() {
669
				var id = this.getAttribute("data-id");
670
				location.href="http://" + window.location.host + "/e/z.html?id=" + id;
671
				$(this).addClass("activeThis");
672
			})
673
			$('#demandShow').on('click', 'li', function() {
674
				var id = this.getAttribute("data-id");
675
				location.href="http://" + window.location.host + "/e/d.html?id=" + id;
676
				$(this).addClass("activeThis");
677
			})
678
			$('#serviceShow').on('click', 'li', function() {
679
				var id = this.getAttribute("data-id");
680
				location.href="http://" + window.location.host + "/e/s.html?id=" + id;
681
				$(this).addClass("activeThis");
682
			})
683
		}
684
    
685
	userMessage(proId);
686
	demandListVal()
687
	serviceListVal()
688
	resourceListVal()
689
	articalListVal()
690
	patentListVal()
691
	paperListVal()
692
	answerListVal()
693
	relevantExperts();//合作专家
694
	// relevantarticalList();//相关文章
695
	likeExperts();//感兴趣专家
696
	bindClickFun()
697
	queryPubCount();
698
	pageViewLog(proId,1);
699
	
700
    //合作专家
701
	function relevantExperts(){
702
		$.ajax({
703
			"url": "/ajax/professor/coadjutant",
704
			"type": "get",
705
			"dataType" : "json",
706
			"data" :{"id":proId},
707
			"success": function(data) {
708
				if(data.success && data.data) {
709
					console.log(data)
710
					var lengthT;
711
					if(data.data.length>5){
712
						lengthT=5;
713
					}else{
714
						lengthT=data.data.length
715
					}
716
					for(var i = 0; i < lengthT; i++) {
717
						var ExpId = data.data[i].professorId;
718
						var paperN=data.data[i].paperCount;
719
						var patentN=data.data[i].patentCount;
720
						var liItem=document.createElement("li");
721
						liItem.className="mui-table-view-cell flexCenter";
722
						document.getElementById("relatePro").appendChild(liItem);
723
						relExpertsList(ExpId,paperN,patentN,liItem);
724
					}
725
					
726
				}
727
			},
728
			"error": function() {
729
				$.MsgBox.Alert('提示', '链接服务器超时')
730
			}
731
		});
732
	}
733
	function relExpertsList(Id,numL,numZ,liItem){
734
		$.ajax({
735
			"url" : "/ajax/professor/info/"+Id,
736
			"type" :  "GET" ,
737
			"dataType" : "json",
738
			"success" : function(data) {
739
				if (data.success && data.data!=""){
740
					document.getElementById("relatePro").parentNode.parentNode.classList.remove("displayNone");
741
					var thisTit,thisImg,copNum=""
742
					if(data.data.hasHeadImage == 1) {
743
						thisImg="/images/head/" + data.data.id + "_l.jpg);"
744
					}else{
745
						thisImg="../images/default-photo.jpg);"
746
					}
747
					if(numL){
748
						if(numZ){
749
							copNum="合作:"+numZ+"项专利,"+numL+"篇论文"
750
						}else{
751
							copNum="合作:"+numL+"篇论文"
638
639
640
				answerListVal = function () {
641
					var aimId = "QAShow"
642
					oAjax("/ajax/question/answer/bySelf", {
643
						"uid": proId,
644
						"rows": rows
645
					}, "get", function (res) {
646
						var obj = res.data;
647
						if (obj.length > 0) {
648
							document.getElementById(aimId).parentNode.parentNode.classList.remove(
649
								"displayNone");
650
							for (var i = 0; i < obj.length; i++) {
651
								var hd = "";
652
								if (obj[i].agree > 0) {
653
									hd = '<span>赞 ' + obj[i].agree + '</span>'
654
								}
655
								var li = document.createElement("li");
656
								li.setAttribute("data-id", obj[i].id);
657
								li.className = "mui-table-view-cell";
658
								li.innerHTML = '<div class="madiaInfo">' +
659
									'<p class="h1Font ellipsisSty-2 qa-question"></p>' +
660
									'<div class="flexCenter qa-owner"></div>' +
661
									'<div class="qa-con ellipsisSty-5">' + listConCut(obj[i].cnt) + '</div>' +
662
									'<div class="showliSpan ellipsisSty">' +
663
									'<span>' + commenTime(obj[i].createTime) + '</span>' + hd +
664
									'<span class="leaveMsgCount"></span>' +
665
									'</div>' +
666
									'</div>'
667
								document.getElementById(aimId).appendChild(li);
668
								var $str = $(li);
669
								questioninfo(obj[i].qid, $str);
670
								proinfo(obj[i].uid, $str);
671
								leaveMsgCount(obj[i].id, "4", $str);
672
							}
752 673
						}
753
					}else{
754
						if(numZ){
755
							copNum="合作:"+numZ+"项专利"
756
						}else{
757
							
674
					})
675
				},
676
				proinfo = function (pid, $str) {
677
					oAjax("/ajax/professor/baseInfo/" + pid, {}, "get", function (data) {
678
						var dataStr = data.data
679
						var baImg = "../images/default-photo.jpg";
680
						if (dataStr.hasHeadImage == 1) {
681
							baImg = "/images/head/" + dataStr.id + "_l.jpg";
758 682
						}
759
					}
760
					
761
					if(data.data.title) {
762
						if(data.data.orgName) {
763
							thisTit=data.data.title +","+ data.data.orgName;
764
						}else{
765
							thisTit=data.data.title;
683
						var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
684
						var os = "";
685
						if (dataStr.title) {
686
							if (dataStr.orgName) {
687
								os = dataStr.title + "," + dataStr.orgName;
688
							} else {
689
								os = dataStr.title;
690
							}
691
						} else {
692
							if (dataStr.office) {
693
								if (dataStr.orgName) {
694
									os = dataStr.office + "," + dataStr.orgName;
695
								} else {
696
									os = dataStr.office;
697
								}
698
							} else {
699
								if (dataStr.orgName) {
700
									os = dataStr.orgName;
701
								}
702
							}
766 703
						}
767
					}else{
768
						if(data.data.office) {
769
							if(data.data.orgName) {
770
								thisTit=data.data.office +","+ data.data.orgName;
771
							}else{
772
								thisTit=data.data.office;
704
						var str = '<div class="owner-head useHead" style="background-image:url(' + baImg +
705
							')"></div>' +
706
							'<div class="owner-info">' +
707
							'<div class="owner-name"><span class="h1Font">' + dataStr.name +
708
							'</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title +
709
							'"></em></div>' +
710
							'<div class="owner-tit ellipsisSty h2Font">' + os + '</div>' +
711
							'</div>'
712
						$str.find(".qa-owner").html(str)
713
					});
714
				},
715
				questioninfo = function (qid, $str) {
716
					oAjax("/ajax/question/qo", {
717
						id: qid
718
					}, "get", function (data) {
719
						$str.find(".qa-question").html(data.data.title);
720
						if (data.data.pageViews > 0) {
721
							$str.find(".qaPageview").html("阅读量 " + data.data.pageViews);
722
						} else {
723
							$str.find(".qaPageview").hide()
724
						}
725
					});
726
				},
727
				queryPubCount = function () {
728
					oAjax("/ajax/article/count/publish", { //文章总数
729
						"owner": proId,
730
						"category": "1"
731
					}, "GET", function (data) {
732
						if (data.data > rows) {
733
							$("#seeMoreArtical").removeClass("displayNone")
734
							$("#articalNum").text(data.data);
735
						}
736
					});
737
					oAjax("/ajax/resource/count/publish", { //资源总数
738
						"owner": proId,
739
						"category": "1"
740
					}, "GET", function (data) {
741
						if (data.data > rows) {
742
							$("#seeMoreResource").removeClass("displayNone")
743
							$("#resourceNum").text(data.data);
744
						}
745
					});
746
					oAjax("/ajax/ware/count/publish", { //服务总数
747
						"owner": proId,
748
						"category": "1"
749
					}, "GET", function (data) {
750
						if (data.data > rows) {
751
							$("#seeMoreService").removeClass("displayNone")
752
							$("#serviceNum").text(data.data);
753
						}
754
					});
755
					oAjax("/ajax/ppatent/count/publish", { //专利总数
756
						"owner": proId,
757
					}, "GET", function (data) {
758
						if (data.data > rows) {
759
							$("#seeMorePatent").removeClass("displayNone")
760
							$("#patentNum").text(data.data);
761
						}
762
					});
763
					oAjax("/ajax/ppaper/count/publish", { //论文总数
764
						"owner": proId,
765
					}, "GET", function (data) {
766
						if (data.data > rows) {
767
							$("#seeMorePaper").removeClass("displayNone")
768
							$("#paperNum").text(data.data);
769
						}
770
					});
771
					oAjax("/ajax/question/answer/bySelf/count", { //回答总数
772
						"uid": proId,
773
					}, "GET", function (data) {
774
						if (data.data > rows) {
775
							$("#seeMoreQA").removeClass("displayNone")
776
							$("#QANum").text(data.data);
777
						}
778
					});
779
				},
780
				bindClickFun = function () {
781
					var this_ = "../html/userInforShow.html?proid=" + proId;
782
					wcFresh(this_);
783
					$("body").on("click", ".seeMore,#goCmpBrief", function () {
784
						isInstalled(this_, true);
785
						$(this).addClass("activeThis");
786
					})
787
					$('#articelShow,#relateArt').on('click', 'li', function () {
788
						var id = this.getAttribute("data-id");
789
						location.href = "http://" + window.location.host + "/e/a.html?id=" + id;
790
						$(this).addClass("activeThis");
791
					})
792
					$('#resourceShow').on('click', 'li', function () {
793
						var id = this.getAttribute("data-id");
794
						location.href = "http://" + window.location.host + "/e/r.html?id=" + id;
795
						$(this).addClass("activeThis");
796
					})
797
					$('#paperShow').on('click', 'li', function () {
798
						var id = this.getAttribute("data-id");
799
						location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
800
						$(this).addClass("activeThis");
801
					})
802
					$('#patentShow').on('click', 'li', function () {
803
						var id = this.getAttribute("data-id");
804
						location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
805
						$(this).addClass("activeThis");
806
					})
807
					$('#demandShow').on('click', 'li', function () {
808
						var id = this.getAttribute("data-id");
809
						location.href = "http://" + window.location.host + "/e/d.html?id=" + id;
810
						$(this).addClass("activeThis");
811
					})
812
					$('#serviceShow').on('click', 'li', function () {
813
						var id = this.getAttribute("data-id");
814
						location.href = "http://" + window.location.host + "/e/s.html?id=" + id;
815
						$(this).addClass("activeThis");
816
					})
817
					$('#proUnPatent').on('click', 'li', function () {   //非专跳转
818
						var id = this.getAttribute("data-id");
819
						location.href = "http://" + window.location.host + "/e/3.html?id=" + id;
820
						$(this).addClass("activeThis");
821
					})
822
823
				}
824
825
			userMessage(proId);
826
			demandListVal()
827
			serviceListVal()
828
			resourceListVal()
829
			articalListVal()
830
			patentListVal()
831
			paperListVal()
832
			answerListVal()
833
			relevantExperts(); //合作专家
834
			// relevantarticalList();//相关文章
835
			likeExperts(); //感兴趣专家
836
			bindClickFun()
837
			queryPubCount();
838
			pageViewLog(proId, 1);
839
840
			//合作专家
841
			function relevantExperts() {
842
				$.ajax({
843
					"url": "/ajax/professor/coadjutant",
844
					"type": "get",
845
					"dataType": "json",
846
					"data": {
847
						"id": proId
848
					},
849
					"success": function (data) {
850
						if (data.success && data.data) {
851
							console.log(data)
852
							var lengthT;
853
							if (data.data.length > 5) {
854
								lengthT = 5;
855
							} else {
856
								lengthT = data.data.length
773 857
							}
774
						}else{
775
							if(data.data.orgName) {
776
								thisTit=data.data.orgName;
858
							for (var i = 0; i < lengthT; i++) {
859
								var ExpId = data.data[i].professorId;
860
								var paperN = data.data[i].paperCount;
861
								var patentN = data.data[i].patentCount;
862
								var liItem = document.createElement("li");
863
								liItem.className = "mui-table-view-cell flexCenter";
864
								document.getElementById("relatePro").appendChild(liItem);
865
								relExpertsList(ExpId, paperN, patentN, liItem);
777 866
							}
867
778 868
						}
869
					},
870
					"error": function () {
871
						$.MsgBox.Alert('提示', '链接服务器超时')
779 872
					}
780
					var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
781
					var itemlist = '<a href="p.html?id='+data.data.id+'" class="urlgo"><div class="madiaHead useHead" style="background-image:url('+thisImg+')"></div>';
782
						itemlist += '<div class="madiaInfo">';
783
						itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">'+data.data.name+'</span><em class="authiconNew '+userType.sty+'" title="'+userType.title+'"></em></p>';
784
						itemlist += '<p class="ellipsisSty h2Font">'+thisTit+'</p>';
785
						itemlist += '<p class="h2Font ellipsisSty">'+copNum+'</p>';
786
						itemlist += '</div></a>';
787
					liItem.innerHTML = itemlist
788
					liItem.setAttribute("data-id",data.data.id)
789
				}
790
			},
791
			"error":function(){
792
				$.MsgBox.Alert('提示','链接服务器超时')
873
				});
793 874
			}
794
		});
795
	}
796
	//相关文章信息
797
	function relevantarticalList(){
798
		$.ajax({
799
				"url" : "/ajax/article/byAssProfessor",
800
			"type" :  "GET" ,
801
			"dataType" : "json",
802
			"data" :{"id":proId},
803
			"async":"false",
804
			"traditional": true, //传数组必须加这个
805
			"success" : function(data) {
806
				console.log(data);
807
				if (data.success && data.data!=""){
808
					// document.getElementById("relateArt").parentNode.parentNode.classList.remove("displayNone");
809
					document.getElementById("relateArt").innerHTML="";
810
					var StrData = data.data
811
					var lengthT;
812
					if(data.data.length>5){
813
						lengthT=5;
814
					}else{
815
						lengthT=data.data.length
816
					}
817
					for(var i = 0; i < lengthT; i++) {
818
						(function(n) {
819
							var imgL="../images/default-artical.jpg";
820
							if(StrData[i].articleImg){
821
								imgL='../data/article/' + StrData[i].articleImg 
875
876
			function relExpertsList(Id, numL, numZ, liItem) {
877
				$.ajax({
878
					"url": "/ajax/professor/info/" + Id,
879
					"type": "GET",
880
					"dataType": "json",
881
					"success": function (data) {
882
						if (data.success && data.data != "") {
883
							document.getElementById("relatePro").parentNode.parentNode.classList.remove(
884
								"displayNone");
885
							var thisTit, thisImg, copNum = ""
886
							if (data.data.hasHeadImage == 1) {
887
								thisImg = "/images/head/" + data.data.id + "_l.jpg);"
888
							} else {
889
								thisImg = "../images/default-photo.jpg);"
822 890
							}
823
							var oURL;
824
							if(StrData[i].articleType==1) {
825
								oURL="/ajax/professor/baseInfo/"+StrData[i].ownerId;
826
							}else if(StrData[i].articleType==2){
827
								oURL="/ajax/org/" + StrData[i].ownerId;
828
							}else if(StrData[i].articleType==3){
829
								oURL="/ajax/platform/info";
891
							if (numL) {
892
								if (numZ) {
893
									copNum = "合作:" + numZ + "项专利," + numL + "篇论文"
894
								} else {
895
									copNum = "合作:" + numL + "篇论文"
896
								}
897
							} else {
898
								if (numZ) {
899
									copNum = "合作:" + numZ + "项专利"
900
								} else {
901
902
								}
830 903
							}
831
							$.ajax({
832
								"url":oURL,
833
								"data":{id:StrData[i].ownerId},
834
								"type": "GET",
835
								'dataType': "json",
836
								"success": function(data) {
837
									var thisName,userType,thisAuth,thisTitle
838
									if(data.data.forShort){
839
										thisName=data.data.forShort;
840
									}else{
841
										thisName=data.data.name;
842
									}
843
									if(StrData[n].articleType==1) {
844
										userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
845
										thisTitle = userType.title;
846
										thisAuth = userType.sty;
847
									}else if(StrData[n].articleType==2){
848
										if(data.data.authStatus==3) {
849
											thisTitle = "科袖认证企业";
850
											thisAuth = "authicon-com-ok";
851
										}
852
									}else if(StrData[n].articleType==3){
853 904
905
							if (data.data.title) {
906
								if (data.data.orgName) {
907
									thisTit = data.data.title + "," + data.data.orgName;
908
								} else {
909
									thisTit = data.data.title;
910
								}
911
							} else {
912
								if (data.data.office) {
913
									if (data.data.orgName) {
914
										thisTit = data.data.office + "," + data.data.orgName;
915
									} else {
916
										thisTit = data.data.office;
917
									}
918
								} else {
919
									if (data.data.orgName) {
920
										thisTit = data.data.orgName;
854 921
									}
855
									var add = document.createElement("li");
856
									add.className = "mui-table-view-cell flexCenter OflexCenter"; 
857
									add.setAttribute("data-id",StrData[n].articleId);
858
									var itemlist = '<div class="madiaHead artHead" style="background-image:url('+imgL+')"></div>';
859
										itemlist += '<div class="madiaInfo OmadiaInfo">';
860
										itemlist += '<p class="ellipsisSty-2 h1Font" id="usertitle">'+StrData[n].articleTitle+'</p>';
861
										itemlist += '<p><span class="h2Font" style="margin-right:10px">'+'</span><span class="time">'+commenTime(StrData[n].publishTime)+'</span></p>';
862
										itemlist += '</div>';
863
										
864
									add.innerHTML=itemlist;
865
									document.getElementById("relateArt").appendChild(add);
866
								},
867
								'error': function() {
868
									$.MsgBox.Alert('提示', '服务器连接超时!');
869 922
								}
870
							});
871
						})(i);
923
							}
924
							var userType = autho(data.data.authType, data.data.orgAuth, data.data
925
								.authStatus);
926
							var itemlist = '<a href="p.html?id=' + data.data.id +
927
								'" class="urlgo"><div class="madiaHead useHead" style="background-image:url(' +
928
								thisImg + ')"></div>';
929
							itemlist += '<div class="madiaInfo">';
930
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">' +
931
								data.data.name + '</span><em class="authiconNew ' + userType.sty +
932
								'" title="' + userType.title + '"></em></p>';
933
							itemlist += '<p class="ellipsisSty h2Font">' + thisTit + '</p>';
934
							itemlist += '<p class="h2Font ellipsisSty">' + copNum + '</p>';
935
							itemlist += '</div></a>';
936
							liItem.innerHTML = itemlist
937
							liItem.setAttribute("data-id", data.data.id)
938
						}
939
					},
940
					"error": function () {
941
						$.MsgBox.Alert('提示', '链接服务器超时')
872 942
					}
873
				}
874
			},
875
			"error":function(){
876
				$.MsgBox.Alert('提示','链接服务器超时')
943
				});
877 944
			}
878
		});
879
	}
880
	//感兴趣
881
	function likeExperts(){
882
		$.ajax({
883
			"url": "/ajax/professor/ralateProfessors",
884
			"type": "get",
885
			"dataType" : "json",
886
			"data" :{"professorId":proId},
887
			"success": function(data) {
888
				if(data.success && data.data) {
889
					console.log(data)
890
					var lengthT;
891
					if(data.data.length>5){
892
						lengthT=5;
893
					}else{
894
						lengthT=data.data.length
895
					}
896
					for(var i = 0; i < lengthT; i++) {
897
						var ExpId = data.data[i].id;
898
						likeExpertsList(ExpId);
945
			//相关文章信息
946
			function relevantarticalList() {
947
				$.ajax({
948
					"url": "/ajax/article/byAssProfessor",
949
					"type": "GET",
950
					"dataType": "json",
951
					"data": {
952
						"id": proId
953
					},
954
					"async": "false",
955
					"traditional": true, //传数组必须加这个
956
					"success": function (data) {
957
						console.log(data);
958
						if (data.success && data.data != "") {
959
							// document.getElementById("relateArt").parentNode.parentNode.classList.remove("displayNone");
960
							document.getElementById("relateArt").innerHTML = "";
961
							var StrData = data.data
962
							var lengthT;
963
							if (data.data.length > 5) {
964
								lengthT = 5;
965
							} else {
966
								lengthT = data.data.length
967
							}
968
							for (var i = 0; i < lengthT; i++) {
969
								(function (n) {
970
									var imgL = "../images/default-artical.jpg";
971
									if (StrData[i].articleImg) {
972
										imgL = '../data/article/' + StrData[i].articleImg
973
									}
974
									var oURL;
975
									if (StrData[i].articleType == 1) {
976
										oURL = "/ajax/professor/baseInfo/" + StrData[i].ownerId;
977
									} else if (StrData[i].articleType == 2) {
978
										oURL = "/ajax/org/" + StrData[i].ownerId;
979
									} else if (StrData[i].articleType == 3) {
980
										oURL = "/ajax/platform/info";
981
									}
982
									$.ajax({
983
										"url": oURL,
984
										"data": {
985
											id: StrData[i].ownerId
986
										},
987
										"type": "GET",
988
										'dataType': "json",
989
										"success": function (data) {
990
											var thisName, userType, thisAuth, thisTitle
991
											if (data.data.forShort) {
992
												thisName = data.data.forShort;
993
											} else {
994
												thisName = data.data.name;
995
											}
996
											if (StrData[n].articleType == 1) {
997
												userType = autho(data.data.authType, data
998
													.data.orgAuth, data.data
999
													.authStatus);
1000
												thisTitle = userType.title;
1001
												thisAuth = userType.sty;
1002
											} else if (StrData[n].articleType == 2) {
1003
												if (data.data.authStatus == 3) {
1004
													thisTitle = "科袖认证企业";
1005
													thisAuth = "authicon-com-ok";
1006
												}
1007
											} else if (StrData[n].articleType == 3) {
1008
1009
											}
1010
											var add = document.createElement("li");
1011
											add.className =
1012
												"mui-table-view-cell flexCenter OflexCenter";
1013
											add.setAttribute("data-id", StrData[n]
1014
												.articleId);
1015
											var itemlist =
1016
												'<div class="madiaHead artHead" style="background-image:url(' +
1017
												imgL + ')"></div>';
1018
											itemlist +=
1019
												'<div class="madiaInfo OmadiaInfo">';
1020
											itemlist +=
1021
												'<p class="ellipsisSty-2 h1Font" id="usertitle">' +
1022
												StrData[n].articleTitle + '</p>';
1023
											itemlist +=
1024
												'<p><span class="h2Font" style="margin-right:10px">' +
1025
												'</span><span class="time">' + commenTime(
1026
													StrData[n].publishTime) +
1027
												'</span></p>';
1028
											itemlist += '</div>';
1029
1030
											add.innerHTML = itemlist;
1031
											document.getElementById("relateArt")
1032
												.appendChild(add);
1033
										},
1034
										'error': function () {
1035
											$.MsgBox.Alert('提示', '服务器连接超时!');
1036
										}
1037
									});
1038
								})(i);
1039
							}
1040
						}
1041
					},
1042
					"error": function () {
1043
						$.MsgBox.Alert('提示', '链接服务器超时')
899 1044
					}
900
				}
901
			},
902
			"error": function() {
903
				$.MsgBox.Alert('提示', '链接服务器超时')
1045
				});
904 1046
			}
905
		});
906
	}
907
	function likeExpertsList(Id){
908
		$.ajax({
909
			"url" : "/ajax/professor/info/"+Id,
910
			"type" :  "GET" ,
911
			"dataType" : "json",
912
			"success" : function(data) {
913
				if (data.success && data.data!=""){
914
					console.log(data)
915
					document.getElementById("likePro").parentNode.parentNode.classList.remove("displayNone");
916
					var itemlist = '<li class="flexCenter"><a href="" class="urlgo">';
917
						itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
918
						itemlist += '<div class="madiaInfo">';
919
						itemlist += '<p><span class="h1Font" id="userName"></span><em class="authiconNew" title=""></em></p>';
920
						itemlist += '<p class="ellipsisSty h2Font" id="usertitle"></p>';
921
						itemlist += '</div></a></li>';
922
					$itemlist = $(itemlist);
923
					$("#likePro").append($itemlist);
924
					if(data.data.title) {
925
						if(data.data.orgName) {
926
							$itemlist.find("#usertitle").text(data.data.title +","+ data.data.orgName);
927
						}else{
928
							$itemlist.find("#usertitle").text(data.data.title);
929
						}
930
					}else{
931
						if(data.data.office) {
932
							if(data.data.orgName) {
933
								$itemlist.find("#usertitle").text(data.data.office +","+ data.data.orgName);
934
							}else{
935
								$itemlist.find("#usertitle").text(data.data.office);
1047
			//感兴趣
1048
			function likeExperts() {
1049
				$.ajax({
1050
					"url": "/ajax/professor/ralateProfessors",
1051
					"type": "get",
1052
					"dataType": "json",
1053
					"data": {
1054
						"professorId": proId
1055
					},
1056
					"success": function (data) {
1057
						if (data.success && data.data) {
1058
							console.log(data)
1059
							var lengthT;
1060
							if (data.data.length > 5) {
1061
								lengthT = 5;
1062
							} else {
1063
								lengthT = data.data.length
936 1064
							}
937
						}else{
938
							if(data.data.orgName) {
939
								$itemlist.find("#usertitle").text(data.data.orgName);
1065
							for (var i = 0; i < lengthT; i++) {
1066
								var ExpId = data.data[i].id;
1067
								likeExpertsList(ExpId);
940 1068
							}
941 1069
						}
1070
					},
1071
					"error": function () {
1072
						$.MsgBox.Alert('提示', '链接服务器超时')
942 1073
					}
943
					$itemlist.find("#userName").text(data.data.name);
944
					$itemlist.find(".urlgo").attr("href", "p.html?id="+data.data.id);
945
					
946
					if(data.data.hasHeadImage == 1) {
947
						$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + data.data.id + "_l.jpg);");
948
					}
949
					var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
950
					$itemlist.find(".authiconNew").attr("title", userType.title);
951
					$itemlist.find(".authiconNew").addClass(userType.sty);
952
				}
953
			},
954
			"error":function(){
955
				$.MsgBox.Alert('提示','链接服务器超时')
1074
				});
956 1075
			}
957
		});
958 1076
959
	}
960
   
961
    /*微信分享*/
962
	$.ajax({
963
		url: "../ajax/weixin/jsapiTicket",
964
		type: 'get',
965
		dataType: 'json',
966
		contentType: "application/x-www-form-urlencoded; charset=utf-8",
967
		data: {
968
			'url': location.href.split('#')[0]
969
		},
970
		success: function(data) {
971
			if(data.data) {
972
				wx.config({
973
					debug: false, //调试模式好犀利
974
					appId: data.data.appId,
975
					timestamp: data.data.timestamp,
976
					nonceStr: data.data.nonceStr,
977
					signature: data.data.signature,
978
					jsApiList: [ // 所有要调用的 API 都要加到这个列表中
979
						"onMenuShareAppMessage",
980
						"onMenuShareTimeline",
981
						"onMenuShareQQ",
982
						"onMenuShareQZone",
983
						"scanQRCode",
984
					]
985
				});
986
				wx.ready(function() {
987
					// 在这里调用 API
988
					wx.onMenuShareAppMessage({ //分享给朋友
989
						title: shareTitle, // 分享标题
990
						desc: descContent, // 分享描述
991
						link: lineLink, // 分享链接
992
						imgUrl: imgUrl, // 分享图标
993
						success: share_success_callback,
994
						cancel: share_cancel_callback
995
					});
996
					wx.onMenuShareTimeline({ //分享到朋友圈
997
						title: shareTitle, // 分享标题
998
						desc: descContent, // 分享描述
999
						link: lineLink, // 分享链接
1000
						imgUrl: imgUrl, // 分享图标
1001
						success: share_success_callback,
1002
						cancel: share_cancel_callback
1003
					});
1004
					wx.onMenuShareQQ({ //分享到QQ
1005
						title: shareTitle, // 分享标题
1006
						desc: descContent, // 分享描述
1007
						link: lineLink, // 分享链接
1008
						imgUrl: imgUrl, // 分享图标
1009
						success: share_success_callback,
1010
						cancel: share_cancel_callback
1011
					});
1012
					wx.onMenuShareQZone({ //分享到QQ空间
1013
						title: shareTitle, // 分享标题
1014
						desc: descContent, // 分享描述
1015
						link: lineLink, // 分享链接
1016
						imgUrl: imgUrl, // 分享图标
1017
						success: share_success_callback,
1018
						cancel: share_cancel_callback
1019
					});
1077
			function likeExpertsList(Id) {
1078
				$.ajax({
1079
					"url": "/ajax/professor/info/" + Id,
1080
					"type": "GET",
1081
					"dataType": "json",
1082
					"success": function (data) {
1083
						if (data.success && data.data != "") {
1084
							console.log(data)
1085
							document.getElementById("likePro").parentNode.parentNode.classList.remove(
1086
								"displayNone");
1087
							var itemlist = '<li class="flexCenter"><a href="" class="urlgo">';
1088
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
1089
							itemlist += '<div class="madiaInfo">';
1090
							itemlist +=
1091
								'<p><span class="h1Font" id="userName"></span><em class="authiconNew" title=""></em></p>';
1092
							itemlist += '<p class="ellipsisSty h2Font" id="usertitle"></p>';
1093
							itemlist += '</div></a></li>';
1094
							$itemlist = $(itemlist);
1095
							$("#likePro").append($itemlist);
1096
							if (data.data.title) {
1097
								if (data.data.orgName) {
1098
									$itemlist.find("#usertitle").text(data.data.title + "," + data.data
1099
										.orgName);
1100
								} else {
1101
									$itemlist.find("#usertitle").text(data.data.title);
1102
								}
1103
							} else {
1104
								if (data.data.office) {
1105
									if (data.data.orgName) {
1106
										$itemlist.find("#usertitle").text(data.data.office + "," + data
1107
											.data.orgName);
1108
									} else {
1109
										$itemlist.find("#usertitle").text(data.data.office);
1110
									}
1111
								} else {
1112
									if (data.data.orgName) {
1113
										$itemlist.find("#usertitle").text(data.data.orgName);
1114
									}
1115
								}
1116
							}
1117
							$itemlist.find("#userName").text(data.data.name);
1118
							$itemlist.find(".urlgo").attr("href", "p.html?id=" + data.data.id);
1119
1120
							if (data.data.hasHeadImage == 1) {
1121
								$itemlist.find("#userimg").attr("style",
1122
									"background-image: url(/images/head/" + data.data.id + "_l.jpg);");
1123
							}
1124
							var userType = autho(data.data.authType, data.data.orgAuth, data.data
1125
								.authStatus);
1126
							$itemlist.find(".authiconNew").attr("title", userType.title);
1127
							$itemlist.find(".authiconNew").addClass(userType.sty);
1128
						}
1129
					},
1130
					"error": function () {
1131
						$.MsgBox.Alert('提示', '链接服务器超时')
1132
					}
1020 1133
				});
1021
				//分享成功后的回调函数	
1022
				function share_success_callback() {}
1023
				//用户取消分享后执行的回调函数	
1024
				function share_cancel_callback() {}
1025
    		}
1026
		}
1027
	});
1028
})
1029
</script>
1134
1135
			}
1136
1137
			/*微信分享*/
1138
			$.ajax({
1139
				url: "../ajax/weixin/jsapiTicket",
1140
				type: 'get',
1141
				dataType: 'json',
1142
				contentType: "application/x-www-form-urlencoded; charset=utf-8",
1143
				data: {
1144
					'url': location.href.split('#')[0]
1145
				},
1146
				success: function (data) {
1147
					if (data.data) {
1148
						wx.config({
1149
							debug: false, //调试模式好犀利
1150
							appId: data.data.appId,
1151
							timestamp: data.data.timestamp,
1152
							nonceStr: data.data.nonceStr,
1153
							signature: data.data.signature,
1154
							jsApiList: [ // 所有要调用的 API 都要加到这个列表中
1155
								"onMenuShareAppMessage",
1156
								"onMenuShareTimeline",
1157
								"onMenuShareQQ",
1158
								"onMenuShareQZone",
1159
								"scanQRCode",
1160
							]
1161
						});
1162
						wx.ready(function () {
1163
							// 在这里调用 API
1164
							wx.onMenuShareAppMessage({ //分享给朋友
1165
								title: shareTitle, // 分享标题
1166
								desc: descContent, // 分享描述
1167
								link: lineLink, // 分享链接
1168
								imgUrl: imgUrl, // 分享图标
1169
								success: share_success_callback,
1170
								cancel: share_cancel_callback
1171
							});
1172
							wx.onMenuShareTimeline({ //分享到朋友圈
1173
								title: shareTitle, // 分享标题
1174
								desc: descContent, // 分享描述
1175
								link: lineLink, // 分享链接
1176
								imgUrl: imgUrl, // 分享图标
1177
								success: share_success_callback,
1178
								cancel: share_cancel_callback
1179
							});
1180
							wx.onMenuShareQQ({ //分享到QQ
1181
								title: shareTitle, // 分享标题
1182
								desc: descContent, // 分享描述
1183
								link: lineLink, // 分享链接
1184
								imgUrl: imgUrl, // 分享图标
1185
								success: share_success_callback,
1186
								cancel: share_cancel_callback
1187
							});
1188
							wx.onMenuShareQZone({ //分享到QQ空间
1189
								title: shareTitle, // 分享标题
1190
								desc: descContent, // 分享描述
1191
								link: lineLink, // 分享链接
1192
								imgUrl: imgUrl, // 分享图标
1193
								success: share_success_callback,
1194
								cancel: share_cancel_callback
1195
							});
1196
						});
1197
						//分享成功后的回调函数	
1198
						function share_success_callback() {}
1199
						//用户取消分享后执行的回调函数	
1200
						function share_cancel_callback() {}
1201
					}
1202
				}
1203
			});
1204
		})
1205
	</script>
1030 1206
</body>
1031 1207
1032 1208
</html>

+ 7 - 3
e/search.html

@ -59,6 +59,7 @@
59 59
					<div class="swiper-slide swiper-slide-tab" data-tab="7">找服务</div>
60 60
					<div class="swiper-slide swiper-slide-tab" data-tab="2">找资源</div>
61 61
					<div class="swiper-slide swiper-slide-tab" data-tab="4">找专利</div>
62
					<div class="swiper-slide swiper-slide-tab" data-tab="9">找非专</div>
62 63
					<div class="swiper-slide swiper-slide-tab" data-tab="5">找论文</div>
63 64
					<!-- <div class="swiper-slide swiper-slide-tab" data-tab="3">找文章</div> -->
64 65
					<div class="swiper-slide swiper-slide-tab" data-tab="6">找企业</div>
@ -88,9 +89,6 @@
88 89
							</ul>
89 90
						</div>
90 91
						<!-- 找团队 -->
91
						
92
93
94 92
						<div class="swiper-slide list-group">
95 93
							<ul class="mui-table-view" id="resourceList">
96 94
	
@ -101,6 +99,12 @@
101 99
	
102 100
							</ul>
103 101
						</div>
102
						<!-- 非专利list渲染 -->
103
						<div class="swiper-slide list-group">
104
							<ul class="mui-table-view" id="unpatentList">
105
	
106
							</ul>
107
						</div>
104 108
						<div class="swiper-slide list-group">
105 109
							<ul class="mui-table-view" id="paperList">
106 110
	

+ 763 - 699
js/search_h5.js

@ -1,491 +1,547 @@
1
$(function () {
1 2

2
$(function() {
3
	
4 3
	var searchTmp,
5 4
		searchContent = $.trim(GetQueryString("key")),
6 5
		tagnum = $.trim(GetQueryString("flag"));
7
		//请求传递的参数
8
	var keyt,subject,industry,address,authType = 1;
9
	if(searchContent!=""){
10
		keyt=searchContent;
11
		searchTmp=searchContent;
12
		document.getElementById("searchval").value=searchContent;
6
	//请求传递的参数
7
	var keyt, subject, industry, address, authType = 1;
8
	if (searchContent != "") {
9
		keyt = searchContent;
10
		searchTmp = searchContent;
11
		document.getElementById("searchval").value = searchContent;
13 12
	}
14 13
	var rows = 20,
15 14
		dataO = {
16
			proSortFirst:"",
15
			proSortFirst: "",
17 16
			proStarLevel: "",
18 17
			proId: "",
19
			
20
			orgSortNum:"",
21
			orgModifyTime:"",
22
			orgId:"",
23
			
18

19
			orgSortNum: "",
20
			orgModifyTime: "",
21
			orgId: "",
22

24 23
			// artSortNum:"",
25 24
			// artPublishTime:"",
26 25
			// artId:"",
27
			
28
			resSortNum:"",
29
			resPublishTime:"",
30
			resId:"",
31
			
32
			patSortNum:"",
33
			patCreateTime:"",
34
			patId:"",
35
			
36
			parSortNum:"",
37
			parCreateTime:"",
38
			parId:"",
39
			
40
			serSortFirst:"",
26

27
			resSortNum: "",
28
			resPublishTime: "",
29
			resId: "",
30

31
			patSortNum: "",
32
			patCreateTime: "",
33
			patId: "",
34

35
			parSortNum: "",
36
			parCreateTime: "",
37
			parId: "",
38

39
			serSortFirst: "",
41 40
			serTime: "",
42 41
			serId: "",
43 42

44 43
			teamCreateTime: '',
45 44
			teamId: ''
46 45
		};
47
	var objSort={
48
			"1":{
49
				obj:"professor",
50
				loadFlag:true,
51
				conbox:"#proList"
52
			},
53
			"2":{
54
				obj:"resource",
55
				loadFlag:true,
56
				conbox:"#resourceList"
57
			},
58
			"3":{
59
				obj:"article",
60
				loadFlag:true,
61
				conbox:"#articleList"
62
			},
63
			"4":{
64
				obj:"ppatent",
65
				loadFlag:true,
66
				conbox:"#patentList"
67
			},
68
			"5":{
69
				obj:"ppaper",
70
				loadFlag:true,
71
				conbox:"#paperList"
72
			},
73
			"6":{
74
				obj:"org",
75
				loadFlag:true,
76
				conbox:"#companyList"
77
			},
78
			"7":{
79
				obj:"ware",
80
				loadFlag:true,
81
				conbox:"#serviceList"
82
			},
83
			"8":{
84
				obj:"team",
85
				loadFlag:true,
86
				conbox:"#teamList"
87
			}
46
	var objSort = {
47
		"1": {
48
			obj: "professor",
49
			loadFlag: true,
50
			conbox: "#proList"
51
		},
52
		"2": {
53
			obj: "resource",
54
			loadFlag: true,
55
			conbox: "#resourceList"
56
		},
57
		// "3":{
58
		// 	obj:"article",
59
		// 	loadFlag:true,
60
		// 	conbox:"#articleList"
61
		// },
62
		"4": {
63
			obj: "ppatent",
64
			loadFlag: true,
65
			conbox: "#patentList"
66
		},
67
		"5": {
68
			obj: "ppaper",
69
			loadFlag: true,
70
			conbox: "#paperList"
71
		},
72
		"6": {
73
			obj: "org",
74
			loadFlag: true,
75
			conbox: "#companyList"
76
		},
77
		"7": {
78
			obj: "ware",
79
			loadFlag: true,
80
			conbox: "#serviceList"
81
		},
82
		"8": {
83
			obj: "team",
84
			loadFlag: true,
85
			conbox: "#teamList"
86
		},
87
		"9": {
88
			obj: "unpatent",
89
			loadFlag: true,
90
			conbox: "#unpatentList"
88 91
		}
92
	}
89 93
	// var tabOrder=["1","7","2","4","5","3","6"]
90
	var tabOrder=["1","7","2","4","5","6"]
94
	// var tabOrder=["1","7","2","4","5","6"]
91 95

92 96

93
	var tabOrder=["1",'8',"7","2","4","5","3","6"]   //控制tab切换排序
94
	var mySwiperTab = new Swiper('.swiper-container-tab',{
95
		freeMode : true,
96
		slidesPerView : 'auto',
97
		freeModeSticky : true ,
97
	var tabOrder = ["1", '8', "7", "2", "4", "9", "5", "3", "6"] //控制tab切换排序
98
	var mySwiperTab = new Swiper('.swiper-container-tab', {
99
		freeMode: true,
100
		slidesPerView: 'auto',
101
		freeModeSticky: true,
98 102
	})
99 103

100
	var mySwiper = new Swiper('.swiper-container-main',{//内容列表mainSwiper
104
	var mySwiper = new Swiper('.swiper-container-main', { //内容列表mainSwiper
101 105
		direction: 'vertical',
102 106
		scrollbar: '.swiper-scrollbar',
103
		autoplay : 500,
104
		mode : 'vertical',
107
		autoplay: 500,
108
		mode: 'vertical',
105 109
		slidesPerView: 'auto',
106 110
		mousewheelControl: true,
107 111
		freeMode: true,
108
		onTouchMove: function(swiper){		//手动滑动中触发
112
		onTouchMove: function (swiper) { //手动滑动中触发
109 113
			var _viewHeight = document.getElementsByClassName('swiper-wrapper-main')[0].offsetHeight;
110
            var _contentHeight = document.getElementsByClassName('swiper-slide')[0].offsetHeight;
114
			var _contentHeight = document.getElementsByClassName('swiper-slide')[0].offsetHeight;
111 115
		},
112
		onTouchEnd: function(swiper) {
116
		onTouchEnd: function (swiper) {
113 117
			var _viewHeight = document.getElementsByClassName('swiper-wrapper-main')[0].offsetHeight;
114
            var _contentHeight = document.getElementsByClassName('swiper-slide')[0].offsetHeight;
115
             // 上拉加载
116
            if(mySwiper.translate <= _viewHeight - _contentHeight - 50 && mySwiper.translate < 0) {
117
                setTimeout(function() {
118
                	var item;
119
                	if(tagnum){
120
                		item=tagnum
121
                	}else{
122
                		item=$('.swiper-slide-tab.active-tab').attr("data-tab")
123
                	}
124
                	tabToFun(item)
125
                }, 300);
126
            }
127
            if(mySwiper.translate >= 50) {
128
                setTimeout(function() {
129
                    //刷新操作
130
                    mySwiper.update(); // 重新计算高度;
131
                }, 1000);
132
            }else if(mySwiper.translate >= 0 && mySwiper.translate < 50){
133

134
            }
135
            //return false;
118
			var _contentHeight = document.getElementsByClassName('swiper-slide')[0].offsetHeight;
119
			// 上拉加载
120
			if (mySwiper.translate <= _viewHeight - _contentHeight - 50 && mySwiper.translate < 0) {
121
				setTimeout(function () {
122
					var item;
123
					if (tagnum) {
124
						item = tagnum
125
					} else {
126
						item = $('.swiper-slide-tab.active-tab').attr("data-tab")
127
					}
128
					tabToFun(item)
129
				}, 300);
130
			}
131
			if (mySwiper.translate >= 50) {
132
				setTimeout(function () {
133
					//刷新操作
134
					mySwiper.update(); // 重新计算高度;
135
				}, 1000);
136
			} else if (mySwiper.translate >= 0 && mySwiper.translate < 50) {
137

138
			}
139
			//return false;
136 140
		}
137 141
	});
138
	var mySwiper2 = new Swiper('.swiper-container2',{//tabSwiper
139
		onTransitionEnd: function(swiper){
142
	var mySwiper2 = new Swiper('.swiper-container2', { //tabSwiper
143
		onTransitionEnd: function (swiper) {
140 144
			$('.w').css('transform', 'translate3d(0px, 0px, 0px)')
141
			$('.swiper-container2 .swiper-slide-active').css('height','auto').siblings('.swiper-slide').css('height','0px');
145
			$('.swiper-container2 .swiper-slide-active').css('height', 'auto').siblings('.swiper-slide').css('height', '0px');
142 146
			mySwiper.update();
143 147
			$('.swiper-slide-tab').eq(mySwiper2.activeIndex).addClass('active-tab').siblings('.swiper-slide-tab').removeClass('active-tab');
144
			var tabitem=$('.swiper-slide-tab').eq(mySwiper2.activeIndex).attr("data-tab");
148
			var tabitem = $('.swiper-slide-tab').eq(mySwiper2.activeIndex).attr("data-tab");
145 149
			mySwiperTab.slideTo(mySwiper2.activeIndex, 500, false);
146
			if(mySwiper2.activeIndex<3){
150
			if (mySwiper2.activeIndex < 3) {
147 151
				$(".tr").css('transform', 'translate3d(0px, 0px, 0px)')
148 152
			}
149
			tagnum=tabitem
153
			tagnum = tabitem
150 154
			clearToFun(tagnum)
151
			if(mySwiper2.activeIndex==0){
155
			if (mySwiper2.activeIndex == 0) {
152 156
				$("#sele").removeClass("displayNone");
153 157
				$("#searB").addClass("searchboxNewT");
154
			}else{
158
			} else {
155 159
				$("#sele").addClass("displayNone");
156 160
				$("#searB").removeClass("searchboxNewT");
157 161
			}
158
			
162

159 163
		}
160 164
	});
161
	var oAjax = function(url, dataS, otype, oFun,beforeFun,completeFun) {
165
	var oAjax = function (url, dataS, otype, oFun, beforeFun, completeFun) {
162 166
			$.ajax({
163
				url:url,
167
				url: url,
164 168
				dataType: 'json',
165 169
				type: otype,
166 170
				data: dataS,
167 171
				traditional: true,
168 172
				beforeSend: beforeFun,
169
				success: function(res) {
170
					if(res.success) {
173
				success: function (res) {
174
					if (res.success) {
171 175
						oFun(res)
172 176
					}
173 177
				},
174
				complete:completeFun
175
	            
178
				complete: completeFun
179

176 180
			});
177
		},	
178
		insertNodata = function (targetE,newStr) {
179
            var parent = document.getElementById(targetE).parentNode;
180
            var kong = document.createElement("div");
181
            kong.className = "con-kong";
182
            kong.innerHTML ='<div class="picbox picNull"></div>'+
183
			            '<div class="txtbox">暂时没有符合该搜索条件的内容</div>'
184
            if(newStr){
185
            	kong.querySelector(".txtbox").innerHTML = newStr;
186
            }
187
            if (parent.firstChild.className == "con-kong") {
188
                return
189
            } else {
190
                parent.insertBefore(kong,parent.firstChild);
191
            }
192

193
        },
194
        removeNodata = function (targetE) {
195
            var parent = document.getElementById(targetE).parentNode;
196
            if (parent.firstChild.className == "con-kong") {
197
                parent.removeChild(parent.firstChild);
198
            } else {
199
                return
200
            }
201
        },
202
		filterList=function(subjectText){
203
			oAjax("/ajax/dataDict/qaDictCode",{//subject
204
				"dictCode":"SUBJECT",
205
			}, "get", function(data) {
181
		},
182
		insertNodata = function (targetE, newStr) {
183
			var parent = document.getElementById(targetE).parentNode;
184
			var kong = document.createElement("div");
185
			kong.className = "con-kong";
186
			kong.innerHTML = '<div class="picbox picNull"></div>' +
187
				'<div class="txtbox">暂时没有符合该搜索条件的内容</div>'
188
			if (newStr) {
189
				kong.querySelector(".txtbox").innerHTML = newStr;
190
			}
191
			if (parent.firstChild.className == "con-kong") {
192
				return
193
			} else {
194
				parent.insertBefore(kong, parent.firstChild);
195
			}
196

197
		},
198
		removeNodata = function (targetE) {
199
			var parent = document.getElementById(targetE).parentNode;
200
			if (parent.firstChild.className == "con-kong") {
201
				parent.removeChild(parent.firstChild);
202
			} else {
203
				return
204
			}
205
		},
206
		filterList = function (subjectText) {
207
			oAjax("/ajax/dataDict/qaDictCode", { //subject
208
				"dictCode": "SUBJECT",
209
			}, "get", function (data) {
206 210
				// console.log(data);
207 211
				$("#subject").html("");
208 212
				$("#subject").append('<li class="filterCurrent">不限</li>');
209
				for(var i = 0; i < data.data.length; i++) {
210
					var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>';
213
				for (var i = 0; i < data.data.length; i++) {
214
					var itemlist = '<li class="ititle">' + data.data[i].caption + '</li>';
211 215
					$("#subject").append(itemlist);
212 216
				}
213
				$("#subject li").each(function(i){
214
				    var textt = $(this).text();
215
				    if(textt == subjectText){
216
				    	$(this).addClass("filterCurrent").siblings().removeClass("filterCurrent");
217
				    }
217
				$("#subject li").each(function (i) {
218
					var textt = $(this).text();
219
					if (textt == subjectText) {
220
						$(this).addClass("filterCurrent").siblings().removeClass("filterCurrent");
221
					}
218 222
				});
219 223
			})
220
			oAjax("/ajax/dataDict/qaDictCode",{//industry
221
				"dictCode":"INDUSTRY",
222
			}, "get", function(data) {
224
			oAjax("/ajax/dataDict/qaDictCode", { //industry
225
				"dictCode": "INDUSTRY",
226
			}, "get", function (data) {
223 227
				$("#industry").html("");
224 228
				$("#industry").append('<li class="filterCurrent">不限</li>');
225
				for(var i = 0; i < data.data.length; i++) {
226
					var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>';
229
				for (var i = 0; i < data.data.length; i++) {
230
					var itemlist = '<li class="ititle">' + data.data[i].caption + '</li>';
227 231
					$("#industry").append(itemlist);
228 232
				}
229 233
			})
230
			oAjax("/ajax/dataDict/qaCity",{//address
231
				"dictCode":"ADDRESS",
232
			}, "get", function(data) {
234
			oAjax("/ajax/dataDict/qaCity", { //address
235
				"dictCode": "ADDRESS",
236
			}, "get", function (data) {
233 237
				$("#address").html("");
234 238
				$("#address").append('<li class="filterCurrent">不限</li>');
235
				for(var i = 0; i < data.data.length; i++) {
236
					var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>';
239
				for (var i = 0; i < data.data.length; i++) {
240
					var itemlist = '<li class="ititle">' + data.data[i].caption + '</li>';
237 241
					$("#address").append(itemlist);
238 242
				}
239 243
			})
240 244
		},
241
		expertBox=function(){
242
			var  subjectVal= $("#subject li.filterCurrent").text();
243
			if(subjectVal=="不限"){
245
		expertBox = function () {
246
			var subjectVal = $("#subject li.filterCurrent").text();
247
			if (subjectVal == "不限") {
244 248
				subject = "";
245
			}else{
249
			} else {
246 250
				subject = subjectVal;
247 251
			}
248
			var  industryVal= $("#industry li.filterCurrent").text();
249
			if(industryVal=="不限"){
252
			var industryVal = $("#industry li.filterCurrent").text();
253
			if (industryVal == "不限") {
250 254
				industry = "";
251
			}else{
255
			} else {
252 256
				industry = industryVal;
253 257
			}
254
			var  addressVal= $("#address li.filterCurrent").text();
255
			if(addressVal=="不限"){
258
			var addressVal = $("#address li.filterCurrent").text();
259
			if (addressVal == "不限") {
256 260
				address = "";
257
			}else{
261
			} else {
258 262
				address = addressVal;
259 263
			}
260
			professorListVal() 
264
			professorListVal()
261 265
		},
262 266

267
		unpatent = function () { //找非专
268
			var aimId = 'unpatentList'
269
			oAjax('/ajax/resResult/pq', {
270
				'key': keyt,
271
				'status': [1],
272
				'pageSize': 20,
273
				'pageNo': 1
274
			}, 'get', function (res) {
275
				var $info = res.data.data
276
				for (var i = 0; i < $info.length; i++) {
277
					if ($info[i].pic) {
278
						var src = '/data/researchResult' + $info[i].pic.split(",")[0]
279
					}
280
					var orgId = $info[i].orgId == undefined ? '' : '所属机构' + $info[i].orgId
281
					var liItem = document.createElement("li");
282
					liItem.setAttribute("data-id", $info[i].id);
283
					liItem.className = "mui-table-view-cell"
284
					var itemlist = '<div class="flexCenter OflexCenter clearfix">';
285
					itemlist += '<div class="madiaHead resouseHead " style="background-image:url(' + src + ')"></div>';
286
					itemlist += '<div class="madiaInfo OmadiaInfo">';
287
					itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].name + '</p>';
288
					itemlist += '<p class="h2Font ellipsisSty"><span class="ownerName">' + 1 + '</span><em class="authiconNew ownerSty"></em></p>'
289
					itemlist += '<p class="h2Font ellipsisSty">' + orgId + '</p>'
290
					itemlist += '</div>'
291
					itemlist += '</div>';
292
					liItem.innerHTML = itemlist;
293
					var $itemlist = $(liItem);
294
					document.getElementById(aimId).appendChild(liItem)
295
					unPerson($info[i].id, $itemlist)
296
				}
297
			})
298
		}
263 299

264

265

266
		professorListVal = function() {   //找专家
267
			var aimId="proList"
268
			oAjax("/ajax/professor/index/search",{
269
				"key":keyt,
270
				"subject":subject,
271
				"industry":industry,
272
				"address":address,
273
				"authType":authType,
300
	//研究人
301
	unPerson = function (id, $list) {
302
		$.ajax({
303
			url: '/ajax/resResult/researcher',
304
			data: {
305
				id: id
306
			},
307
			type: 'get',
308
			success: function (res) {
309
				var $info = res.data
310
				var arr = []
311
				for (var i = 0; i < $info.length; i++) {
312
					arr.push($info[i].name)
313
				}
314
				$list.find('.ownerName').html(arr.join(','))
315
			}
316
		})
317
	}
318
	professorListVal = function () { //找专家
319
			var aimId = "proList"
320
			oAjax("/ajax/professor/index/search", {
321
				"key": keyt,
322
				"subject": subject,
323
				"industry": industry,
324
				"address": address,
325
				"authType": authType,
274 326
				"sortFirst": dataO.proSortFirst,
275
				"starLevel":dataO.proStarLevel,
327
				"starLevel": dataO.proStarLevel,
276 328
				"id": dataO.proId,
277 329
				"rows": rows
278
			}, "get", function(res){
330
			}, "get", function (res) {
279 331
				var $info = res.data;
280 332
				// console.log($info);
281
				
282
				if($info.length > 0) {
283
					$("#"+aimId).show()
333

334
				if ($info.length > 0) {
335
					$("#" + aimId).show()
284 336
					dataO.proSortFirst = $info[$info.length - 1].sortFirst;
285 337
					dataO.proStarLevel = $info[$info.length - 1].starLevel;
286 338
					dataO.proId = $info[$info.length - 1].id;
287
			
288
					for(var i = 0; i < $info.length; i++) {
289
						var owner="",ownerSty="",ownerSt="",cnt="",hasImg="../images/default-photo.jpg"
339

340
					for (var i = 0; i < $info.length; i++) {
341
						var owner = "",
342
							ownerSty = "",
343
							ownerSt = "",
344
							cnt = "",
345
							hasImg = "../images/default-photo.jpg"
290 346
						var userType = autho($info[i].authType, $info[i].orgAuth, $info[i].authStatus);
291
							ownerSt= userType.title;
292
							ownerSty=userType.sty;
293
						if($info[i].hasHeadImage) {
294
							hasImg="/images/head/" + $info[i].id + "_l.jpg"
347
						ownerSt = userType.title;
348
						ownerSty = userType.sty;
349
						if ($info[i].hasHeadImage) {
350
							hasImg = "/images/head/" + $info[i].id + "_l.jpg"
295 351
						}
296 352
						var title = $info[i].title || "";
297 353
						var orgName = $info[i].orgName || "";
298 354
						var office = $info[i].office || "";
299
						if(title != "") {
355
						if (title != "") {
300 356
							var ttitle = title + ",";
301
						}else{
302
							if(office!=""){
303
								var ttitle = office  + ",";	
304
							}else{
305
								var ttitle = office;	
357
						} else {
358
							if (office != "") {
359
								var ttitle = office + ",";
360
							} else {
361
								var ttitle = office;
306 362
							}
307 363
						}
308
						if(orgName != "") {
364
						if (orgName != "") {
309 365
							orgName = orgName;
310 366
						}
311 367
						/*获取研究方向信息*/
312 368
						var researchAreas = $info[i].researchAreas;
313
						var rlist=""
314
						if( researchAreas.length > 0){
369
						var rlist = ""
370
						if (researchAreas.length > 0) {
315 371
							rlist = '研究方向:';
316
							for(var n = 0; n < researchAreas.length; n++) {
372
							for (var n = 0; n < researchAreas.length; n++) {
317 373
								rlist += researchAreas[n].caption
318
								if(n < researchAreas.length - 1) {
374
								if (n < researchAreas.length - 1) {
319 375
									rlist += ";"
320 376
								}
321 377
							}
322 378
						}
323 379
						var baImg = "../images/default-photo.jpg";
324
						if($info[i].hasHeadImage == 1) {
380
						if ($info[i].hasHeadImage == 1) {
325 381
							baImg = "/images/head/" + $info[i].id + "_l.jpg";
326 382
						}
327 383
						var liItem = document.createElement("li");
328
							liItem.className = "mui-table-view-cell"
329
							liItem.setAttribute("data-id",$info[i].id)
384
						liItem.className = "mui-table-view-cell"
385
						liItem.setAttribute("data-id", $info[i].id)
330 386
						var oString = '<div class="flexCenter clearfix">'
331
							oString += '<div class="madiaHead useHead" style="background-image:url('+baImg+')"></div>'
332
							oString += '<div class="madiaInfo">'
333
							oString += '<p class="ellipsisSty"><span class="h1Font">'+$info[i].name+'</span><em class="authiconNew '+userType.sty+'" title="'+userType.title+'"></em></p>'
334
							oString += '<p class="h2Font ellipsisSty">'+ttitle+orgName+'</p>'
335
							oString += '<p class="h2Font ellipsisSty">'+rlist+'</p>'
336
							oString += '</div></div>'
387
						oString += '<div class="madiaHead useHead" style="background-image:url(' + baImg + ')"></div>'
388
						oString += '<div class="madiaInfo">'
389
						oString += '<p class="ellipsisSty"><span class="h1Font">' + $info[i].name + '</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title + '"></em></p>'
390
						oString += '<p class="h2Font ellipsisSty">' + ttitle + orgName + '</p>'
391
						oString += '<p class="h2Font ellipsisSty">' + rlist + '</p>'
392
						oString += '</div></div>'
337 393
						liItem.innerHTML = oString;
338 394
						document.getElementById(aimId).appendChild(liItem)
339 395
					}
340 396
				}
341
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
342
                removeNodata(aimId);
343
                if($info.length == 0 && liLen == 0 ){
344
                	$("#"+aimId).hide()
345
                    insertNodata(aimId);
346
                }
397
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
398
				removeNodata(aimId);
399
				if ($info.length == 0 && liLen == 0) {
400
					$("#" + aimId).hide()
401
					insertNodata(aimId);
402
				}
347 403
				if ($info.length > rows) {
348
                    objSort[1].loadFlag=true;
349
                }
350
				if($info.length == 0){
351
                	objSort[1].loadFlag=false;
404
					objSort[1].loadFlag = true;
405
				}
406
				if ($info.length == 0) {
407
					objSort[1].loadFlag = false;
352 408
					$(".loadtip").html('没有更多数据了');
353 409
					return;
354
                }
410
				}
355 411
			})
356 412
		},
357
		companyListVal=function(){
358
			var aimId="companyList"
359
			oAjax("/ajax/org/index/search",{
413
		companyListVal = function () {
414
			var aimId = "companyList"
415
			oAjax("/ajax/org/index/search", {
360 416
				"key": keyt,
361 417
				"sortNum": dataO.orgSortNum,
362
				"modifyTime":dataO.orgModifyTime,
418
				"modifyTime": dataO.orgModifyTime,
363 419
				"id": dataO.orgId,
364 420
				"rows": rows
365
			}, "get", function(res){
421
			}, "get", function (res) {
366 422
				var $info = res.data;
367
				if($info.length > 0) {
368
					$("#"+aimId).show()
423
				if ($info.length > 0) {
424
					$("#" + aimId).show()
369 425
					dataO.orgSortNum = $info[$info.length - 1].sortNum;
370 426
					dataO.orgModifyTime = $info[$info.length - 1].modifyTime;
371 427
					dataO.orgId = $info[$info.length - 1].id;
372
			
373
					for(var i = 0; i < $info.length; i++) {
374
						var imgL,thisName,thisAuth,thisTitle,otherI="";
375
						if($info[i].hasOrgLogo == 1) {
376
							imgL="/images/org/" + $info[i].id + ".jpg";
377
						}else{
378
							imgL='../images/default-icon.jpg'
428

429
					for (var i = 0; i < $info.length; i++) {
430
						var imgL, thisName, thisAuth, thisTitle, otherI = "";
431
						if ($info[i].hasOrgLogo == 1) {
432
							imgL = "/images/org/" + $info[i].id + ".jpg";
433
						} else {
434
							imgL = '../images/default-icon.jpg'
379 435
						}
380
						if($info[i].forShort){
381
							thisName=$info[i].forShort
382
						}else{
383
							thisName=$info[i].name
436
						if ($info[i].forShort) {
437
							thisName = $info[i].forShort
438
						} else {
439
							thisName = $info[i].name
384 440
						}
385
						if($info[i].industry){
386
							otherI=$info[i].industry.replace(/,/gi, " | ");
441
						if ($info[i].industry) {
442
							otherI = $info[i].industry.replace(/,/gi, " | ");
387 443
						}
388
						if($info[i].authStatus==3){
389
							thisAuth="authicon-com-ok"
390
							thisTitle="科袖认证企业"
444
						if ($info[i].authStatus == 3) {
445
							thisAuth = "authicon-com-ok"
446
							thisTitle = "科袖认证企业"
391 447
						}
392 448
						var liItem = document.createElement("li");
393
							liItem.className = "mui-table-view-cell"
394
							liItem.setAttribute("data-id",$info[i].id)
449
						liItem.className = "mui-table-view-cell"
450
						liItem.setAttribute("data-id", $info[i].id)
395 451
						var oString = '<div class="flexCenter OflexCenter clearfix">'
396
						oString += '<div class="madiaHead cmpHead"><div class="boxBlock"><img class="boxBlockimg" src="'+imgL+'" /></div></div>'
452
						oString += '<div class="madiaHead cmpHead"><div class="boxBlock"><img class="boxBlockimg" src="' + imgL + '" /></div></div>'
397 453
						oString += '<div class="madiaInfo OmadiaInfo">'
398
						oString += '<p class="ellipsisSty"><span class="h1Font">'+thisName+'</span><em class="authiconNew '+thisAuth+'" title="'+thisTitle+'"></em></p>'
399
						oString += '<p class="ellipsisSty h2Font">'+otherI+'</p>'
454
						oString += '<p class="ellipsisSty"><span class="h1Font">' + thisName + '</span><em class="authiconNew ' + thisAuth + '" title="' + thisTitle + '"></em></p>'
455
						oString += '<p class="ellipsisSty h2Font">' + otherI + '</p>'
400 456
						oString += '</div></div>'
401 457
						liItem.innerHTML = oString;
402 458
						document.getElementById(aimId).appendChild(liItem)
403 459
					}
404 460
				}
405
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
406
                removeNodata(aimId);
407
                if($info.length == 0 && liLen == 0 ){
408
                	$("#"+aimId).hide()
409
                    insertNodata(aimId);
410
                }
411
                if ($info.length > rows) {
412
                    objSort[6].loadFlag=true;
413
                }
414
                if($info.length == 0){
415
                	objSort[6].loadFlag=false;
461
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
462
				removeNodata(aimId);
463
				if ($info.length == 0 && liLen == 0) {
464
					$("#" + aimId).hide()
465
					insertNodata(aimId);
466
				}
467
				if ($info.length > rows) {
468
					objSort[6].loadFlag = true;
469
				}
470
				if ($info.length == 0) {
471
					objSort[6].loadFlag = false;
416 472
					$(".loadtip").html('没有更多数据了');
417 473
					return;
418
                }
474
				}
419 475
			})
420 476
		},
421
		articalListVal=function(){  //文章列表
422
			var aimId="articleList"
423
			oAjax("/ajax/article/index/search",{
477
		articalListVal = function () { //文章列表
478
			var aimId = "articleList"
479
			oAjax("/ajax/article/index/search", {
424 480
				"key": keyt,
425 481
				"sortNum": dataO.artSortNum,
426
				"publishTime":dataO.artPublishTime,
482
				"publishTime": dataO.artPublishTime,
427 483
				"id": dataO.artId,
428 484
				"rows": rows
429
			}, "get", function(res){
485
			}, "get", function (res) {
430 486
				var $info = res.data;
431
				if($info.length > 0) {
432
					$("#"+aimId).show()
487
				if ($info.length > 0) {
488
					$("#" + aimId).show()
433 489
					dataO.artSortNum = $info[$info.length - 1].sortNum;
434 490
					dataO.artPublishTime = $info[$info.length - 1].publishTime;
435 491
					dataO.artId = $info[$info.length - 1].articleId;
436
			
437
					for(var i = 0; i < $info.length; i++) {
438
						var hasImg="/images/default-artical.jpg"
439
						if($info[i].articleImg) {
440
							hasImg="/data/article/" + $info[i].articleImg
492

493
					for (var i = 0; i < $info.length; i++) {
494
						var hasImg = "/images/default-artical.jpg"
495
						if ($info[i].articleImg) {
496
							hasImg = "/data/article/" + $info[i].articleImg
441 497
						}
442
						
498

443 499
						var liItem = document.createElement("li");
444
						liItem.setAttribute("data-id",$info[i].articleId);
500
						liItem.setAttribute("data-id", $info[i].articleId);
445 501
						liItem.className = "mui-table-view-cell"
446
						var itemlist ='<div class="flexCenter OflexCenter clearfix">';
447
							itemlist += '<div class="madiaHead artHead" style="background-image:url('+hasImg+')"></div>';
448
							itemlist += '<div class="madiaInfo OmadiaInfo">';
449
							itemlist += '<p class="ellipsisSty-2 h1Font">'+$info[i].articleTitle+'</p>';
450
							itemlist += '<div class="h2Font">'
451
							itemlist += '<span class="nameSpan ownerName" style="margin-right:10px"></span>'
452
							itemlist += '<span class="time">'+commenTime($info[i].publishTime)+'</span>'
453
							itemlist += '</div>'
454
							itemlist += '</div>';
502
						var itemlist = '<div class="flexCenter OflexCenter clearfix">';
503
						itemlist += '<div class="madiaHead artHead" style="background-image:url(' + hasImg + ')"></div>';
504
						itemlist += '<div class="madiaInfo OmadiaInfo">';
505
						itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].articleTitle + '</p>';
506
						itemlist += '<div class="h2Font">'
507
						itemlist += '<span class="nameSpan ownerName" style="margin-right:10px"></span>'
508
						itemlist += '<span class="time">' + commenTime($info[i].publishTime) + '</span>'
509
						itemlist += '</div>'
510
						itemlist += '</div>';
455 511
						liItem.innerHTML = itemlist;
456 512
						var $itemlist = $(liItem);
457 513
						document.getElementById(aimId).appendChild(liItem)
458
							
459
						if($info[i].articleType=="1"){
460
							(function(mo){
461
								cacheModel.getProfessor($info[i].ownerId,function(sc,value){
462
									if(sc){
514

515
						if ($info[i].articleType == "1") {
516
							(function (mo) {
517
								cacheModel.getProfessor($info[i].ownerId, function (sc, value) {
518
									if (sc) {
463 519
										mo.find(".ownerName").html(value.name);
464
									}else{
520
									} else {
465 521
										console.log("error")
466 522
									}
467 523
								});
468 524
							})($itemlist);
469
						}else if($info[i].articleType=="2"){
470
							(function(mo){
471
								cacheModel.getCompany($info[i].ownerId,function(sc, value){
472
									if(sc){
473
										if(value.forShort){
525
						} else if ($info[i].articleType == "2") {
526
							(function (mo) {
527
								cacheModel.getCompany($info[i].ownerId, function (sc, value) {
528
									if (sc) {
529
										if (value.forShort) {
474 530
											mo.find(".ownerName").html(value.forShort)
475
										}else{
531
										} else {
476 532
											mo.find(".ownerName").html(value.name)
477 533
										}
478
									}else{
534
									} else {
479 535
										console.log("error")
480 536
									}
481 537
								})
482 538
							})($itemlist);
483
						}else if($info[i].articleType=="3"){
484
							(function(mo){
485
								cacheModel.getPlatform($info[i].ownerId,function(sc, value){
486
									if(sc){
487
                                        mo.find(".ownerName").html(value.name);
488
									}else{
539
						} else if ($info[i].articleType == "3") {
540
							(function (mo) {
541
								cacheModel.getPlatform($info[i].ownerId, function (sc, value) {
542
									if (sc) {
543
										mo.find(".ownerName").html(value.name);
544
									} else {
489 545
										console.log("error")
490 546
									}
491 547
								})
@ -493,83 +549,83 @@ $(function() {
493 549
						}
494 550
					}
495 551
				}
496
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
497
                removeNodata(aimId);
498
                if($info.length == 0 && liLen == 0 ){
499
                	$("#"+aimId).hide()
500
                    insertNodata(aimId);
501
                }
502
                if ($info.length > rows) {
503
                    objSort[3].loadFlag=true;
504
                }
505
                if($info.length == 0){
506
                	objSort[3].loadFlag=false;
552
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
553
				removeNodata(aimId);
554
				if ($info.length == 0 && liLen == 0) {
555
					$("#" + aimId).hide()
556
					insertNodata(aimId);
557
				}
558
				if ($info.length > rows) {
559
					objSort[3].loadFlag = true;
560
				}
561
				if ($info.length == 0) {
562
					objSort[3].loadFlag = false;
507 563
					$(".loadtip").html('没有更多数据了');
508 564
					return;
509
                }
565
				}
510 566
			})
511 567
		},
512 568

513 569

514 570

515
		teamListVal=function(){  //团队列表
516
			var aimId="teamList"  //这定义的变量是用来拼接ul的id
517
			oAjax("/ajax/team/index/search",{
518
				"key": keyt,   //搜索的参数
519
				"subject":subject,
520
				"industry":industry,
521
				"address":address,
522
				"publishTime":dataO.teamCreateTime,
571
		teamListVal = function () { //团队列表
572
			var aimId = "teamList" //这定义的变量是用来拼接ul的id
573
			oAjax("/ajax/team/index/search", {
574
				"key": keyt, //搜索的参数
575
				"subject": subject,
576
				"industry": industry,
577
				"address": address,
578
				"publishTime": dataO.teamCreateTime,
523 579
				"id": dataO.teamId,
524 580
				"rows": rows
525
			}, "get", function(res){
581
			}, "get", function (res) {
526 582
				var $info = res.data;
527 583
				console.log($info);
528
				
529
				
530
				if($info.length > 0) {   //如果有数据就渲染
531
					$("#"+aimId).show()
532
					
584

585

586
				if ($info.length > 0) { //如果有数据就渲染
587
					$("#" + aimId).show()
588

533 589
					dataO.teamCreateTime = $info[$info.length - 1].createTime;
534 590
					dataO.teamId = $info[$info.length - 1].id;
535
					for(var i = 0; i < $info.length; i++) {
591
					for (var i = 0; i < $info.length; i++) {
536 592
						// console.log(i)
537 593
						var liItem = document.createElement("li");
538
						liItem.setAttribute("data-id",$info[i].id);
594
						liItem.setAttribute("data-id", $info[i].id);
539 595
						liItem.className = "mui-table-view-cell"
540
						var itemlist ='<div class="flexCenter OflexCenter clearfix">';
541
							itemlist += '<div class="madiaInfo OmadiaInfo teamStyle">';  //重置样式
542
							itemlist += '<p class="ellipsisSty-2 h1Font">'+$info[i].name+'</p>';
543
							itemlist += '<div class="h2Font">'
544
							itemlist += '<span class="nameSpan ownerName" ></span>'
545
							itemlist += '<span class="time">'+$info[i].orgName+"&nbsp;&nbsp;&nbsp;"+'</span><span>'+$info[i].city+'</span>'
546
							
547
							// itemlist += '<span class="time">'+$info[i].orgName+"&nbsp;&nbsp;&nbsp;"+'</span><span>'+$info[i].city+'</span>'
548
							
549
							//研究领域
550
							// itemlist += '<p class="time">'+$info[i].subject+"&nbsp;&nbsp;:"+$info[i].industry+'</p>'
551
							itemlist += '</div>'
552
							itemlist += '</div>';
596
						var itemlist = '<div class="flexCenter OflexCenter clearfix">';
597
						itemlist += '<div class="madiaInfo OmadiaInfo teamStyle">'; //重置样式
598
						itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].name + '</p>';
599
						itemlist += '<div class="h2Font">'
600
						itemlist += '<span class="nameSpan ownerName" ></span>'
601
						itemlist += '<span class="time">' + $info[i].orgName + "&nbsp;&nbsp;&nbsp;" + '</span><span>' + $info[i].city + '</span>'
602

603
						// itemlist += '<span class="time">'+$info[i].orgName+"&nbsp;&nbsp;&nbsp;"+'</span><span>'+$info[i].city+'</span>'
604

605
						//研究领域
606
						// itemlist += '<p class="time">'+$info[i].subject+"&nbsp;&nbsp;:"+$info[i].industry+'</p>'
607
						itemlist += '</div>'
608
						itemlist += '</div>';
553 609
						liItem.innerHTML = itemlist;
554 610
						document.getElementById(aimId).appendChild(liItem)
555
							
556
						
611

612

557 613
					}
558 614
				}
559
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
560
                removeNodata(aimId);
561
                if($info.length == 0 && liLen == 0 ){
562
                	$("#"+aimId).hide()
563
                    insertNodata(aimId);
564
                }
565
                if ($info.length > rows) {
566
                    objSort[8].loadFlag=true;
567
                }
568
                if($info.length < rows){
569
                	objSort[8].loadFlag=false;
615
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
616
				removeNodata(aimId);
617
				if ($info.length == 0 && liLen == 0) {
618
					$("#" + aimId).hide()
619
					insertNodata(aimId);
620
				}
621
				if ($info.length > rows) {
622
					objSort[8].loadFlag = true;
623
				}
624
				if ($info.length < rows) {
625
					objSort[8].loadFlag = false;
570 626
					$(".loadtip").html('没有更多数据了');
571 627
					return;
572
                }
628
				}
573 629
			})
574 630
		},
575 631

@ -593,68 +649,68 @@ $(function() {
593 649

594 650

595 651

596
		resourceListVal=function(){
597
			var aimId="resourceList"
598
			oAjax("/ajax/resource/index/search",{
652
		resourceListVal = function () {
653
			var aimId = "resourceList"
654
			oAjax("/ajax/resource/index/search", {
599 655
				"key": keyt,
600 656
				"sortNum": dataO.resSortNum,
601
				"publishTime":dataO.resPublishTime,
657
				"publishTime": dataO.resPublishTime,
602 658
				"id": dataO.resId,
603 659
				"rows": rows
604
			}, "get", function(res){
660
			}, "get", function (res) {
605 661
				var $info = res.data;
606
				if($info.length > 0) {
607
					$("#"+aimId).show()
662
				if ($info.length > 0) {
663
					$("#" + aimId).show()
608 664
					dataO.resSortNum = $info[$info.length - 1].sortNum;
609 665
					dataO.resPublishTime = $info[$info.length - 1].publishTime;
610 666
					dataO.resId = $info[$info.length - 1].resourceId;
611
			
612
					for(var i = 0; i < $info.length; i++) {
613
						var hasImg="/images/default-resource.jpg"
614
						if($info[i].images.length > 0) {
615
							hasImg="/data/resource/" + $info[i].images[0].imageSrc
667

668
					for (var i = 0; i < $info.length; i++) {
669
						var hasImg = "/images/default-resource.jpg"
670
						if ($info[i].images.length > 0) {
671
							hasImg = "/data/resource/" + $info[i].images[0].imageSrc
616 672
						}
617
						
673

618 674
						var liItem = document.createElement("li");
619
						liItem.setAttribute("data-id",$info[i].resourceId);
675
						liItem.setAttribute("data-id", $info[i].resourceId);
620 676
						liItem.className = "mui-table-view-cell"
621
						var itemlist ='<div class="flexCenter OflexCenter clearfix">';
622
							itemlist += '<div class="madiaHead resouseHead" style="background-image:url('+hasImg+')"></div>';
623
							itemlist += '<div class="madiaInfo OmadiaInfo">';
624
							itemlist += '<p class="ellipsisSty-2 h1Font">'+$info[i].resourceName+'</p>';
625
							itemlist +='<p class="h2Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>'
626
							itemlist += '<p class="h2Font ellipsisSty">用途:' + $info[i].supportedServices + '</p>'
627
							itemlist += '</div>'
628
							itemlist += '</div>';
677
						var itemlist = '<div class="flexCenter OflexCenter clearfix">';
678
						itemlist += '<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>';
679
						itemlist += '<div class="madiaInfo OmadiaInfo">';
680
						itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].resourceName + '</p>';
681
						itemlist += '<p class="h2Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>'
682
						itemlist += '<p class="h2Font ellipsisSty">用途:' + $info[i].supportedServices + '</p>'
683
						itemlist += '</div>'
684
						itemlist += '</div>';
629 685
						liItem.innerHTML = itemlist;
630 686
						var $itemlist = $(liItem);
631 687
						document.getElementById(aimId).appendChild(liItem)
632
						
633
						if($info[i].resourceType=="1"){
634
							(function(mo){
635
								cacheModel.getProfessor($info[i].professorId,function(sc,value){
636
									if(sc){
688

689
						if ($info[i].resourceType == "1") {
690
							(function (mo) {
691
								cacheModel.getProfessor($info[i].professorId, function (sc, value) {
692
									if (sc) {
637 693
										mo.find(".ownerName").html(value.name)
638 694
										var userType = autho(value.authType, value.orgAuth, value.authStatus);
639
										mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
640
									}else{
695
										mo.find(".ownerSty").addClass(userType.sty).attr("title", userType.title)
696
									} else {
641 697
										console.log("error")
642 698
									}
643 699
								})
644 700
							})($itemlist);
645
						}else if($info[i].resourceType=="2"){
646
							(function(mo){
647
								cacheModel.getCompany($info[i].orgId,function(sc,value){
648
									if(sc){
649
										if(value.forShort){
701
						} else if ($info[i].resourceType == "2") {
702
							(function (mo) {
703
								cacheModel.getCompany($info[i].orgId, function (sc, value) {
704
									if (sc) {
705
										if (value.forShort) {
650 706
											mo.find(".ownerName").html(value.forShort)
651
										}else{
707
										} else {
652 708
											mo.find(".ownerName").html(value.name)
653 709
										}
654
										if(value.authStatus==3) {
655
											mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
710
										if (value.authStatus == 3) {
711
											mo.find(".ownerSty").addClass("authicon-com-ok").attr("title", "科袖认证企业")
656 712
										}
657
									}else{
713
									} else {
658 714
										console.log("error")
659 715
									}
660 716
								})
@ -662,41 +718,41 @@ $(function() {
662 718
						}
663 719
					}
664 720
				}
665
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
666
                removeNodata(aimId);
667
                if($info.length == 0 && liLen == 0 ){
668
                	$("#"+aimId).hide()
669
                    insertNodata(aimId);
670
                }
671
                if ($info.length > rows) {
672
                    objSort[2].loadFlag=true;
673
                }
674
                if($info.length == 0){
675
                	objSort[2].loadFlag=false;
721
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
722
				removeNodata(aimId);
723
				if ($info.length == 0 && liLen == 0) {
724
					$("#" + aimId).hide()
725
					insertNodata(aimId);
726
				}
727
				if ($info.length > rows) {
728
					objSort[2].loadFlag = true;
729
				}
730
				if ($info.length == 0) {
731
					objSort[2].loadFlag = false;
676 732
					$(".loadtip").html('没有更多数据了');
677 733
					return;
678
                }
734
				}
679 735
			})
680 736
		},
681
		patentListVal = function() {
682
			var aimId="patentList"
683
			oAjax("/ajax/ppatent/index/search",{
737
		patentListVal = function () {
738
			var aimId = "patentList"
739
			oAjax("/ajax/ppatent/index/search", {
684 740
				"key": keyt,
685 741
				"sortNum": dataO.patSortNum,
686
				"createTime":dataO.patCreateTime,
742
				"createTime": dataO.patCreateTime,
687 743
				"id": dataO.patId,
688 744
				"rows": rows
689
			}, "get", function(res){
745
			}, "get", function (res) {
690 746
				var $info = res.data;
691
				if($info.length > 0) {
692
					$("#"+aimId).show()
747
				if ($info.length > 0) {
748
					$("#" + aimId).show()
693 749
					dataO.patSortNum = $info[$info.length - 1].sortNum;
694 750
					dataO.patCreateTime = $info[$info.length - 1].createTime;
695 751
					dataO.patId = $info[$info.length - 1].id;
696
			
697
					for(var i = 0; i < $info.length; i++) {
752

753
					for (var i = 0; i < $info.length; i++) {
698 754
						var liItem = document.createElement("li");
699
						liItem.setAttribute("data-id",$info[i].id);
755
						liItem.setAttribute("data-id", $info[i].id);
700 756
						liItem.className = "mui-table-view-cell"
701 757
						var oString = '<div class="flexCenter OflexCenter clearfix">'
702 758
						oString += '<div class="madiaHead patentHead"></div>'
@ -707,41 +763,41 @@ $(function() {
707 763
						document.getElementById(aimId).appendChild(liItem)
708 764
					}
709 765
				}
710
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
711
                removeNodata(aimId);
712
                if($info.length == 0 && liLen == 0 ){
713
                	$("#"+aimId).hide()
714
                    insertNodata(aimId);
715
                }
716
                if ($info.length > rows) {
717
                    objSort[4].loadFlag=true;
718
                }
719
                if($info.length == 0){
720
                	objSort[4].loadFlag=false;
766
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
767
				removeNodata(aimId);
768
				if ($info.length == 0 && liLen == 0) {
769
					$("#" + aimId).hide()
770
					insertNodata(aimId);
771
				}
772
				if ($info.length > rows) {
773
					objSort[4].loadFlag = true;
774
				}
775
				if ($info.length == 0) {
776
					objSort[4].loadFlag = false;
721 777
					$(".loadtip").html('没有更多数据了');
722 778
					return;
723
                }
779
				}
724 780
			})
725 781
		},
726
		paperListVal = function() {
727
			var aimId="paperList"
728
			oAjax("/ajax/ppaper/index/search",{
782
		paperListVal = function () {
783
			var aimId = "paperList"
784
			oAjax("/ajax/ppaper/index/search", {
729 785
				"key": keyt,
730 786
				"sortNum": dataO.parSortNum,
731
				"createTime":dataO.parCreateTime,
787
				"createTime": dataO.parCreateTime,
732 788
				"id": dataO.parId,
733 789
				"rows": rows
734
			}, "get", function(res){
790
			}, "get", function (res) {
735 791
				var $info = res.data;
736
				if($info.length > 0) {
737
					$("#"+aimId).show()
792
				if ($info.length > 0) {
793
					$("#" + aimId).show()
738 794
					dataO.parSortNum = $info[$info.length - 1].sortNum;
739 795
					dataO.parCreateTime = $info[$info.length - 1].createTime;
740 796
					dataO.parId = $info[$info.length - 1].id;
741
			
742
					for(var i = 0; i < $info.length; i++) {
797

798
					for (var i = 0; i < $info.length; i++) {
743 799
						var liItem = document.createElement("li");
744
						liItem.setAttribute("data-id",$info[i].id);
800
						liItem.setAttribute("data-id", $info[i].id);
745 801
						liItem.className = "mui-table-view-cell"
746 802
						var oString = '<div class="flexCenter OflexCenter clearfix">'
747 803
						oString += '<div class="madiaHead paperHead"></div>'
@ -752,379 +808,387 @@ $(function() {
752 808
						document.getElementById(aimId).appendChild(liItem)
753 809
					}
754 810
				}
755
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
756
                removeNodata(aimId);
757
                if($info.length == 0 && liLen == 0 ){
758
                	$("#"+aimId).hide()
759
                    insertNodata(aimId);
760
                }
761
                if ($info.length > rows) {
762
                    objSort[5].loadFlag=true;
763
                }
764
                if($info.length == 0){
765
                	objSort[5].loadFlag=false;
811
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
812
				removeNodata(aimId);
813
				if ($info.length == 0 && liLen == 0) {
814
					$("#" + aimId).hide()
815
					insertNodata(aimId);
816
				}
817
				if ($info.length > rows) {
818
					objSort[5].loadFlag = true;
819
				}
820
				if ($info.length == 0) {
821
					objSort[5].loadFlag = false;
766 822
					$(".loadtip").html('没有更多数据了');
767 823
					return;
768
                }
824
				}
769 825
			})
770 826
		},
771
		serviceListVal = function() {
772
			var aimId="serviceList"
773
			oAjax("/ajax/ware/index/search",{
827
		serviceListVal = function () {
828
			var aimId = "serviceList"
829
			oAjax("/ajax/ware/index/search", {
774 830
				"key": keyt,
775 831
				"sortFirst": dataO.serSortFirst,
776
				"time":dataO.serTime,
832
				"time": dataO.serTime,
777 833
				"id": dataO.serId,
778 834
				"rows": rows
779
			}, "get", function(res){
835
			}, "get", function (res) {
780 836
				var $info = res.data;
781
				if($info.length > 0) {
782
					$("#"+aimId).show()
837
				if ($info.length > 0) {
838
					$("#" + aimId).show()
783 839
					dataO.serSortFirst = $info[$info.length - 1].sortFirst;
784 840
					dataO.serTime = $info[$info.length - 1].modifyTime;
785 841
					dataO.serId = $info[$info.length - 1].id;
786
			
787
					for(var i = 0; i < $info.length; i++) {
788
						var cnt="", img="../images/default-service.jpg"
789
						if($info[i].images) {
842

843
					for (var i = 0; i < $info.length; i++) {
844
						var cnt = "",
845
							img = "../images/default-service.jpg"
846
						if ($info[i].images) {
790 847
							var subs = strToAry($info[i].images)
791
							if(subs.length > 0) {
792
								img="/data/ware" + subs[0]
848
							if (subs.length > 0) {
849
								img = "/data/ware" + subs[0]
793 850
							}
794 851
						}
795
						if($info[i].cnt){
796
							cnt="内容:"+$info[i].cnt
852
						if ($info[i].cnt) {
853
							cnt = "内容:" + $info[i].cnt
797 854
						}
798 855
						var liItem = document.createElement("li");
799
						liItem.setAttribute("data-id",$info[i].id);
856
						liItem.setAttribute("data-id", $info[i].id);
800 857
						liItem.className = "mui-table-view-cell"
801
						var itemlist ='<div class="flexCenter OflexCenter clearfix">';
802
							itemlist += '<div class="madiaHead resouseHead" style="background-image:url('+img+')"></div>';
803
							itemlist += '<div class="madiaInfo OmadiaInfo">';
804
							itemlist += '<p class="ellipsisSty-2 h1Font">'+$info[i].name+'</p>';
805
							itemlist +='<p class="h2Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>'
806
							itemlist += '<p class="h2Font ellipsisSty">' + cnt + '</p>'
807
							itemlist += '</div>'
808
							itemlist += '</div>';
858
						var itemlist = '<div class="flexCenter OflexCenter clearfix">';
859
						itemlist += '<div class="madiaHead resouseHead" style="background-image:url(' + img + ')"></div>';
860
						itemlist += '<div class="madiaInfo OmadiaInfo">';
861
						itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].name + '</p>';
862
						itemlist += '<p class="h2Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>'
863
						itemlist += '<p class="h2Font ellipsisSty">' + cnt + '</p>'
864
						itemlist += '</div>'
865
						itemlist += '</div>';
809 866
						liItem.innerHTML = itemlist;
810 867
						var $itemlist = $(liItem);
811 868
						document.getElementById(aimId).appendChild(liItem)
812
						
813
						if($info[i].category=="1"){
814
							(function(mo){
815
								cacheModel.getProfessor($info[i].owner,function(sc,value){
816
									if(sc){
869

870
						if ($info[i].category == "1") {
871
							(function (mo) {
872
								cacheModel.getProfessor($info[i].owner, function (sc, value) {
873
									if (sc) {
817 874
										mo.find(".ownerName").html(value.name)
818 875
										var userType = autho(value.authType, value.orgAuth, value.authStatus);
819
										mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
820
									}else{
876
										mo.find(".ownerSty").addClass(userType.sty).attr("title", userType.title)
877
									} else {
821 878
										console.log("error")
822 879
									}
823 880
								})
824 881
							})($itemlist);
825
						}else if($info[i].category=="2"){
826
							(function(mo){
827
								cacheModel.getCompany($info[i].owner,function(sc,value){
828
									if(sc){
829
										if(value.forShort){
882
						} else if ($info[i].category == "2") {
883
							(function (mo) {
884
								cacheModel.getCompany($info[i].owner, function (sc, value) {
885
									if (sc) {
886
										if (value.forShort) {
830 887
											mo.find(".ownerName").html(value.forShort)
831
										}else{
888
										} else {
832 889
											mo.find(".ownerName").html(value.name)
833 890
										}
834
										if(value.authStatus==3) {
835
											mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
891
										if (value.authStatus == 3) {
892
											mo.find(".ownerSty").addClass("authicon-com-ok").attr("title", "科袖认证企业")
836 893
										}
837
									}else{
894
									} else {
838 895
										console.log("error")
839 896
									}
840 897
								})
841 898
							})($itemlist);
842 899
						}
843
					
844
						
900

901

845 902
					}
846 903
				}
847
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
848
                removeNodata(aimId);
849
                if($info.length == 0 && liLen == 0 ){
850
                	$("#"+aimId).hide()
851
                    insertNodata(aimId);
852
                }
853
               	if ($info.length > rows) {
854
                    objSort[7].loadFlag=true;
855
                }
856
               	if($info.length == 0){
857
                	objSort[7].loadFlag=false;
904
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
905
				removeNodata(aimId);
906
				if ($info.length == 0 && liLen == 0) {
907
					$("#" + aimId).hide()
908
					insertNodata(aimId);
909
				}
910
				if ($info.length > rows) {
911
					objSort[7].loadFlag = true;
912
				}
913
				if ($info.length == 0) {
914
					objSort[7].loadFlag = false;
858 915
					$(".loadtip").html('没有更多数据了');
859 916
					return;
860
                }
917
				}
861 918
			})
862 919
		},
863
		clearToFun=function(sortN){
864
			objSort[sortN].loadFlag=true
920
		clearToFun = function (sortN) {
921
			objSort[sortN].loadFlag = true
865 922
			$(objSort[sortN].conbox).html("");
866 923
			$('.w').css('transform', 'translate3d(0px, 0px, 0px)')
867
			$('.swiper-container2 .swiper-slide-active').css('height','auto').siblings('.swiper-slide').css('height','0px');
924
			$('.swiper-container2 .swiper-slide-active').css('height', 'auto').siblings('.swiper-slide').css('height', '0px');
868 925
			mySwiper.update();
869 926
			dataO = {
870
				proSortFirst:"",
927
				proSortFirst: "",
871 928
				proStarLevel: "",
872 929
				proId: "",
873
				
874
				orgSortNum:"",
875
				orgModifyTime:"",
876
				orgId:"",
877
				
878
				artSortNum:"",
879
				artPublishTime:"",
880
				artId:"",
881
				
882
				resSortNum:"",
883
				resPublishTime:"",
884
				resId:"",
885
				
886
				patSortNum:"",
887
				patCreateTime:"",
888
				patId:"",
889
				
890
				parSortNum:"",
891
				parCreateTime:"",
892
				parId:"",
893
				
894
				serSortFirst:"",
930

931
				orgSortNum: "",
932
				orgModifyTime: "",
933
				orgId: "",
934

935
				artSortNum: "",
936
				artPublishTime: "",
937
				artId: "",
938

939
				resSortNum: "",
940
				resPublishTime: "",
941
				resId: "",
942

943
				patSortNum: "",
944
				patCreateTime: "",
945
				patId: "",
946

947
				parSortNum: "",
948
				parCreateTime: "",
949
				parId: "",
950

951
				serSortFirst: "",
895 952
				serTime: "",
896 953
				serId: "",
897 954
			};
898 955

899 956
			tabToFun(sortN)
900 957
		},
901
		tabToFun=function(item){   //判断自定义属性编号
902
			
903
			if(!item){ item=1 }
904
			var tabLoad=objSort[item].loadFlag
905
			
958
		tabToFun = function (item) { //判断自定义属性编号
959

960
			if (!item) {
961
				item = 1
962
			}
963
			var tabLoad = objSort[item].loadFlag
964

906 965
			//console.log(item+"*****"+tabLoad)
907 966
			$("#searchval").val(searchTmp)
908 967

909
			if(item==1 && tabLoad){
968
			if (item == 1 && tabLoad) {
910 969
				expertBox();
911 970
				$(".loadtip").html('上拉加载更多');
912
				mySwiper.update(); 
913
			}else if(item==2 && tabLoad){
971
				mySwiper.update();
972
			} else if (item == 2 && tabLoad) {
914 973
				resourceListVal();
915 974
				$(".loadtip").html('上拉加载更多');
916
				mySwiper.update(); 
917
			}else if(item==3 && tabLoad){
975
				mySwiper.update();
976
			} else if (item == 3 && tabLoad) {
918 977
				articalListVal();
919 978
				$(".loadtip").html('上拉加载更多');
920 979
				mySwiper.update();
921
			}else if(item==4 && tabLoad){
980
			} else if (item == 4 && tabLoad) {
922 981
				patentListVal();
923 982
				$(".loadtip").html('上拉加载更多');
924 983
				mySwiper.update();
925
			}else if(item==5 && tabLoad){
984
			} else if (item == 5 && tabLoad) {
926 985
				paperListVal();
927 986
				$(".loadtip").html('上拉加载更多');
928 987
				mySwiper.update();
929
			}else if(item==6 && tabLoad){
988
			} else if (item == 6 && tabLoad) {
930 989
				companyListVal();
931 990
				$(".loadtip").html('上拉加载更多');
932 991
				mySwiper.update();
933
			}else if(item==7 && tabLoad){
992
			} else if (item == 7 && tabLoad) {
934 993
				serviceListVal();
935 994
				$(".loadtip").html('上拉加载更多');
936 995
				mySwiper.update();
937
			}
938
			else if(item==8 && tabLoad){   //上拉下拉刷新
939
			var  subjectVal= $("#subject li.filterCurrent").text();
940
			if(subjectVal=="不限"){
941
				subject = "";
942
			}else{
943
				subject = subjectVal;
944
			}
945
			var  industryVal= $("#industry li.filterCurrent").text();
946
			if(industryVal=="不限"){
947
				industry = "";
948
			}else{
949
				industry = industryVal;
950
			}
951
			var  addressVal= $("#address li.filterCurrent").text();
952
			if(addressVal=="不限"){
953
				address = "";
954
			}else{
955
				address = addressVal;
956
			}
996
			} else if (item == 9 && tabLoad) {
997
				unpatent() //非专刷新
998
				$(".loadtip").html('上拉加载更多');
999
				mySwiper.update();
1000
			} else if (item == 8 && tabLoad) { //上拉下拉刷新
1001
				var subjectVal = $("#subject li.filterCurrent").text();
1002
				if (subjectVal == "不限") {
1003
					subject = "";
1004
				} else {
1005
					subject = subjectVal;
1006
				}
1007
				var industryVal = $("#industry li.filterCurrent").text();
1008
				if (industryVal == "不限") {
1009
					industry = "";
1010
				} else {
1011
					industry = industryVal;
1012
				}
1013
				var addressVal = $("#address li.filterCurrent").text();
1014
				if (addressVal == "不限") {
1015
					address = "";
1016
				} else {
1017
					address = addressVal;
1018
				}
957 1019
				teamListVal();
958 1020
				$(".loadtip").html('上拉加载更多');
959 1021
				mySwiper.update();
960 1022
			}
961
			if(!tabLoad){
1023
			if (!tabLoad) {
962 1024
				$(".loadtip").html('没有更多数据了');
963 1025
			}
964 1026
		},
965
		bindComEvent=function(){
1027
		bindComEvent = function () {
966 1028
			//============open首次加载================
967
				if(tagnum){
968
					tabToFun(tagnum)
969
					var indexTab=0;
970
					for(var i in tabOrder){
971
						if(tabOrder[i]==tagnum){
972
							indexTab=i
973
						}
1029
			if (tagnum) {
1030
				tabToFun(tagnum)
1031
				var indexTab = 0;
1032
				for (var i in tabOrder) {
1033
					if (tabOrder[i] == tagnum) {
1034
						indexTab = i
974 1035
					}
975
					$('.swiper-slide-tab').eq(indexTab).addClass('active-tab').siblings('.swiper-slide-tab').removeClass('active-tab');
976
					mySwiperTab.slideTo(indexTab,500, false);
977
					mySwiper2.slideTo(indexTab, 500, false)
978
					$("#sele").addClass("displayNone");
979
					$("#searB").removeClass("searchboxNewT");
980 1036
				}
1037
				$('.swiper-slide-tab').eq(indexTab).addClass('active-tab').siblings('.swiper-slide-tab').removeClass('active-tab');
1038
				mySwiperTab.slideTo(indexTab, 500, false);
1039
				mySwiper2.slideTo(indexTab, 500, false)
1040
				$("#sele").addClass("displayNone");
1041
				$("#searB").removeClass("searchboxNewT");
1042
			}
981 1043
			//============open首次加载================
982
			
1044

983 1045
			//============open筛选条件================
984
				document.getElementById("oRes").addEventListener("click", function() {//重置条件筛选
985
					filterList()
986
				})
987
				document.getElementById("com").addEventListener('click', function() {//完成条件筛选
988
					var arr = [],tagm=0;
989
					for(var n = 0; n < 3; n++) {
990
						if(document.getElementsByClassName('spantext')[n].innerHTML == "不限") {
991
							arr[n] = "";
992
						} else {
993
							arr[n] = document.getElementsByClassName('spantext')[n].innerHTML;
994
							tagm++;
995
						}
996
					}
997
					if(tagm>0){
998
						document.getElementById("sele").getElementsByTagName("span")[0].innerHTML=tagm;
999
					}
1000
					var index = 1
1001
					if ($('.swiper-slide-active').attr('data-tab') >1 ) {
1002
						index = 8
1003
					}
1004
					
1005
					$(objSort[index].conbox).html("");
1006
					objSort[index].loadFlag=true
1007
					clearToFun(index)
1008
					//expertBox()
1009
					
1010
					$('html').removeClass('mmenu-opening');
1011
					setTimeout(function(){
1012
						$('html').removeClass('mmenu-opened').removeClass('mmenu-right');
1013
						$('#menu').removeClass('mmenu-opened');
1014
		
1015
						$(window).unbind('resize.mmenu');
1016
					},525);
1017
				})
1018
				
1019
				$(".filterUl").on("click", "li", function() {//筛选条件的选择
1020
					this.parentNode.querySelector('li.filterCurrent').classList.remove("filterCurrent");
1021
					this.classList.add("filterCurrent");
1022
					this.parentNode.parentNode.querySelector(".spantext").innerText = this.innerText;
1023
				})
1024
				$(".filterListNew").on("click", ".rightbtn", function() {//筛选条件的展开关闭
1025
					if(this.className == "rightbtn filterActive") {
1026
						this.classList.remove("filterActive");
1027
						this.parentNode.querySelector(".filterUl").classList.remove("filterUlactive");
1028
						this.querySelector("em").classList.remove("unfoldtr");
1029
						this.querySelector("em").classList.add("foldtr");
1046
			document.getElementById("oRes").addEventListener("click", function () { //重置条件筛选
1047
				filterList()
1048
			})
1049
			document.getElementById("com").addEventListener('click', function () { //完成条件筛选
1050
				var arr = [],
1051
					tagm = 0;
1052
				for (var n = 0; n < 3; n++) {
1053
					if (document.getElementsByClassName('spantext')[n].innerHTML == "不限") {
1054
						arr[n] = "";
1030 1055
					} else {
1031
						this.classList.add("filterActive");
1032
						this.parentNode.querySelector(".filterUl").classList.add("filterUlactive");
1033
						this.querySelector("em").classList.remove("foldtr");
1034
						this.querySelector("em").classList.add("unfoldtr");
1056
						arr[n] = document.getElementsByClassName('spantext')[n].innerHTML;
1057
						tagm++;
1035 1058
					}
1036
				})
1059
				}
1060
				if (tagm > 0) {
1061
					document.getElementById("sele").getElementsByTagName("span")[0].innerHTML = tagm;
1062
				}
1063
				var index = 1
1064
				if ($('.swiper-slide-active').attr('data-tab') > 1) {
1065
					index = 8
1066
				}
1067

1068
				$(objSort[index].conbox).html("");
1069
				objSort[index].loadFlag = true
1070
				clearToFun(index)
1071
				//expertBox()
1072

1073
				$('html').removeClass('mmenu-opening');
1074
				setTimeout(function () {
1075
					$('html').removeClass('mmenu-opened').removeClass('mmenu-right');
1076
					$('#menu').removeClass('mmenu-opened');
1077

1078
					$(window).unbind('resize.mmenu');
1079
				}, 525);
1080
			})
1081

1082
			$(".filterUl").on("click", "li", function () { //筛选条件的选择
1083
				this.parentNode.querySelector('li.filterCurrent').classList.remove("filterCurrent");
1084
				this.classList.add("filterCurrent");
1085
				this.parentNode.parentNode.querySelector(".spantext").innerText = this.innerText;
1086
			})
1087
			$(".filterListNew").on("click", ".rightbtn", function () { //筛选条件的展开关闭
1088
				if (this.className == "rightbtn filterActive") {
1089
					this.classList.remove("filterActive");
1090
					this.parentNode.querySelector(".filterUl").classList.remove("filterUlactive");
1091
					this.querySelector("em").classList.remove("unfoldtr");
1092
					this.querySelector("em").classList.add("foldtr");
1093
				} else {
1094
					this.classList.add("filterActive");
1095
					this.parentNode.querySelector(".filterUl").classList.add("filterUlactive");
1096
					this.querySelector("em").classList.remove("foldtr");
1097
					this.querySelector("em").classList.add("unfoldtr");
1098
				}
1099
			})
1037 1100
			//============end筛选条件================
1038 1101

1039 1102
			//============open搜索================
1040
				document.getElementById("searchval").addEventListener("keypress", 
1041
				function() {//搜索enter
1103
			document.getElementById("searchval").addEventListener("keypress",
1104
				function () { //搜索enter
1042 1105
					var e = event || window.event;
1043
					if(e.keyCode == 13) {
1044
				 		e.preventDefault();  
1045
						var sC=$.trim($("#searchval").val());
1046
						var item=$('.swiper-slide-tab.active-tab').attr("data-tab")
1047
						tagnum=item
1048
						if(sC){
1049
							keyt =sC
1050
							searchTmp=keyt
1106
					if (e.keyCode == 13) {
1107
						e.preventDefault();
1108
						var sC = $.trim($("#searchval").val());
1109
						var item = $('.swiper-slide-tab.active-tab').attr("data-tab")
1110
						tagnum = item
1111
						if (sC) {
1112
							keyt = sC
1113
							searchTmp = keyt
1051 1114
							wlog("kw", keyt);
1052 1115
							clearToFun(tagnum)
1053
						}else{
1116
						} else {
1054 1117
							bombox("请输入关键词");
1055 1118
							return;
1056 1119
						}
1057
				    }
1120
					}
1058 1121
				});
1059 1122
			//============end搜索================	
1060
			
1123

1061 1124
			//============open swiper================
1062
			$('.swiper-slide-tab').unbind("click").on("click",function(){//tabClick
1063
				if($(this).index()==0 || $(this).index()){
1125
			$('.swiper-slide-tab').unbind("click").on("click", function () { //tabClick
1126
				if ($(this).index() == 0 || $(this).index()) {
1064 1127
					$("#sele").removeClass("displayNone");
1065 1128
					$("#searB").addClass("searchboxNewT");
1066
				}else{
1129
				} else {
1067 1130
					$("#sele").addClass("displayNone");
1068 1131
					$("#searB").removeClass("searchboxNewT");
1069 1132
				}
1070 1133
				$(this).addClass('active-tab').siblings('.swiper-slide-tab').removeClass('active-tab');
1071
				var tabitem=$(this).attr("data-tab");
1134
				var tabitem = $(this).attr("data-tab");
1072 1135
				mySwiper2.slideTo($(this).index(), 500, false)
1073 1136
				mySwiperTab.slideTo($(this).index(), 500, false)
1074
				if($(this).index()<3){
1137
				if ($(this).index() < 3) {
1075 1138
					$(".tr").css('transform', 'translate3d(0px, 0px, 0px)')
1076 1139
				}
1077
				tagnum=tabitem
1140
				tagnum = tabitem
1078 1141
				clearToFun(tagnum)
1079
				
1142

1080 1143
				$('.w').css('transform', 'translate3d(0px, 0px, 0px)')
1081
				$('.swiper-container2 .swiper-slide-active').css('height','auto').siblings('.swiper-slide').css('height','0px');
1144
				$('.swiper-container2 .swiper-slide-active').css('height', 'auto').siblings('.swiper-slide').css('height', '0px');
1082 1145
				mySwiper.update();
1083 1146
			});
1084 1147
			//============end swiper================
1085
			
1148

1086 1149
			//============open模块链接跳转================
1087
				$("#proList").on("click", "li", function() {
1088
					var id = this.getAttribute("data-id");
1089
					location.href="http://" + window.location.host + "/e/p.html?id=" + id;
1090
				})
1091
				$("#serviceList").on("click", "li", function() {
1092
					var id = this.getAttribute("data-id");
1093
					location.href="http://" + window.location.host + "/e/s.html?id=" + id;
1094
				})
1095
				$("#resourceList").on("click", "li", function() {
1096
					var id = this.getAttribute("data-id");
1097
					location.href="http://" + window.location.host + "/e/r.html?id=" + id;
1098
				})
1099
				$("#articleList").on("click", "li", function() {
1100
					var id = this.getAttribute("data-id");
1101
					location.href="http://" + window.location.host + "/e/a.html?id=" + id;
1102
				})
1103
				$("#paperList").on("click", "li", function() {
1104
					var id = this.getAttribute("data-id");
1105
					location.href="http://" + window.location.host + "/e/l.html?id=" + id;
1106
				})
1107
				$("#patentList").on("click", "li", function() {
1108
					var id = this.getAttribute("data-id");
1109
					location.href="http://" + window.location.host + "/e/z.html?id=" + id;
1110
				})
1111
				$("#companyList").on("click", "li", function() {
1112
					var id = this.getAttribute("data-id");
1113
					location.href="http://" + window.location.host + "/e/c.html?id=" + id;
1114
				})
1115
				//跳转
1116
				$("#teamList").on("click", "li", function() {
1117
					var id = this.getAttribute("data-id");
1118
					location.href="http://" + window.location.host + "/e/2.html?id=" + id;
1119
				})
1150
			$("#proList").on("click", "li", function () {
1151
				var id = this.getAttribute("data-id");
1152
				location.href = "http://" + window.location.host + "/e/p.html?id=" + id;
1153
			})
1154
			$("#serviceList").on("click", "li", function () {
1155
				var id = this.getAttribute("data-id");
1156
				location.href = "http://" + window.location.host + "/e/s.html?id=" + id;
1157
			})
1158
			$("#resourceList").on("click", "li", function () {
1159
				var id = this.getAttribute("data-id");
1160
				location.href = "http://" + window.location.host + "/e/r.html?id=" + id;
1161
			})
1162
			$("#articleList").on("click", "li", function () {
1163
				var id = this.getAttribute("data-id");
1164
				location.href = "http://" + window.location.host + "/e/a.html?id=" + id;
1165
			})
1166
			$("#paperList").on("click", "li", function () {
1167
				var id = this.getAttribute("data-id");
1168
				location.href = "http://" + window.location.host + "/e/l.html?id=" + id;
1169
			})
1170
			$("#patentList").on("click", "li", function () {
1171
				var id = this.getAttribute("data-id");
1172
				location.href = "http://" + window.location.host + "/e/z.html?id=" + id;
1173
			})
1174
			$("#companyList").on("click", "li", function () {
1175
				var id = this.getAttribute("data-id");
1176
				location.href = "http://" + window.location.host + "/e/c.html?id=" + id;
1177
			})
1178
			//跳转
1179
			$("#teamList").on("click", "li", function () {
1180
				var id = this.getAttribute("data-id");
1181
				location.href = "http://" + window.location.host + "/e/2.html?id=" + id;
1182
			})
1183
			$("#unpatentList").on("click", "li", function () {
1184
				var id = this.getAttribute("data-id");
1185
				location.href = "http://" + window.location.host + "/e/3.html?id=" + id;
1186
			})
1120 1187
			//============end模块链接跳转================
1121 1188

1122 1189
		}
1123
	
1190

1124 1191
	filterList()
1125 1192
	expertBox()
1126 1193
	bindComEvent()
1127
})
1128

1129

1130

1194
})

+ 6 - 1
js/teamManage.js

@ -133,6 +133,7 @@ $(function () {
133 133
				pageNo: pageNo,
134 134
			}, "get", function (res) {
135 135
				var $info = res.data.data;
136
				console.log($info)
136 137
				if ($info.length > 0) {
137 138
					$("#" + aimId).parent().find(".js-load-more").show();
138 139
					$("#" + aimIdF).parent().find(".js-load-more").show();
@ -159,6 +160,10 @@ $(function () {
159 160
							chiefId = $info[i].professor
160 161
						}
161 162
					}
163
164
165
166
					       
162 167
					// console.log($info[i])
163 168
					if (ff) {
164 169
						detailPro(aimIdF, 1)
@ -850,7 +855,7 @@ $(function () {
850 855
				professorListVal(true)
851 856
			})
852 857
853
			$('.queStep').on('click', '.steptit>a', function () { // a 表钱tab切换
858
			$('.queStep').on('click', '.steptit>a', function () { // a 标签tab切换
854 859
				$('.queStep .steptit>a').removeClass('active')
855 860
				$(this).addClass('active')
856 861
				var st = $(this).attr("data-index")