Browse Source

资源及专家登录

jack 8 years ago
parent
commit
e5a09d9c66
2 changed files with 1 additions and 37 deletions
  1. 1 35
      js/information.brow.js
  2. 0 2
      js/resourceInfo.js

+ 1 - 35
js/information.brow.js

@ -1,5 +1,5 @@
1 1
$(function(){
2
loginStatus();//读取用户头像
2
3 3
	 	var userid = $.cookie("userid");
4 4
	 	var professorId = GetQueryString("professorId");
5 5
	 	var name;
@ -641,40 +641,6 @@ var resou;
641 641
		"error":function(){$.MsgBox.Alert('message','failddd')}
642 642
		})	
643 643
	}
644
	//查看资源详细信息
645
	$('#sharescrollbox').on("click",'.remess',function(){
646
		var resourceID=$(this).attr("resourceId");
647
		ResourceMessage();
648
		$.ajax({		
649
			"url":"/ajax/resource/"+resourceID,
650
			"type":"get",
651
			"async": true,
652
			"success":function(info){
653
				if(info.success)
654
					{
655
					console.log(info);
656
					$("#resourceName").text(info.data.resourceName);
657
					$("#supportedServices").text(info.data.supportedServices);
658
					$("#hopePayMethod").text(info.data.hopePayMethod) ;
659
					$("#cooperationNotes").text(info.data.cooperationNotes) ;
660
					$("#subject").text(info.data.subject);
661
					$("#industry").text(info.data.industry);
662
					$("#descp").text(info.data.descp);
663
					$("#professor").text(name);
664
					$(".resouImage").attr("src","/images/resource/"+resourceID+".jpg");
665
					$(".resouImage").load(function(){})
666
						.error(function(){
667
							$(this).attr("src","/images/default-resource.jpg");
668
						});
669
					}
670
					else
671
					{
672
						$.MsgBox.Alert('message',"系统异常!");
673
					}
674
			},
675
			"error":function(){$.MsgBox.Alert('message','failed')}
676
		});  
677
	})
678 644
//资源申请入口
679 645
	$('.introduction').on("click",'.applicant',function(){
680 646
		if(userid && userid != null && userid != "null"){

+ 0 - 2
js/resourceInfo.js

@ -3,8 +3,6 @@ $(document).ready(function() {
3 3
	var resourceId = GetQueryString("resourceId");
4 4
	var professorId;
5 5
	var userid = $.cookie("userid");
6
	/*判断是否登录*/
7
	loginStatus();
8 6
	//填充学术领域
9 7
	var subjectShow = function(data) {
10 8
			if(data != undefined && data.length != 0) {