Browse Source

修改enter绑定事件

luyanan 8 years ago
parent
commit
1ee02726c8

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

@ -97,10 +97,10 @@ input{ outline:none;}
97 97
.operbtn{ padding:6px 20px; margin:0 2px; border: 1px solid #efefef;border-radius: 6px; background:#ff8400; color:#fff; cursor:pointer;}
98 98
.photo1{width:132px;height:132px;border-radius:50%;margin:20px;float:left;/*border:1px #f0f0f0 solid; background:url(../images/default-photo.jpg)  no-repeat center center;background-size:100% 100%;-moz-background-size:100% 100%;*/ overflow:hidden;}
99 99
/*专家简介*/
100
.synopsis{ float:left; padding:20px 0;color:#000; width:800px;line-height:30px;}
100
.synopsis{ float:left; padding:20px 0;color:#000; width:770px;line-height:30px;}
101 101
.named{display:block;font-size:24px; color:#000; float:left;}
102 102
.named:hover,.named:focus,.named:active{color:#000; text-decoration:none;}
103
.modify{ display:block; width:26px; height:26px; background:url(../images/onauth.png) center center no-repeat; background-size:100% 100%; float:left; margin:4px;}
103
.modify{ display:block; width:20px; height:20px; background:url(../images/onauth.png) center center no-repeat; background-size:100% 100%; float:left; margin:4px;}
104 104
.position{ clear:both;font-size:18px; }
105 105
.science{font-size:14px; }
106 106
.industry{font-size:16px; }

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

@ -132,7 +132,7 @@
132 132
.worksitcon .lasttime{ font-size:13px; color:#666;}
133 133
.worksitcon span{ padding-right:4px;}
134 134
.rebackcon{ height:60px; overflow:hidden;}
135
.modifyicon{ margin-left:10px;margin-top: 6px;}
135
.modifyicon{width:20px; margin-left:6px;margin-top: 6px;}
136 136
.workitimg{ width:120px; height:120px; }
137 137
.messagebox{position:relative;}
138 138
.msgprompt{position:absolute; top:26px; left:16px; padding:0 10px;text-align:center;  border-radius:14px; background:#ff6432; color:#fff;}

+ 2 - 2
src/main/webapp/js/index.js

@ -90,9 +90,9 @@ $("#search").on("click", function() {
90 90
//enter绑定时间
91 91
$("input").keydown(function(e){
92 92
	if(e.which==13) {
93
		synContent(1);
94 93
		synContent(2);
95
		var searchContent = $("#searchContent").val();
94
		synContent(1);		
95
	 var searchContent = $("#searchContent").val();
96 96
		location.href = "search.html?searchContent=" + encodeURI(searchContent)+"&lookFor=" + lookFor;
97 97
	}
98 98
	

+ 5 - 2
src/main/webapp/js/search.js

@ -154,7 +154,7 @@ $(function(){
154 154
 			                    add+='<div class="synopsis">' 			                  
155 155
 			                     add+='<div class="cousultName"><a class="resouname" href="">'+$da[i].resourceName+'</a></div>'
156 156
 			                     if($da[i].professor.name){
157
 			                    	 add+='<div class="belongname">'+$da[i].professor.name+'<img class="modicon" src="images/rz.png" width="28" ></div>'  
157
 			                    	 add+='<div class="belongname">'+$da[i].professor.name+'<img class="modicon" src="images/onauth.png" width="20" ></div>'  
158 158
 			                    		  } 			                   
159 159
 			                   if($da[i].professor.title==undefined){
160 160
 			                	  $da[i].professor.title="";
@ -181,7 +181,10 @@ $(function(){
181 181
 			                    add+='<div class="operbox"><span class="operbtn consultbtn" id="'+$da[i]["professor"]["id"]+'">咨询</span><span class="operbtn applybtn appl" resourceId='+$da[i].resourceId+' resourceName='+$da[i].resourceName+' professor='+$da[i].professor.name+'>申请</span></div>'
182 182
 			                	add+='</div>'
183 183
 			                		var $add=$(add);
184
 			                	$("#professorList").append($add);
184
 			                	$("#professorList").append($add);			                	
185
 			                	if($da[i].professor.authentication==false) {
186
 			                		$add.find(".modicon").attr("src","images/icon-unauth.png");
187
								}
185 188
 			                   if(data.data.data[i].images.length)
186 189
 								{
187 190
 								$add.find(".resourceImg").attr("src","/images/resource/"+$da[i].resourceId+".jpg");