浏览代码

点赞刷新问题及正在合作的次数ok

luyanan 8 年之前
父节点
当前提交
f3eabd9778
共有 3 个文件被更改,包括 17 次插入3 次删除
  1. 15 1
      src/main/webapp/js/information.brow.js
  2. 1 1
      src/main/webapp/js/workindex.js
  3. 1 1
      src/main/webapp/workindex.html

+ 15 - 1
src/main/webapp/js/information.brow.js

@ -210,7 +210,21 @@ loginStatus();//读取用户头像
210 210
						"contentType" : "application/x-www-form-urlencoded",
211 211
						"success" : function($data) {
212 212
							if ($data.success) {
213
								location.reload(true);
213
								$.get("/ajax/professor/info/" + professorId, function($data) {
214
					    			if ($data.success) 
215
					    			{
216
										var $info = $data.data;
217
										if ($info) 
218
										{
219
											$("#researchAreaShow").empty("")
220
											if ($info.researchAreas)
221
											{
222
												researchAreaShow($info.researchAreas,$info.researchAreaLogs);
223
											}
224
										}
225
										
226
									}	
227
									})
214 228
							} else {
215 229
								$.MsgBox.Alert("message",$data.msg);
216 230
							}

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

@ -695,7 +695,7 @@ $(function(){
695 695
		{
696 696
			if(data.success)
697 697
			{				
698
				$(".workcountnum").text(data.data);
698
				$("#workcontain").text(data.data);
699 699
			}
700 700
		}
701 701
	});

+ 1 - 1
src/main/webapp/workindex.html

@ -28,7 +28,7 @@
28 28
                            <a class="worklinkbtn" id="lookMyConsult">>>查看我的咨询信息</a>
29 29
                        </div>
30 30
                        <div class="workcount">
31
                            <p><span class="workcountnum">3</span>项合作正在进行</p>
31
                            <p><span class="workcountnum" id="workcontain">3</span>项合作正在进行</p>
32 32
                            <a href=""  class="worklinkbtn">>>查看我的科研资源</a>
33 33
                        </div>
34 34
                    </div>