jack %!s(int64=8) %!d(string=hace) años
padre
commit
d2171cdab2
Se han modificado 2 ficheros con 11 adiciones y 3 borrados
  1. 9 1
      js/resourceInfo.js
  2. 2 2
      resourceInfo.html

+ 9 - 1
js/resourceInfo.js

@ -1,6 +1,7 @@
1 1
$(document).ready(function() {
2 2
	/*获取资源ID*/
3 3
	var resourceId = GetQueryString("resourceId");
4
	var professorId;
4 5
	/*判断是否登录*/
5 6
	loginStatus();
6 7
	//填充学术领域
@ -48,6 +49,7 @@ $(document).ready(function() {
48 49
			"success": function(info) {
49 50
				if(info.success) {
50 51
					var $info = info.data;
52
					professorId=$info.professorId;
51 53
					console.log(info);
52 54
					$(".h2Font").text($info.resourceName);
53 55
					$("#application").text($info.supportedServices);
@ -109,5 +111,11 @@ $(document).ready(function() {
109 111
		});
110 112
	}
111 113
	resourceData();
112
	
114
	$("#headImg").on("click",function(){
115
		location.href="information-brow.html?professorId="+professorId;
116
	});
117
	/*点击咨询按钮咨询资源*/
118
	$("#consulting").click(function(){
119
		clickResouceConsultHandler($(this),professorId);
120
	})
113 121
})

+ 2 - 2
resourceInfo.html

@ -93,7 +93,7 @@
93 93
			<div class="rightBlock">
94 94
				<a style="display: block;" >
95 95
					<div class="proImg">
96
						<img class=" headRadius" src="images/default-photo.jpg" id="headImg" style="display:block;">
96
						<img class=" headRadius" src="images/default-photo.jpg" id="headImg" style="display:block;cursor:pointer">
97 97
					</div>
98 98
					<div class="proInfo">
99 99
						<div class="h3Font clearfix">
@ -184,7 +184,7 @@
184 184
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
185 185
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								
186 186
    	</div>
187
        <div class="coulstbtn floatR"><span>咨询</span></div>
187
        <div class="coulstbtn floatR" id="consulting"><span>咨询</span></div>
188 188
    </div>
189 189
</div>
190 190
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>