瀏覽代碼

1、修改资源弹窗在ie中input框获取不到焦点的问题
2、添加我的工作台数据填充

luyanan 8 年之前
父節點
當前提交
9fc0c15412

+ 1 - 0
src/main/webapp/account-set.html

5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>科袖-账号设置(个人信息)</title>
7
<title>科袖-账号设置(个人信息)</title>
8
<link href="css/bootstrap.min.css" rel="stylesheet">
8
<link rel="stylesheet" href="css/reset.css" />
9
<link rel="stylesheet" href="css/reset.css" />
9
<link type="text/css" href="css/index.css" rel="stylesheet">
10
<link type="text/css" href="css/index.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/common.css" rel="stylesheet">

+ 1 - 1
src/main/webapp/css/common.css

10
#header{width:100%;min-width:1170px; height:60px; background:rgba(255,132,0,1); position:fixed; top:0; z-index:999; }
10
#header{width:100%;min-width:1170px; height:60px; background:rgba(255,132,0,1); position:fixed; top:0; z-index:999; }
11
.logo{ display:block; width:80px; height:50px; background:url(../images/logo2.png) no-repeat; margin-left:80px; margin-top:5px; float:left;}
11
.logo{ display:block; width:80px; height:50px; background:url(../images/logo2.png) no-repeat; margin-left:80px; margin-top:5px; float:left;}
12
.searchblock{ width:280px; height:35px; position:absolute; left:50%; top:50%; margin-left:-132px; margin-top:-17.5px; display:none;}
12
.searchblock{ width:280px; height:35px; position:absolute; left:50%; top:50%; margin-left:-132px; margin-top:-17.5px; display:none;}
13
.search-txt{ width:220px; line-height: 33px; background:#fff; border:none;-moz-border-radius:10px 0 0 10px;-webkit-border-radius:10px 0 0 10px; border-radius:10px 0 0 10px; behavior:url(../js/ie-css3.htc); float:left;font-size:14px;line-height35px; padding-left:10px; color:#a3a3a3;}
13
.search-txt{ width:220px;/*line-height兼容*/line-height:35px; height:35px; background:#fff; border:none;-moz-border-radius:10px 0 0 10px;-webkit-border-radius:10px 0 0 10px; border-radius:10px 0 0 10px; behavior:url(../js/ie-css3.htc); float:left;font-size:14px;padding-left:10px; color:#a3a3a3;}
14
.search-btn{ width:35px; height:35px; background:#fff; border-radius:0 10px 10px 0;-moz-border-radius:0 10px 10px 0;-webkit-border-radius:0 10px 10px 0; float:left; cursor:pointer; behavior:url(../js/ie-css3.htc);cursor:pointer;}
14
.search-btn{ width:35px; height:35px; background:#fff; border-radius:0 10px 10px 0;-moz-border-radius:0 10px 10px 0;-webkit-border-radius:0 10px 10px 0; float:left; cursor:pointer; behavior:url(../js/ie-css3.htc);cursor:pointer;}
15
.search-icon{ display:block; width:20px; height:20px; background:
15
.search-icon{ display:block; width:20px; height:20px; background:
16
url(../images/index-icon.png) no-repeat; background-position:left; margin:8px;}
16
url(../images/index-icon.png) no-repeat; background-position:left; margin:8px;}

+ 7 - 7
src/main/webapp/css/index.css

13
.theme h2{font-size:30px;line-height:50px; color:#fff; text-align:center; text-shadow:0px 0px 10px #2d2524;}
13
.theme h2{font-size:30px;line-height:50px; color:#fff; text-align:center; text-shadow:0px 0px 10px #2d2524;}
14
.main-search{ width:700px; height:46px; margin:auto; margin-top:20px;}
14
.main-search{ width:700px; height:46px; margin:auto; margin-top:20px;}
15

15

16
.sear-txt{ width:530px; height:38px; background:#fff; border:none; border-radius:10px 0 0 10px; float:left;font-size:16px;line-height:40px; padding-left:20px; color:#a3a3a3;}
16
.sear-txt{ width:530px; height:40px; background:#fff; border:none; border-radius:10px 0 0 10px; float:left;font-size:16px;line-height:40px; padding-left:20px; color:#a3a3a3;}
17
.sear-btn{ width:140px; height:40px; background:#ff8400; border-radius:0 10px 10px 0; float:left; cursor:pointer;font-size:18px;line-height:40px;; color:#fff; text-align:center; }
17
.sear-btn{ width:140px; height:40px; background:#ff8400; border-radius:0 10px 10px 0; float:left; cursor:pointer;font-size:18px;line-height:40px;; color:#fff; text-align:center; }
18
/*寻找专家流程*/
18
/*寻找专家流程*/
19
.process{ width:806px; height:205px; margin:auto;}
19
.process{ width:806px; height:205px; margin:auto;}
26
.process p{font-size:14px;line-height:20px; color:#888; text-align:center;  }
26
.process p{font-size:14px;line-height:20px; color:#888; text-align:center;  }
27
.nextR{ width:100px; height:205px; float:left; background:url(../images/nextR.png) no-repeat center center; }
27
.nextR{ width:100px; height:205px; float:left; background:url(../images/nextR.png) no-repeat center center; }
28
/*热门领域*/
28
/*热门领域*/
29
.hot-field{ width:100%; height:540px; background:url(../images/fieldbg.jpg) no-repeat; background-size:100% 100%;padding:40px 0;}
30
.hh4{width:180px; height:46px;padding: 2px 20px; text-align:center; margin:auto;border:1px #fff solid; border-radius:10px;font-size:26px;line-height:46px; color:#fff; text-align:center; }
29
.hot-field{ width:100%;  background:url(../images/fieldbg.jpg) no-repeat; background-size:100% 100%;padding:40px 0;}
30
.hh4{width:180px; height:46px;padding: 2px 20px; text-align:center; margin:auto;border:1px #fff solid; border-radius:10px;font-size:26px;line-height:38px; color:#fff; text-align:center; }
31
.field-box{ width:856px; height:360px; margin:30px auto;}
31
.field-box{ width:856px; height:360px; margin:30px auto;}
32
.field{ width:164px; height:140px; padding:20px 25px; float:left;}
32
.field{ /*width:164px; height:140px;*/ padding:20px 25px; float:left;}
33
.field-name{ display:block; width:164px;font-size:18px;line-height:40px; color:#fff;  font-weight:bold;text-align:center;}
33
.field-name{ display:block; width:164px;font-size:18px;line-height:40px; color:#fff;  font-weight:bold;text-align:center;}
34
.field-icon{ display:block; width:100px; height:100px; border:2px #fff solid; border-radius:50%; margin:auto;}
34
.field-icon{ display:block; width:100px; height:100px; border:2px #fff solid; border-radius:50%; margin:auto;}
35
.field-name:hover{color:#fff;}
35
.field-name:hover{color:#fff;}
44
.more{ display:block; width:132px; height:35px; margin:auto; border:1px #fff solid; border-radius:10px;font-size:14px;line-height:35px;  text-align:center; color:#fff;}
44
.more{ display:block; width:132px; height:35px; margin:auto; border:1px #fff solid; border-radius:10px;font-size:14px;line-height:35px;  text-align:center; color:#fff;}
45
.hot-field .more{ color:#fff;}
45
.hot-field .more{ color:#fff;}
46
/*热门专家*/
46
/*热门专家*/
47
.hot-professor{ width:100%; height:750px; padding: 40px 0; margin-bottom: 60px; }
47
.hot-professor{ width:100%;  padding: 40px 0; }
48
.hot-professor h4{border:1px #ff8400 solid;color:#ff8400;}
48
.hot-professor h4{border:1px #ff8400 solid;color:#ff8400;}
49
.hot-professor .more{border:1px #ff8400 solid;color:#ff8400;}
49
.hot-professor .more{border:1px #ff8400 solid;color:#ff8400;}
50
.professor-box{ width:900px; height:610px; margin:40px auto;}
50
.professor-box{ width:900px; height:610px; margin:20px auto;}
51
.professor{ width:175px; height:255px; border-radius:10px; overflow:hidden; position:relative; float:left; margin:25px;}
51
.professor{ width:175px; height:255px; border-radius:10px; overflow:hidden; position:relative; float:left; margin:25px;}
52
.professor img{width:175px; height:255px;}
52
.professor img{width:175px; height:255px;}
53
.professor-data{ width:100%; height:300px; position:absolute; font-size:14px;line-height:16px; text-align:center; color:#fff;top:58%; background:url(../images/p-bg.png) no-repeat;padding:25px 0; }
53
.professor-data{ width:100%; height:300px; position:absolute; font-size:14px;line-height:16px; text-align:center; color:#fff;top:58%; background:url(../images/p-bg.png) no-repeat;padding:25px 0; }
316
.shareabout .morebtn .morelink{ color:#333;font-size:14px;line-height:60px;float:right; margin-right:20px;}
316
.shareabout .morebtn .morelink{ color:#333;font-size:14px;line-height:60px;float:right; margin-right:20px;}
317

317

318
/*个人修改页面科研资源*/
318
/*个人修改页面科研资源*/
319
.enterwork{ color:#333;position:absolute; bottom:10px; left:110px;}
319
.enterwork{ color:#333;position:absolute; bottom:10px; left:110px; cursor: pointer;}
320

320

321
/*机构信息页面*/
321
/*机构信息页面*/
322
.head-org{ float:left;  position: relative;width:180px; height:180px; overflow:hidden;}
322
.head-org{ float:left;  position: relative;width:180px; height:180px; overflow:hidden;}

+ 3 - 2
src/main/webapp/css/popup.css

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

14

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

16

28
.requiredcon{ color:red; position:absolute;font-size:16px; top:0; right:0;}
28
.requiredcon{ color:red; position:absolute;font-size:16px; top:0; right:0;}
29

29

30
.resouimgbox{ width:240px; margin:10px;}
30
.resouimgbox{ width:240px; margin:10px;}
31
.resouimg{width:100%; border:1px solid #d6d6d6; height:240px; position:relative; overflow:hidden;  }
31
.resouimg{width:240px; border:1px solid #d6d6d6; height:240px; position:relative; overflow:hidden;  }
32
.resouup{width: 100%;height:100%;position: absolute; top:0;background-color: rgba(0,0,0,0.4);font-size:14px;line-height:240px;color: #fff; text-align:center;}
32
.resouup{width: 100%;height:100%;position: absolute; top:0;background-color: rgba(0,0,0,0.4);font-size:14px;line-height:240px;color: #fff; text-align:center;}
33
#resouup{ width: 100%;height:100%;box-shadow: none;opacity:0; position: absolute;left:0;top:0px;cursor: pointer;}
33
#resouup{ width: 100%;height:100%;box-shadow: none;opacity:0; position: absolute;left:0;top:0px;cursor: pointer;}
34
.resouimgmsg{ position: relative; top:10px;left:30px;font-size: 13px;color: #aaa;}
34
/*资源图片上传*/
35
/*资源图片上传*/
35
.resouimgshow{ display:none; width:100%; height:100%;}
36
.resouimgshow{ display:none; width:100%; height:100%;}
36
.wrap{ height:200px;position:relative; }
37
.wrap{ height:200px;position:relative; }

+ 5 - 3
src/main/webapp/css/workspace.css

31

31

32
.workmysrc{display:none;}
32
.workmysrc{display:none;}
33
.workmysrc:first-child{display:block;}
33
.workmysrc:first-child{display:block;}
34
.workmysrc .workbtn{ display:block;background:#ff8400;font-size:14px;line-height:30px;color:#fff; width:140px; padding:0 20px; border-radius:4px; cursor:pointer; margin-bottom:10px;}
34
.workmysrc .workbtn{ display:block;background:#ff8400;text-align: center;font-size:14px;line-height:30px;color:#fff; width:140px; padding:0 20px; border-radius:4px; cursor:pointer; margin-bottom:10px;}
35
.maintab{ border-bottom:1px dashed #d7d7d7; margin-top:20px; overflow:hidden;}
35
.maintab{ border-bottom:1px dashed #d7d7d7; margin-top:20px; overflow:hidden;}
36
.maintab:last-child{border-bottom:none;}
36
.maintab:last-child{border-bottom:none;}
37
.worktab *{ text-align:center; color:#000;}
37
.worktab *{ text-align:center; color:#000;}
38
.lefttab{ width:16%;min-width: 162px; max-height:400px; overflow:hidden;}
38
.lefttab{ width:16%;min-width: 162px; max-height:400px; overflow:hidden;}
39
.resoubrief{width:100%;height:300px; overflow:hidden;}
39
.resoubrief{width:100%;height:300px; overflow:hidden;}
40
.resoubrief tr td{ /*border-bottom:1px solid #d6d6d6;*/ min-height:200px; padding:6px 0;}
40
.resoubrief tr td{ /*border-bottom:1px solid #d6d6d6;*/ max-height:180px; padding:6px 0;}
41
.resoubrief tr td ul{max-height: 260px;overflow: hidden;}
41
.resoubrief tr td ul{max-height: 260px;overflow: hidden;}
42
.resoubrief tr td ul li{ width:100%; max-width:160px; text-indent:1.5em; word-break: break-all;text-align: justify; /*text-overflow:ellipsis; overflow:hidden; white-space:nowrap;*/}
42
.resoubrief tr td ul li{ width:100%; max-width:160px; text-indent:1.5em; word-break: break-all;text-align: justify; /*text-overflow:ellipsis; overflow:hidden; white-space:nowrap;*/}
43
.resoubrief tr td ul li:first-child{text-indent:0;font-size: 15px;color: #ff8400;}
43
.resoubrief tr td ul li:first-child{text-indent:0;font-size: 15px;color: #ff8400;}
44
.resoumag{ display:block; background:#ff8400;font-size:14px;line-height:30px;color:#fff; border-radius:4px; text-align:center; cursor:pointer;}
44
.resoubrief tr td .resoimgbox{width: 160px; height: 160px; overflow:hidden;}
45
.managebtn{ display:block; background:#aaa;margin:auto;width:120px;font-size:14px;line-height:30px;color:#fff; border-radius:4px; text-align:center; cursor:pointer;}
46

45
.righttab{ width:82%;}
47
.righttab{ width:82%;}
46
.worktab a{ color:#333;}
48
.worktab a{ color:#333;}
47
.worktab a:hover{color:#ff8400;}
49
.worktab a:hover{color:#ff8400;}

+ 2 - 1
src/main/webapp/index.html

6
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8
<title>科袖-首页</title>
8
<title>科袖-首页</title>
9
<link href="css/bootstrap.min.css" rel="stylesheet">
9
<link rel="stylesheet" href="css/reset.css" />
10
<link rel="stylesheet" href="css/reset.css" />
10
<link type="text/css" href="css/index.css" rel="stylesheet">
11
<link type="text/css" href="css/index.css" rel="stylesheet">
11
<link type="text/css" href="css/common.css" rel="stylesheet">
12
<link type="text/css" href="css/common.css" rel="stylesheet">
16
	<div id="header">
17
	<div id="header">
17
        <a href="index.html" alt="科袖" class="logo"></a>
18
        <a href="index.html" alt="科袖" class="logo"></a>
18
        <div class="searchblock" id="serc-index">
19
        <div class="searchblock" id="serc-index">
19
            <input type="text" placeholder="搜索专家、研究方向或科研机构" class="search-txt" id="hsearchContent" >
20
            <input type="text" placeholder="搜索专家、研究方向或科研机构" class="search-txt" id="hsearchContent" />
20
            <div class="search-btn" id="hsearch"><span class="search-icon" ></span></div>
21
            <div class="search-btn" id="hsearch"><span class="search-icon" ></span></div>
21
        </div>
22
        </div>
22
        <div class="header-right"> 
23
        <div class="header-right"> 

+ 1 - 49
src/main/webapp/information.html

460
				</div>
460
				</div>
461
				
461
				
462
                <div class="right-box introduction">
462
                <div class="right-box introduction">
463
					<div class="right-title"><span>科研资源</span> <a href="workspaces.html" class="enterwork">进入我的工作台</a>   </div>
463
					<div class="right-title"><span>科研资源</span> <a  class="enterwork"id="enterwork">进入我的工作台</a>   </div>
464
					<div class="infor-browse">
464
					<div class="infor-browse">
465
                    	<div class="shareabout">
465
                    	<div class="shareabout">
466
                            <div class="sharesrcbox">
466
                            <div class="sharesrcbox">
467
                                <div class="sharescrollbox">
467
                                <div class="sharescrollbox">
468
                                    <div class="sharesrc">
469
                                    	<div class="shareshow">
470
                                            <a href=""><img src="" width="100%" height="140"></a>
471
                                            <div class="shareopeart"></div>
472
                                        </div>
473
                                        <p>资源名称:XXXXX检测仪</p>
474
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
475
                                    </div>
476
                                    <div class="sharesrc">
477
                                    	<div class="shareshow">
478
                                            <img src="" width="100%" height="140">
479
                                            <div class="shareopeart"></div>
480
                                        </div>
481
                                        <p>资源名称:XXXXX检测仪</p>
482
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
483
                                    </div>
484
                                    <div class="sharesrc">
485
                                    	<div class="shareshow">
486
                                            <img src="" width="100%" height="140">
487
                                            <div class="shareopeart"></div>
488
                                        </div>
489
                                        <p>资源名称:XXXXX检测仪</p>
490
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
491
                                    </div>
492
                                    <div class="sharesrc">
493
                                    	<div class="shareshow">
494
                                            <img src="" width="100%" height="140">
495
                                            <div class="shareopeart"></div>
496
                                        </div>
497
                                        <p>资源名称:XXXXX检测仪</p>
498
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
499
                                    </div>
500
                                    <div class="sharesrc">
501
                                    	<div class="shareshow">
502
                                            <img src="" width="100%" height="140">
503
                                            <div class="shareopeart"></div>
504
                                        </div>
505
                                        <p>资源名称:XXXXX检测仪</p>
506
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
507
                                    </div>
508
                                     <div class="sharesrc">
509
                                    	<div class="shareshow">
510
                                            <img src="" width="100%" height="140">
511
                                            <div class="shareopeart"></div>
512
                                        </div>
513
                                        <p>资源名称:XXXXX检测仪</p>
514
                                        <p class="briefinfor">简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo co</p>
515
                                    </div>
516
                                    
468
                                    
517
                                 </div>
469
                                 </div>
518
                             </div>
470
                             </div>

+ 2 - 2
src/main/webapp/js/information.brow.js

508
							if (rdata.success) {
508
							if (rdata.success) {
509
								$.MsgBox.Alert('message','资源"'+ resName +'"申请发送成功!');
509
								$.MsgBox.Alert('message','资源"'+ resName +'"申请发送成功!');
510
								$(".blackcover").remove();
510
								$(".blackcover").remove();
511
								$("body").css("overflow","auto");
511
								$("body").css("position","static");
512
								//location.reload(true);
512
								//location.reload(true);
513
							} else {
513
							} else {
514
								$.MsgBox.Alert('message','资源"'+ resName +'"申请发送失败,请重新申请!');
514
								$.MsgBox.Alert('message','资源"'+ resName +'"申请发送失败,请重新申请!');
648
				"complete":function(){
648
				"complete":function(){
649
					//$(".consultapply").remove();
649
					//$(".consultapply").remove();
650
					$(".blackcover").remove();
650
					$(".blackcover").remove();
651
					$("body").css("overflow-y","auto");
651
					$("body").css("position","static");
652
					$.MsgBox.Alert("消息","咨询申请成功");
652
					$.MsgBox.Alert("消息","咨询申请成功");
653
				},
653
				},
654
			});
654
			});

+ 73 - 0
src/main/webapp/js/information.js

1033
				}
1033
				}
1034
			});
1034
			});
1035
		})
1035
		})
1036
//科研资源
1037
	$.ajax({		
1038
		"url":"/ajax/resource/qapro",
1039
		"type":"get",
1040
		"data":{"professorId":userid},
1041
		"async": true,
1042
		"success":function(data){
1043
			//console.log(data);
1044
			if(data.data.length==0){
1045
				$("#infor-browse").css("display","none");
1046
				$(".resoubtn").css("display","none");
1047
			}
1048
			if(data.data.length > 0 && data.data.length <= 3){
1049
				$("#infor-browse").css("display","block");
1050
				$(".resoubtn").css("display","none");
1051
			}
1052
			var add="";
1053
			if(data.success)
1054
				{console.log(data);
1055
					for(var i=0;i<data.data.length;i++){
1056
						add='<div class="sharesrc">'
1057
						add+='<div class="shareshow">'
1058
	                	add+='<a href=""><img src="" width="100%" height="140"></a>'
1059
	                 	add+='<div class="shareopeart"></div>'
1060
	             		add+='</div>'	             
1061
	             		add+='<p>资源名称:<span class="presou">'+ data.data[i].resourceName+'</span></p>'
1062
	             		if(data.data[i].descp==undefined){
1063
	             			data.data[i].descp="";
1064
	             		}
1065
	             		add+='<p class="briefinfor">简介:'+data.data[i].descp+'</p>'
1066
	        			add+='</div>'
1067
	        			$(".sharescrollbox").append(add);						
1068
						add="";
1069
					}
1070
					//资源轮播
1071
					var $content = $(".sharescrollbox");
1072
					var childcount = $content.find(".sharesrc").length; 
1073
					Carousel(3,3, childcount, $content, $(".resounext"), $(".resouprev"));
1074
					
1075
					function Carousel(inde, num, childcount, obj, next, prev) {
1076
						next.click(function() {	
1077
							if (!obj.is(":animated")) { 
1078
								if (num < childcount) { 
1079
								
1080
									num++;
1081
									obj.animate({
1082
										left: "-=212px"
1083
									}, 600);
1084
								}
1085
							}
1086
						});
1087
						prev.click(function() {
1088
							if (!obj.is(":animated")) {
1089
								if (num > inde) { 
1090
									num--;
1091
									obj.animate({
1092
										left: "+=212px"
1093
									}, 600);
1094
								}
1095
							}
1096
						});
1097
					}
1098
				}
1099
				else
1100
				{
1101
					$.MsgBox.Alert("消息","系统异常!");
1102
				}
1103
		},
1104
		"error":function(){$.MsgBox.Alert('message','failddd')}
1105
	});
1106
	$("#enterwork").on("click",function(){
1107
		location.href="workspaces.html?"+userid;
1108
	})
1036
//到至今选中复选框的操作
1109
//到至今选中复选框的操作
1037
$(".present").click(function(){
1110
$(".present").click(function(){
1038
	var date = $(".present").index(this);
1111
	var date = $(".present").index(this);

+ 53 - 52
src/main/webapp/js/popup.js

32
		PopHtml +='<div class="resouimgbox floatL">';
32
		PopHtml +='<div class="resouimgbox floatL">';
33
		PopHtml += '<div class="resouinforcon">';
33
		PopHtml += '<div class="resouinforcon">';
34
		PopHtml += '<div class="resouimg" >';
34
		PopHtml += '<div class="resouimg" >';
35
		PopHtml += '<span class="resouup"><input type="file" id="resouup" >上传资源图片</span>';
36
		PopHtml += '<div class="resouimgshow">';
37
		PopHtml += '<div class="wrap" id="jcropdiv">';
38
		PopHtml += '<div class="jc-demo-box" data="0"><div id="target" class="jcrop_w" ><img src="" id="resouImage" /></div></div>';
39
		PopHtml += '<div class="jy-up-ch">';
35
		PopHtml += '<span class="resouup"><input type="file" name="file" id="resouup" >上传资源图片</span>';
36
		PopHtml += '<div class="resouimgshow"><img width="100%" height="100%" src="" id="resouImage" /></div></div>';
37
		PopHtml += '<span class="resouimgmsg">尺寸240*240,大小在5M以内,<br/>JPG、PNG格式</span>';
38
//		PopHtml += '<div class="wrap" id="jcropdiv">';
39
//		PopHtml += '<div class="jc-demo-box" data="0"><div id="target" class="jcrop_w" ></div></div>';
40
//		PopHtml += '<div class="jy-up-ch">';
40
        //图像操作                                                        
41
        //图像操作                                                        
41
		PopHtml += '<a id="idLeft" href="" class="bch bch1"></a>';
42
        PopHtml += '<a id="idSmall" href="" class="bch bch2"></a>';
43
        PopHtml += ' <a id="idBig" href="" class="bch bch3"></a>';
44
        PopHtml += '<a id="idRight" href="" class="bch bch4"></a>';
45
        PopHtml += '</div></div>';
46
 		PopHtml += '<input id="x" type="hidden"/><input id="y" type="hidden"/><input id="w" type="hidden"/><input id="h" type="hidden"/>';
47
		PopHtml += '</div></div></div></div>';
42
//		PopHtml += '<a id="idLeft" href="" class="bch bch1"></a>';
43
//        PopHtml += '<a id="idSmall" href="" class="bch bch2"></a>';
44
//        PopHtml += ' <a id="idBig" href="" class="bch bch3"></a>';
45
//        PopHtml += '<a id="idRight" href="" class="bch bch4"></a>';
46
       // PopHtml += '</div></div>';
47
// 		PopHtml += '<input id="x" type="hidden"/><input id="y" type="hidden"/><input id="w" type="hidden"/><input id="h" type="hidden"/>';
48
		PopHtml += '</div></div>';
48
		/////////////资源图片上传 结束////////////////////
49
		/////////////资源图片上传 结束////////////////////
49
		
50
		
50
		//按钮盒子
51
		//按钮盒子
68
		PopHtml += '</div></div>';
69
		PopHtml += '</div></div>';
69

70

70
		//必须先将html添加到body,再设置Css样式
71
		//必须先将html添加到body,再设置Css样式
71
        $("body").before(PopHtml);
72
		$("body").css("overflow-y","hidden");
72
		$("body").prepend(PopHtml);
73
        $("body").css("position","fixed");
73
      //上传资源图像的hover
74
      //上传资源图像的hover
74
        // $(".resouimg").hover(function(){
75
        // $(".resouimg").hover(function(){
75
        // 	$(".resouup").animate({
76
        // 	$(".resouup").animate({
98
		//关闭按钮
99
		//关闭按钮
99
		$(".workclose").click(function(){
100
		$(".workclose").click(function(){
100
			$(".blackcover").remove();
101
			$(".blackcover").remove();
101
			$("body").css("overflow","auto");
102
			$("body").css("position","static");
102
		});
103
		});
103
		
104
		
104
		function resourceName()
105
		function resourceName()
141
		
142
		
142
		//失去焦点判断	
143
		//失去焦点判断	
143
		$("#resourceName").blur(function(){
144
		$("#resourceName").blur(function(){
144
			//alert("11111");
145
			resourceName();
145
			resourceName();
146
		});
146
		});
147
		$("#supportedServices").blur(function(){
147
		$("#supportedServices").blur(function(){
148
			//alert("22222");
149
			supportedServices();
148
			supportedServices();
150
		});
149
		});
151
	   //资源图像上传
150
	   //资源图像上传
152
		/*$(function (){
151
		$(function (){
153
			var id = $.cookie('');
152
			var id = $.cookie('');
154
			var cacheImageKey=null;
153
			var cacheImageKey=null;
155
			if(id){
154
			if(id){
156
				$("#resouImage").attr("src","/images/resource/"+id+".jpg");
155
				$("#resouImage").attr("src","/images/resource/"+id+".jpg");
157

156

158
				$('#resouup').live('change',function(){ 
157
				$('#resouup').on('change',function(){ 
159
					$(".resouimgshow").show();
158
					$(".resouimgshow").show();
160
					$(".resouup").hide();
159
					$(".resouup").hide();
161
					$.ajaxFileUpload({
160
					$.ajaxFileUpload({
168
								cacheImageKey =$data.data[0].cacheKey
167
								cacheImageKey =$data.data[0].cacheKey
169
								$("#resouImage").attr("src","/images/tmp/"+cacheImageKey);
168
								$("#resouImage").attr("src","/images/tmp/"+cacheImageKey);
170
							}else{
169
							}else{
171
								alert($data.msg);
170
								$.MsgBox.Alert("message",$data.msg);
172
							}
171
							}
173
						},
172
						},
174
						error:function(){
173
						error:function(){
179
				
178
				
180
			}
179
			}
181
			$("#inputb").on("click",function(){
180
			$("#inputb").on("click",function(){
182
				var x = parseInt($("#x").val()/395*100);
183
				var y = parseInt($("#y").val()/340*100);
184
				var w = parseInt($("#w").val()/395*100);
185
				var h = parseInt($("#h").val()/340*100);
181
//				var x = parseInt($("#x").val()/395*100);
182
//				var y = parseInt($("#y").val()/340*100);
183
//				var w = parseInt($("#w").val()/395*100);
184
//				var h = parseInt($("#h").val()/340*100);
186
				if(cacheImageKey){
185
				if(cacheImageKey){
187
					$.ajax({
186
					$.ajax({
188
						url:"../ajax/image/resource",
187
						url:"../ajax/image/resource",
189
						type:"POST",
188
						type:"POST",
190
						data:{"id":id,"fn":cacheImageKey,"x":x,"y":y,"w":w,"h":h},
189
						data:{"id":id,"fn":cacheImageKey},
191
						dataType:"json",
190
						dataType:"json",
192
						success:function($data){
191
						success:function($data){
193
							if($data.success){
192
							if($data.success){
201
				}
200
				}
202
			});
201
			});
203

202

204
		})	*/
203
		})	
205
}
204
}
206
//资源信息 //
205
//资源信息 //
207

206

226
		PopHtml += '<tr><th class="resouinfotype"  scope="row">需求方</th><td>';
225
		PopHtml += '<tr><th class="resouinfotype"  scope="row">需求方</th><td>';
227
        PopHtml += '<div class="resouinforcon"><select class="frmtype" style="background:url(../images/downselect.png) no-repeat 96% center"><option>本人</option><option>所属机构</option></select></div>';
226
        PopHtml += '<div class="resouinforcon"><select class="frmtype" style="background:url(../images/downselect.png) no-repeat 96% center"><option>本人</option><option>所属机构</option></select></div>';
228
		PopHtml += '</td></tr>';
227
		PopHtml += '</td></tr>';
229
		PopHtml += '<tr><th class="resouinfotype " scope="row">交付时间</th><td><div class="resouinforcon"><input type="text" id="datepicker"class="frmtype dealTime"style="width:200px;"></div></td></tr>';
228
		PopHtml += '<tr><th class="resouinfotype " scope="row">交付时间</th><td><div class="resouinforcon"><input type="text" readOnly="true" id="datepicker"class="frmtype dealTime"style="width:200px;"></div></td></tr>';
230
		PopHtml += '<tr><th class="resouinfotype"  scope="row">具体需求</th><td><div class="resouinforcon"><textarea class="frmtype detail"></textarea></div></td></tr></table>';
229
		PopHtml += '<tr><th class="resouinfotype"  scope="row">具体需求</th><td><div class="resouinforcon"><textarea class="frmtype detail"></textarea></div></td></tr></table>';
231
		
230
		
232
		PopHtml += '<div class="resouimgbox floatL"><div class="resouinforcon"><div class="resouimg2" ><img src="" width="100%" height="100%"></div></div></div></div>';
231
		PopHtml += '<div class="resouimgbox floatL"><div class="resouinforcon"><div class="resouimg2" ><img src="" width="100%" height="100%"></div></div></div></div>';
269
		PopHtml += '</div>';
268
		PopHtml += '</div>';
270
		
269
		
271
		//必须先将html添加到body,再设置Css样式
270
		//必须先将html添加到body,再设置Css样式
272
        $("body").before(PopHtml);
273
		$("body").css("overflow-y","hidden");
274
      
271
		$("body").prepend(PopHtml);
272
		$("body").css("position","fixed");
273
        
275
        var _widht = $(".blackcover").width();
274
        var _widht = $(".blackcover").width();
276
        var _height = $(".blackcover").height();
275
        var _height = $(".blackcover").height();
277
		var boxWidth = $(".resouapply").width();
276
		var boxWidth = $(".resouapply").width();
284
		//关闭按钮
283
		//关闭按钮
285
		$(".workclose").click(function(){
284
		$(".workclose").click(function(){
286
			$(".blackcover").remove();
285
			$(".blackcover").remove();
287
			$("body").css("overflow","auto");
286
			$("body").css("position","static");
288
		});
287
		});
289
}
288
}
290
//资源申请确认 //
289
//资源申请确认 //
332
		PopHtml += '</div></div>';
331
		PopHtml += '</div></div>';
333

332

334
	//必须先将html添加到body,再设置Css样式
333
	//必须先将html添加到body,再设置Css样式
335
        $("body").before(PopHtml);
336
		$("body").css("overflow-y","hidden");
334
		$("body").prepend(PopHtml);
335
		$("body").css("position","fixed");
337
      
336
      
338
        var _widht = $(".blackcover").width();
337
        var _widht = $(".blackcover").width();
339
        var _height = $(".blackcover").height();
338
        var _height = $(".blackcover").height();
347
		//关闭按钮
346
		//关闭按钮
348
		$(".workclose").click(function(){
347
		$(".workclose").click(function(){
349
			$(".blackcover").remove();
348
			$(".blackcover").remove();
350
			$("body").css("overflow","auto");
349
			$("body").css("position","static");
351
		});
350
		});
352
}		
351
}		
353

352

373
		PopHtml += '</div></div>';
372
		PopHtml += '</div></div>';
374

373

375
		//必须先将html添加到body,再设置Css样式
374
		//必须先将html添加到body,再设置Css样式
376
        $("body").before(PopHtml);
377
		$("body").css("overflow-y","hidden");
375
		$("body").prepend(PopHtml);
376
		$("body").css("position","fixed");
378
      
377
      
379
        var _widht = $(".blackcover").width();
378
        var _widht = $(".blackcover").width();
380
        var _height = $(".blackcover").height();
379
        var _height = $(".blackcover").height();
388
		//关闭按钮
387
		//关闭按钮
389
		$(".workclose").click(function(){
388
		$(".workclose").click(function(){
390
			$(".blackcover").remove();
389
			$(".blackcover").remove();
391
			$("body").css("overflow","auto");
390
			$("body").css("position","static");
392
		});
391
		});
393
}	
392
}	
394

393

457

456

458
                    
457
                    
459
        //必须先将html添加到body,再设置Css样式
458
        //必须先将html添加到body,再设置Css样式
460
        $("body").before(PopHtml);
461
		$("body").css("overflow-y","hidden");
459
		$("body").prepend(PopHtml);
460
		$("body").css("position","fixed");
462
      
461
      
463
        var _widht = $(".blackcover").width();
462
        var _widht = $(".blackcover").width();
464
        var _height = $(".blackcover").height();
463
        var _height = $(".blackcover").height();
472
		//关闭按钮
471
		//关闭按钮
473
		$(".workclose").click(function(){
472
		$(".workclose").click(function(){
474
			$(".blackcover").remove();
473
			$(".blackcover").remove();
475
			$("body").css("overflow","auto");
474
			$("body").css("position","static");
476
		});           
475
		});           
477
}       
476
}       
478
 // 款项记录//
477
 // 款项记录//
621

620

622

621

623
		//必须先将html添加到body,再设置Css样式
622
		//必须先将html添加到body,再设置Css样式
624
        $("body").before(PopHtml);
625
		$("body").css("overflow-y","hidden");
623
		$("body").prepend(PopHtml);
624
		$("body").css("position","fixed");
626
      
625
      
627
        var _widht = $(".blackcover").width();
626
        var _widht = $(".blackcover").width();
628
        var _height = $(".blackcover").height();
627
        var _height = $(".blackcover").height();
636
		//关闭按钮
635
		//关闭按钮
637
		$(".workclose").click(function(){
636
		$(".workclose").click(function(){
638
			$(".blackcover").remove();
637
			$(".blackcover").remove();
639
			$("body").css("overflow","auto");
638
			$("body").css("position","static");
640
		});           
639
		});           
641
}
640
}
642

641

682

681

683

682

684
		//必须先将html添加到body,再设置Css样式
683
		//必须先将html添加到body,再设置Css样式
685
        $("body").before(PopHtml);
686
		$("body").css("overflow-y","hidden");
684
        $("body").prepend(PopHtml);
685
        $("body").css("position","fixed");
686
		//$("body").css({"overflow-y":"hidden","-ms-overflow-y":"hidden","-webkit-overflow-y":"hidden","-moz-overflow-y":"hidden"});
687
		/*$("#sendConsultBtn").on("click",function(){
687
		/*$("#sendConsultBtn").on("click",function(){
688
			alert("444");
688
			alert("444");
689
			//sendConsult();
689
			//sendConsult();
705
		//关闭按钮
705
		//关闭按钮
706
		$(".workclose").click(function(){
706
		$(".workclose").click(function(){
707
			$(".blackcover").remove();
707
			$(".blackcover").remove();
708
			$("body").css("overflow","auto");
708
			//$("body").css({"overflow-y":"auto","-ms-overflow-y":"auto","-webkit-overflow-y":"auto","-moz-overflow-y":"auto"});
709
			$("body").css("position","static");
709
		});           
710
		});           
710

711

711
}
712
}
749
		PopHtml += '</div></div>';
750
		PopHtml += '</div></div>';
750

751

751
	//必须先将html添加到body,再设置Css样式
752
	//必须先将html添加到body,再设置Css样式
752
        $("body").before(PopHtml);
753
		$("body").css("overflow-y","hidden");
753
		$("body").prepend(PopHtml);
754
		$("body").css("position","fixed");
754
      
755
      
755
        var _widht = $(".blackcover").width();
756
        var _widht = $(".blackcover").width();
756
        var _height = $(".blackcover").height();
757
        var _height = $(".blackcover").height();
764
		//关闭按钮
765
		//关闭按钮
765
		$(".workclose").click(function(){
766
		$(".workclose").click(function(){
766
			$(".blackcover").remove();
767
			$(".blackcover").remove();
767
			$("body").css("overflow","auto");
768
			$("body").css("position","static");
768
		});
769
		});
769
}		
770
}		
770
/****咨询专家结束评价*****/
771
/****咨询专家结束评价*****/
781
	PopHtml += '</div></div>';
782
	PopHtml += '</div></div>';
782

783

783
//必须先将html添加到body,再设置Css样式
784
//必须先将html添加到body,再设置Css样式
784
    $("body").before(PopHtml);
785
	$("body").css("overflow-y","hidden");
785
	$("body").prepend(PopHtml);
786
	$("body").css("position","fixed");
786
  
787
  
787
    var _widht = $(".blackcover").width();
788
    var _widht = $(".blackcover").width();
788
    var _height = $(".blackcover").height();
789
    var _height = $(".blackcover").height();
796
	//关闭按钮
797
	//关闭按钮
797
	$(".workclose").click(function(){
798
	$(".workclose").click(function(){
798
		$(".blackcover").remove();
799
		$(".blackcover").remove();
799
		$("body").css("overflow","auto");
800
		$("body").css("position","static");
800
	});
801
	});
801
}		
802
}		
802

803


+ 14 - 14
src/main/webapp/js/sciresource.js

64
						"success" : function($data) {							
64
						"success" : function($data) {							
65
							if ($data.success) {
65
							if ($data.success) {
66
								$(".blackcover").remove();
66
								$(".blackcover").remove();
67
								$("body").css("overflow-y","auto");	
67
								$("body").css("position","static");	
68
								getDataResource();								
68
								getDataResource();								
69
							} else {
69
							} else {
70
								$.MsgBox.Alert('message',$data.msg);
70
								$.MsgBox.Alert('message',$data.msg);
75
				if(resourceID){
75
				if(resourceID){
76
					$("#deletedResource").on("click",function(){
76
					$("#deletedResource").on("click",function(){
77
						$(".blackcover").remove();
77
						$(".blackcover").remove();
78
						$("body").css("overflow-y","auto");
78
						$("body").css("position","static");
79
						$.MsgBox.Confirm("消息", "执行删除后资源信息将无法恢复,确定继续吗?",delet)					
79
						$.MsgBox.Confirm("消息", "执行删除后资源信息将无法恢复,确定继续吗?",delet)					
80
					})
80
					})
81
					$.ajax({		
81
					$.ajax({		
143
							{
143
							{
144
								if(resourceID){
144
								if(resourceID){
145
									$(".blackcover").remove();
145
									$(".blackcover").remove();
146
									$("body").css("overflow-y","auto");
146
									$("body").css("position","static");
147
									$.MsgBox.Confirm("消息", "确定修改资源信息吗?", getDataput)
147
									$.MsgBox.Confirm("消息", "确定修改资源信息吗?", getDataput)
148
									
148
									
149
								}else{
149
								}else{
154
											if (rdata.success) 
154
											if (rdata.success) 
155
											{											
155
											{											
156
													$(".blackcover").remove();
156
													$(".blackcover").remove();
157
													$("body").css("overflow-y","auto");												
157
													$("body").css("position","static");												
158
													getDataResource();
158
													getDataResource();
159
													$.MsgBox.Alert("消息","资源发布成功");										
159
													$.MsgBox.Alert("消息","资源发布成功");										
160
											} 
160
											} 
189
					$("#consd").html("");
189
					$("#consd").html("");
190
					for(var i=0;i<data.data.length;i++)
190
					for(var i=0;i<data.data.length;i++)
191
						{
191
						{
192
							var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><img width="100%" height="140" src=""></td>'
192
							var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><div class="resoimgbox"><img id="resourceImg" width="100%" height="100%" src=""></div></td>'
193
							add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '               
193
							add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '               
194
							add+='<li class="li1">'+data.data[i].subject+'</li>'                   
194
							add+='<li class="li1">'+data.data[i].subject+'</li>'                   
195
							add+='</ul></td></tr><tr>'                
195
							add+='</ul></td></tr><tr>'                
196
							add+='<td><span class="resoumag"">资源管理</span></td></tr></table></div>'                 
196
							add+='<td><span class="managebtn resoumag"">资源管理</span></td></tr></table></div>'                 
197
							add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
197
							add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
198
							add+='<tr class="worktabtit"><th width="20%" height="40">申请时间</th><th width="20%">需求方</th>'    
198
							add+='<tr class="worktabtit"><th width="20%" height="40">申请时间</th><th width="20%">需求方</th>'    
199
							add+='<th width="12%">联系人</th><th width="14%">交付时间</th>'        
199
							add+='<th width="12%">联系人</th><th width="14%">交付时间</th>'        
402
					"success" : function(data) {
402
					"success" : function(data) {
403
						if (data.success) {					
403
						if (data.success) {					
404
							$(".blackcover").remove();
404
							$(".blackcover").remove();
405
							$("body").css("overflow-y","auto");
405
							$("body").css("position","static");
406
							getDataResource();
406
							getDataResource();
407
							$.MsgBox.Alert('message',"报价成功");
407
							$.MsgBox.Alert('message',"报价成功");
408
						} else {
408
						} else {
421
			ajaxGet(operationId);
421
			ajaxGet(operationId);
422
			n=5;
422
			n=5;
423
			$(".blackcover").remove();
423
			$(".blackcover").remove();
424
			$("body").css("overflow-y","auto");
424
			$("body").css("position","static");
425
			$.MsgBox.Confirm("消息", "确定拒绝吗?",upStatus1);
425
			$.MsgBox.Confirm("消息", "确定拒绝吗?",upStatus1);
426
		});
426
		});
427
	}
427
	}
456
					"success" : function(data) {
456
					"success" : function(data) {
457
						if (data.success) {					
457
						if (data.success) {					
458
							$(".blackcover").remove();
458
							$(".blackcover").remove();
459
							$("body").css("overflow-y","auto");
459
							$("body").css("position","static");
460
							getDataResource();
460
							getDataResource();
461
							$.MsgBox.Alert('message',"报价成功");
461
							$.MsgBox.Alert('message',"报价成功");
462
						} else {
462
						} else {
728
			if (rdata.success) 
728
			if (rdata.success) 
729
			{
729
			{
730
			$(".blackcover").remove();
730
			$(".blackcover").remove();
731
			$("body").css("overflow-y","auto");			
731
			$("body").css("position","static");			
732
				getPageData(6,1,false);																	
732
				getPageData(6,1,false);																	
733
			}
733
			}
734
			else 
734
			else 
753
			if (rdata.success) 
753
			if (rdata.success) 
754
			{
754
			{
755
			$(".blackcover").remove();
755
			$(".blackcover").remove();
756
			$("body").css("overflow-y","auto");
756
			$("body").css("position","static");
757
				getDataResource();						
757
				getDataResource();						
758
			}
758
			}
759
			else 
759
			else 
1160
								if (rdata.success){
1160
								if (rdata.success){
1161
									getPageData(6,1,false);
1161
									getPageData(6,1,false);
1162
									$(".blackcover").remove();
1162
									$(".blackcover").remove();
1163
									$("body").css("overflow-y","auto");
1163
									$("body").css("position","static");
1164
									$.MsgBox.Alert('消息',"资源申请信息修改成功");									
1164
									$.MsgBox.Alert('消息',"资源申请信息修改成功");									
1165
								} else {
1165
								} else {
1166
									$.MsgBox.Alert('消息',"资源申请信息修改失败");
1166
									$.MsgBox.Alert('消息',"资源申请信息修改失败");
1197
		$(".frm").click(function(){
1197
		$(".frm").click(function(){
1198
			n=4;
1198
			n=4;
1199
			$(".blackcover").remove();
1199
			$(".blackcover").remove();
1200
			$("body").css("overflow-y","auto");
1200
			$("body").css("position","static");
1201
			$.MsgBox.Confirm("消息", "确定继续吗?",upStatus);
1201
			$.MsgBox.Confirm("消息", "确定继续吗?",upStatus);
1202
		})
1202
		})
1203
		$("#cooperation").click(function(){
1203
		$("#cooperation").click(function(){
1204
			 n=3;
1204
			 n=3;
1205
			 $(".blackcover").remove();
1205
			 $(".blackcover").remove();
1206
			$("body").css("overflow-y","auto");
1206
			$("body").css("position","static");
1207
			upStatus();
1207
			upStatus();
1208
		})
1208
		})
1209
	}
1209
	}

+ 1 - 1
src/main/webapp/js/search.js

361
								if (rdata.success) {
361
								if (rdata.success) {
362
									$.MsgBox.Alert('message','资源"'+ resName +'"申请发送成功!');
362
									$.MsgBox.Alert('message','资源"'+ resName +'"申请发送成功!');
363
									$(".blackcover").remove();
363
									$(".blackcover").remove();
364
									$("body").css("overflow","auto");
364
									$("body").css("position","static");
365
									//location.reload(true);
365
									//location.reload(true);
366
								} else {
366
								} else {
367
									$.MsgBox.Alert('message','资源"'+ resName +'"申请发送失败,请重新申请!');
367
									$.MsgBox.Alert('message','资源"'+ resName +'"申请发送失败,请重新申请!');

+ 41 - 0
src/main/webapp/js/workindex.js

1
$(function(){
2
	var userid = $.cookie("userid");
3
	//获取专家的数据
4
	function getProfessorData(professorId){		
5
		$.ajax({	
6
		"url":"ajax/professor/"+professorId,
7
		"type":"get",
8
		"async": false,
9
		"success":function(data){
10
			if(data.success)
11
			{																				
12
			$("#nameS").text(data.data.name);
13
			$("#title").text(data.data.title);
14
			$("#deparment").text(data.data.department);
15
			$("#organization").text(data.data.organization.name);
16
			}
17
			else
18
			{
19
				$.MsgBox.Alert("消息","系统异常!");
20
			}
21
		},
22
		"error":function(){$.MsgBox.Alert('message','failddd')}
23
		})	
24
	}
25
	getProfessorData(userid);
26
	$("#allResource").on("click",function(){
27
		$(".worksubmenu").eq(1).addClass("subcolor").siblings().removeClass("subcolor");
28
		$.ajax({
29
			"url":"sciresource.html",
30
			"dataType":"html",
31
			"success":function(result){
32
				//console.log(data);
33
								
34
			$(".workcon").html(result);
35
			}
36
		
37
		})
38
		
39
	})
40
	
41
});

+ 1 - 1
src/main/webapp/photo-set.html

24
                     <!--点击上传按钮-->
24
                     <!--点击上传按钮-->
25
                     <div class="load">
25
                     <div class="load">
26
                          <div class="upbtn" style="Margin:auto" ><span class="plus">+</span>本地上传<input type="file" class="filebtn"  name="file" id="uploadInput" ></div>
26
                          <div class="upbtn" style="Margin:auto" ><span class="plus">+</span>本地上传<input type="file" class="filebtn"  name="file" id="uploadInput" ></div>
27
                         <p>只支持JPG、PNG、GIF,大小不超过5M</p>
27
                         <p>只支持JPG、PNG,大小不超过5M</p>
28
                         
28
                         
29
                     </div>
29
                     </div>
30
                     <!---->
30
                     <!---->

+ 2 - 2
src/main/webapp/register.html

52
                                            <ul>
52
                                            <ul>
53
                                                <li><input class="inputtxt" type="text" placeholder="请输入常用手机号码" id="lp_phone" name="phone" autocomplete="off"></li>
53
                                                <li><input class="inputtxt" type="text" placeholder="请输入常用手机号码" id="lp_phone" name="phone" autocomplete="off"></li>
54
                                                <li><div class="msg msgphone1"><span></span></div></li>
54
                                                <li><div class="msg msgphone1"><span></span></div></li>
55
                                                <li class="yzmli">
55
                                                <!-- <li class="yzmli">
56
                                                    <input class="inputtxt" type="text" placeholder="请证明你不是机器人" id="lp_yzm" name="yzm" autocomplete="on">
56
                                                    <input class="inputtxt" type="text" placeholder="请证明你不是机器人" id="lp_yzm" name="yzm" autocomplete="on">
57
                                                    <div class="yzmbox">
57
                                                    <div class="yzmbox">
58
                                                        <img class="yzm" src="images/yzmimg1.png" width="100%" height="100%">
58
                                                        <img class="yzm" src="images/yzmimg1.png" width="100%" height="100%">
59
                                                        <a href="javascript:;" class="reflash"></a>
59
                                                        <a href="javascript:;" class="reflash"></a>
60
                                                    </div>
60
                                                    </div>
61
                                                </li>
61
                                                </li> -->
62
                                                <li><div class="msg msgphone2"><span></span></div></li>
62
                                                <li><div class="msg msgphone2"><span></span></div></li>
63
                                                <li class="coderli">
63
                                                <li class="coderli">
64
                                                    <input class="inputtxt" type="text" placeholder="请输入手机验证码" id="lp_coder" name="coder" autocomplete="on">
64
                                                    <input class="inputtxt" type="text" placeholder="请输入手机验证码" id="lp_coder" name="coder" autocomplete="on">

+ 7 - 6
src/main/webapp/workindex.html

14
                        <p class="workstat">合作<br><span>12</span>次</p>
14
                        <p class="workstat">合作<br><span>12</span>次</p>
15
                    </div>
15
                    </div>
16
                    <div class="workinfor floatL">
16
                    <div class="workinfor floatL">
17
                        <h4><a href="" class="named" id="nameS">程学群</a><img class="modifyicon" src="images/rz.png" width="30"></h4>
18
                        <h5><span>副教授</span>,<span>主任</span></h5>
19
                        <h6><span>新材料技术研究院</span>,<span>北京科技大学</span></h6>
20
                        <h6>所在地:<span>北京</span></h6>
17
                        <h4><a href="" class="named" id="nameS"></a><img class="modifyicon" src="images/rz.png" width="30"></h4>
18
                        <h5><span id="title"></span><span></span></h5>
19
                        <h6><span id="department"></span><span id="organization"></span></h6>
20
                        <h6>所在地:<span></span></h6>
21
                        <a class="worklinkbtn" href="information.html">>>修改资料</a>
21
                        <a class="worklinkbtn" href="information.html">>>修改资料</a>
22
                    </div>
22
                    </div>
23
                </div>
23
                </div>
90
            </div>
90
            </div>
91
            <!--正在使用的资源-->
91
            <!--正在使用的资源-->
92
            <div class="workblock">
92
            <div class="workblock">
93
                <div class="worktit">正在使用的科研资源<a class="worklinkbtn floatR">查看全部</a></div>
93
                <div class="worktit">正在使用的科研资源<a class="worklinkbtn floatR"id="allResource">查看全部</a></div>
94
                <div class="wbcon">
94
                <div class="wbcon">
95
                    <div class="sharesrcbox11">
95
                    <div class="sharesrcbox11">
96
                        <div class="sharesrc">
96
                        <div class="sharesrc">
156
        </div>
156
        </div>
157
    </div>
157
    </div>
158
</div>
158
</div>
159
<!-- 我的工作台 //-->
159
<!-- 我的工作台 //-->
160
<script type="text/javascript" src="js/workindex.js"></script>

+ 2 - 2
src/main/webapp/workspaces.html

132

132

133
<!-- <script type="text/javascript" src="js/jquery.HeadP.js"> </script>
133
<!-- <script type="text/javascript" src="js/jquery.HeadP.js"> </script>
134
<script type="text/javascript" src="js/jquery.Jcrop.js"> </script>
134
<script type="text/javascript" src="js/jquery.Jcrop.js"> </script>
135
<script type="text/javascript" src="js/basic.js"> </script>
135
<script type="text/javascript" src="js/basic.js"> </script> -->
136
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
136
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
137
 -->
137

138
 <script src="js/jquery.page.js"></script>
138
 <script src="js/jquery.page.js"></script>
139
<script type="text/javascript"src="js/jquery.cookie.js"></script>
139
<script type="text/javascript"src="js/jquery.cookie.js"></script>
140
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
140
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>