Browse Source

添加科研资源的页码功能

luyanan 8 years ago
parent
commit
8abe7e6e90

+ 10 - 4
src/main/webapp/css/popup.css

@ -19,11 +19,15 @@
19 19
.resouinforcon{ padding:0 10px; width:100%; position:relative; max-width:560px;}
20 20

21 21
.resoubox{ padding:20px; }
22
.resoubox table{width:620px;}
22
.resoubox table{width:100%;}
23
.resoubox .resoutab { width:400px;}
24
.resoubox .btntab{ margin-top:20px;}
23 25
.resoutab{ min-width:400px;}
24
.resoutab tr td{ min-width:260px; padding:4px; }
26
.resoutab tr td{ min-width:260px; padding:4px; line-height:30px; }
27
.resoutab tr th{ line-height:30px;}
25 28
.requiredcon{ color:red; position:absolute;font-size:16px; top:0; right:0;}
26 29

30
.resouimgbox{ width:240px; margin:10px;}
27 31
.resouimg{width:100%; border:1px solid #d6d6d6; height:240px; position:relative; overflow:hidden;  }
28 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;}
29 33
#resouup{ width: 100%;height:100%;box-shadow: none;opacity:0; position: absolute;left:0;top:0px;cursor: pointer;}
@ -122,8 +126,10 @@
122 126

123 127
/*详细信息*/
124 128
.resoudetailinfo{position:absolute;margin-top:40px; background:#fff; font-size:14px;border-radius:10px;padding:20px;margin-bottom:40px;z-index:1900;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555;}
125
.resoudetailinfo .resoushowimg1{width:100%; border:1px solid #d6d6d6; height:200px; position:relative; overflow:hidden; left:-40px;top:40px; }
126
.resoudetailinfo .resoutab1 tr td{ min-width:200px; padding:4px; }
129
.resoudetailinfo .resoushowimg1{width:100%; border:1px solid #d6d6d6; height:200px;overflow:hidden;}
130
.resoudetailinfo .resoutab1{ width:400px;}
131
.resoudetailinfo .resoutab1 tr td{ min-width:200px; padding:4px;line-height:30px; }
132
.resoudetailinfo .resoutab1 tr th{ line-height:30px;}
127 133

128 134
.paymentbox1{ padding:20px;}
129 135
.payaddbox1{  width:580px; margin:auto; margin-top:20px;padding:10px; background:#f8f8f8;}

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

@ -1,6 +1,6 @@
1 1
@charset "UTF-8";
2 2
/*base*/
3
hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,a,em,div,span,th,td{margin:0;padding:0; font-family: PingFang SC,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
3
hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
4 4
form,fieldset,legend,label,button,input,select,textarea{font-size:14px; font-family: PingFang SC,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
5 5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family: PingFang SC,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
6 6
html,body{height:100%; width:100%; margin:0;padding:0;font-family: PingFang SC,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}

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

@ -29,8 +29,8 @@
29 29
.worksamlltitnow{ border-bottom:1px solid #ff8400; color:#ff8400;text-decoration: none;}
30 30
.workcontit a:link{color:#313131;}
31 31

32
/* .workmysrc{display:none;}
33
.workmysrc:first-child{display:block;} */
32
.workmysrc{display:none;}
33
.workmysrc:first-child{display:block;}
34 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;}
35 35
.maintab{ border-bottom:1px dashed #d7d7d7; margin-top:20px; overflow:hidden;}
36 36
.maintab:last-child{border-bottom:none;}

+ 36 - 31
src/main/webapp/js/popup.js

@ -8,12 +8,25 @@ function ResourceInfo() {
8 8
		PopHtml += '<div class="resoutit">资源信息<div class="stateinfor"><em></em><span>申请</span></div></div>';
9 9
		PopHtml += '<div class="resoubox">';
10 10
		//资源信息
11
		PopHtml += '<table class="resoutab"><tr>';
11
		PopHtml += '<table class="resoutab floatL"><tr>';
12 12
		PopHtml += '<th class="resouinfotype" scope="row">资源名称</th>';
13 13
		PopHtml += '<td><div class="resouinforcon"><input type="text" class="frmtype" id="resourceName" ><span class="requiredcon">*</span></div></td>';
14
		PopHtml += '</tr>';
15
		
16
		PopHtml += '<tr class="workmsgbox"><th></th><td><div class="resouinforcon"><div class="workmsg workmsg1"></div></div></td></tr>  ';
17
		PopHtml += '<tr class="respublisher"><th class="resouinfotype"  scope="row">资源发布者</th><td><div class="resouinforcon" id="professor" ></div></td></tr>';
18
		PopHtml += '<tr><th class="resouinfotype"  scope="row">可提供服务</th><td><div class="resouinforcon"><input type="text" class="frmtype"  id="supportedServices"><span class="requiredcon">*</span></div></td></tr>';
19
		PopHtml += '<tr class="workmsgbox"><th></th><td><div class="resouinforcon"><div class="workmsg workmsg3"></div></div></td></tr>  ';
20
		PopHtml += '<tr><th class="resouinfotype"  scope="row">学术领域</th><td><div class="resouinforcon"><input type="text" class="frmtype" id="subject"></div></td></tr>';
21
		PopHtml += '<tr><th class="resouinfotype"  scope="row">应用行业</th><td><div class="resouinforcon"><input type="text" class="frmtype" id="industry"></div></td></tr>'; 
22
		PopHtml += '<tr><th class="resouinfotype"  scope="row">期望付款方式</th><td><div class="resouinforcon"><input type="text" class="frmtype" placeholder="例:一次性付款"  id="hopePayMethod"></div></td></tr>';
23
		PopHtml += '<tr><th class="resouinfotype"  scope="row">详细描述</th><td ><div class="resouinforcon"><textarea class="frmtype" id="descp"></textarea></div></td></tr>';
24
		PopHtml += '<tr><th class="resouinfotype" scope="row">合作备注</th><td><div class="resouinforcon"><textarea class="frmtype" id="cooperationNotes"></textarea></div></td></tr>';
25
		PopHtml +='</table>';
26
		
14 27
		/////////////资源图片上传////////////////////
15
		//资源图片上传btn
16
		PopHtml += '<td rowspan="8">';
28
		//图像
29
		PopHtml +='<div class="resouimgbox floatL">';
17 30
		PopHtml += '<div class="resouinforcon">';
18 31
		PopHtml += '<div class="resouimg" >';
19 32
		PopHtml += '<span class="resouup"><input type="file" id="resouup" >上传资源图片</span>';
@ -28,21 +41,11 @@ function ResourceInfo() {
28 41
        PopHtml += '<a id="idRight" href="" class="bch bch4"></a>';
29 42
        PopHtml += '</div></div>';
30 43
 		PopHtml += '<input id="x" type="hidden"/><input id="y" type="hidden"/><input id="w" type="hidden"/><input id="h" type="hidden"/>';
31
		PopHtml += '</div></div></div></td></tr>';
44
		PopHtml += '</div></div></div></div>';
32 45
		/////////////资源图片上传 结束////////////////////
33

34
		PopHtml += '<tr class="workmsgbox"><th></th><td><div class="resouinforcon"><div class="workmsg workmsg1"></div></div></td></tr>  ';
35
		PopHtml += '<tr><th class="resouinfotype"  scope="row">资源发布者</th><td><div class="resouinforcon" id="professor" ></div></td></tr>';
36
		PopHtml += '<tr><th class="resouinfotype"  scope="row">可提供服务</th><td><div class="resouinforcon"><input type="text" class="frmtype"  id="supportedServices"><span class="requiredcon">*</span></div></td></tr>';
37
		PopHtml += '<tr class="workmsgbox"><th></th><td><div class="resouinforcon"><div class="workmsg workmsg3"></div></div></td></tr>  ';
38
		PopHtml += '<tr><th class="resouinfotype"  scope="row">学术领域</th><td><div class="resouinforcon"><input type="text" class="frmtype" id="subject"></div></td></tr>';
39
		PopHtml += '<tr><th class="resouinfotype"  scope="row">应用行业</th><td><div class="resouinforcon"><input type="text" class="frmtype" id="industry"></div></td></tr>'; 
40
		PopHtml += '<tr><th class="resouinfotype"  scope="row">期望付款方式</th><td><div class="resouinforcon"><input type="text" class="frmtype" placeholder="例:一次性付款"  id="hopePayMethod"></div></td></tr>';
41
		PopHtml += '<tr><th class="resouinfotype"  scope="row">详细描述</th><td colspan="2" ><div class="resouinforcon"><textarea class="frmtype" id="descp"></textarea></div></td></tr>';
42
		PopHtml += '<tr><th class="resouinfotype" scope="row">合作备注</th><td colspan="2"><div class="resouinforcon"><textarea class="frmtype" id="cooperationNotes"></textarea></div></td></tr>';
43
		PopHtml +='</table>';
46
		
44 47
		//按钮盒子
45
		PopHtml +='<table class="btntab"><tr><td>';
48
		PopHtml +='<table class="btntab clearfix"><tr><td>';
46 49
		PopHtml += '<div class="addrebtn" style="text-align:center;"><input type="button" value="保存" class="frmtype frmbtn" id="inputb"><input type="button" value="删除资源" class="frmtype frmbtn frmrbtn" id="deletedResource"></div>';
47 50
		PopHtml += '</td></tr></table>';
48 51
		//合作历史及评价
@ -162,12 +165,11 @@ function ResourceApply(){
162 165
		
163 166
		/*//资源申请模块*/
164 167
		PopHtml += '<div class="applyblock"><div class="resoutit">资源申请<div class="stateinfor"><em></em><span>申请中</span></div></div>';
165
		PopHtml += '<div class="resoubox"><table class="resoutab">';
168
		PopHtml += '<div class="resoubox"><div class=" clearfix"><table class="resoutab floatL">';
166 169
		//合作编号在申请的时候还未生成,不显示;申请完成之后产生,在申请确认是显示
167 170
		PopHtml += '<tr class="timelo"><th class="resouinfotype" scope="row">合作编号</th>';
168 171
		PopHtml += '<td><div class="resouinforcon contration"></div></td>';
169 172
		//资源申请信息
170
		PopHtml += '<td rowspan="6"><div class="resouinforcon"><div class="resouimg2" ><img src="" width="100%" height="100%"></div></div></td>';
171 173
		PopHtml += '</tr>';
172 174
		PopHtml += '<tr class="timelo"><th class="resouinfotype "  scope="row">申请时间</th><td><div class="resouinforcon timelog">2016-08-01</div></td></tr>';
173 175
		PopHtml += '<tr><th class="resouinfotype "  scope="row">需求资源</th><td><div class="resouinforcon log"></div></td> </tr>';
@ -176,7 +178,9 @@ function ResourceApply(){
176 178
        PopHtml += '<div class="resouinforcon"><select class="frmtype" style="background:url(../images/downselect.png) no-repeat 96% center"><option>本人</option><option>所属机构</option></select></div>';
177 179
		PopHtml += '</td></tr>';
178 180
		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>';
179
		PopHtml += '<tr><th class="resouinfotype"  scope="row">具体需求</th><td colspan="2"><div class="resouinforcon"><textarea class="frmtype detail"></textarea></div></td></tr></table>';
181
		PopHtml += '<tr><th class="resouinfotype"  scope="row">具体需求</th><td><div class="resouinforcon"><textarea class="frmtype detail"></textarea></div></td></tr></table>';
182
		
183
		PopHtml += '<div class="resouimgbox floatL"><div class="resouinforcon"><div class="resouimg2" ><img src="" width="100%" height="100%"></div></div></div></div>';
180 184
		
181 185
		//相关文件上传
182 186
		PopHtml += '<div class="filebox"style="display:none;"> ';
@ -187,7 +191,7 @@ function ResourceApply(){
187 191
		PopHtml += '</div></div> ';
188 192
		//发送申请按钮
189 193
		PopHtml += '<div class="btntab applybtn btnboxdown btnboxdown1"><div class="addrebtn" style="text-align:center;">';
190
		PopHtml += '<input type="button" value="发送" class="frmtype frmbtn bag"id="del"></div></div>';
194
		PopHtml += '<input type="button" value="发送" class="frmtype frmbtn bag"id="deliver"></div></div>';
191 195
		//确认申请按钮
192 196
		PopHtml += '<div class="btntab btnboxup"><div class="addrebtn" style="text-align:center;">';
193 197
		PopHtml += '<input type="button" value="确认,下一步" class="frmtype frmbtn"id="nextStep"><input type="button" value="直接拒绝" class="frmtype frmbtn frmrbtn"id="refuses"></div></div>';
@ -435,29 +439,30 @@ function DetailInfo(){
435 439
		PopHtml += '<div class="resoutit">详细信息<div class="stateinfor"><em></em><span>合作进行中</sapn></div></div>';
436 440
		PopHtml += '<div class="resoubox">';
437 441
		PopHtml += '<div class="resoupricebox">';
438
		PopHtml += '<table class="resoutab1">';
442
		PopHtml += '<div class="clearfix"><table class="resoutab1 floatL">';
439 443

440 444
		//合作编号在申请的时候还未生成,不显示;申请完成之后产生,在申请确认是显示
441 445
		PopHtml += '<tr><th class="resouinfotype" scope="row">合作编号</th>';
442 446
		PopHtml += '<td><div class="resouinforcon contration">00001109</div></td>';
443 447
		//资源申请信息
444
		PopHtml += '<td rowspan="5"><div class="resouinforcon"><div class="resoushowimg1" ><img src="" width="100%" height="100%"></div></div></td>';
445 448
		PopHtml += '</tr>';
446
		PopHtml += '<tr class="timelo"><th class="resouinfotype  "  scope="row">申请时间</th><td><div class="resouinforcon dealTime">2016-08-01</div></td></tr>';
447
		PopHtml += '<tr><th class="resouinfotype "  scope="row">需求资源</th><td><div class="resouinforcon log">xxx检测仪</div></td> </tr>';
448
		PopHtml += '<tr style="display:none"><th class="resouinfotype"  scope="row">资源发布者</th><td><div class="resouinforcon namecon">张三 <a href="" class="worktel">联系ta</a></div></td></tr>';
449
		PopHtml += '<tr class="timelo"><th class="resouinfotype  "  scope="row">申请时间</th><td><div class="resouinforcon dealTime"></div></td></tr>';
450
		PopHtml += '<tr><th class="resouinfotype "  scope="row">需求资源</th><td><div class="resouinforcon log"></div></td> </tr>';
451
		PopHtml += '<tr><th class="resouinfotype"  scope="row">资源发布者</th><td><div class="resouinforcon namecon"></div></td></tr>';
449 452
		PopHtml += '<tr><th class="resouinfotype"  scope="row">需求方</th><td>';
450 453
        PopHtml += '<div class="resouinforcon sname">李四</div>';
451 454
		PopHtml += '</td></tr>';
452
		PopHtml += '<tr><th class="resouinfotype "  scope="row">具体需求</th><td colspan="2"><div class="resouinforcon detail"> 89fufhyury8fruijkfhjhdf </div></td></tr>';
453
		PopHtml += '<tr><th class="resouinfotype " scope="row">交付时间</th><td colspan="2"><div class="resouinforcon timelog">2016-10-30</div></td></tr>';
454
		
455
		PopHtml += '<tr><th class="resouinfotype "  scope="row">具体需求</th><td><div class="resouinforcon detail"></div></td></tr>';
456
		PopHtml += '<tr><th class="resouinfotype " scope="row">交付时间</th><td><div class="resouinforcon timelog"></div></td></tr>';
457
	
455 458
		/*//报价模块*/
456 459
		//PopHtml += '<table class="resoutab1 applysure">';
457
		PopHtml += '<tr><th class="resouinfotype"  scope="row">付款方式</th><td><div class="resouinforcon"id="payMethod">一次性付清</div></td><td ><div class="resouinforcon"></div></td></tr>';
458
		PopHtml += '<tr><th class="resouinfotype" scope="row">费用</th><td><div class="resouinforcon"id="dealPrice">¥10000</div></td><td ><div class="resouinforcon"></div></td></tr>';
459
		PopHtml += '<tr><th class="resouinfotype" scope="row">备注</th><td colspan="2"><div class="resouinforcon"id="consultContent">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvin</div></td></tr></table>';
460
		PopHtml += '<tr><th class="resouinfotype"  scope="row">付款方式</th><td><div class="resouinforcon"id="payMethod"></div></td></tr>';
461
		PopHtml += '<tr><th class="resouinfotype" scope="row">费用</th><td><div class="resouinforcon"id="dealPrice"></div></td></tr>';
462
		PopHtml += '<tr><th class="resouinfotype" scope="row">备注</th><td><div class="resouinforcon"id="consultContent"></div></td></tr></table>';
460 463
		PopHtml += '</table>';
464
		
465
		PopHtml += '<div class="resouimgbox floatL"><div class="resouinforcon"><div class="resoushowimg1" ><img src="" width="100%" height="100%"></div></div></div></div>';
461 466
		//文件	
462 467
		PopHtml += '<div class="filebox"> ';
463 468
		PopHtml += '<div class="worktit">相关文件<div class="uploadbtn">上传文件</div></div>';

+ 182 - 201
src/main/webapp/js/sciresource.js

@ -9,74 +9,15 @@ $(function(){
9 9
////发布资源发布及修改
10 10
	var resourceNamePass = true;
11 11
	var professorPass=true;
12
	var supportedServicesPass=true;
13
////验证资源名字
14
//	function resourceName()
15
//	{
16
//		var code = $("#resourceName").val();
17
//		if(code.length==0||code==" ")
18
//		{
19
//			$(".workmsg1").text("不能为空");
20
//			resourceNamePass = false;
21
//		}
22
//		else
23
//		{
24
//			$(".workmsg1").text("");
25
//			resourceNamePass= true;
26
//		}
27
//	}
28
//	$("#resourceName").blur(function(){
29
//		 resourceName();
30
//	});
31
////验证资源发布者
32
//	function professor()
33
//	{
34
//		var code = $("#professor").val();
35
//		if(code.length==0||code==" ")
36
//		{
37
//			$(".workmsg2").text("不能为空");
38
//			professorPass= false;
39
//		}
40
//		else
41
//		{
42
//			$(".workmsg2").text("");
43
//			professorPass= true;
44
//		}
45
//	}
46
//	$("#professor").blur(function(){
47
//		 professor();
48
//	});
49
////验证可提供服务	
50
//	function supportedServices()
51
//	{
52
//		var code = $("#supportedServices").val();
53
//		if(code.length==0||code==" ")
54
//		{
55
//			$(".workmsg3").text("不能为空");
56
//			supportedServicesPass= false;
57
//		}
58
//		else
59
//		{
60
//			$(".workmsg3").text("");
61
//			supportedServicesPass= true;
62
//		}
63
//	}	
64
//	$("#supportedServices").blur(function(){
65
//		 supportedServices();
66
//	});
67
////资源发布函数	
68
//	
69
//		
70

71
	
72

12
	var supportedServicesPass=true;	
73 13
//我的资源的删除,修改
74 14
	$("#workmysrc").on("click",".resoumag",function()
75 15
			{ 
76 16
				
77 17
				var indexNum=$(this).parent().parent().parent().parent().parent().parent().index();
78 18
				//console.log(indexNum);
79
				ResourceInfo(); 
19
				ResourceInfo();
20
				$(".respublisher").css("display","none");
80 21
				$(".stateinfor span").text("资源发布中");
81 22
				var resourceID=$(this).attr("resourceId");
82 23
				//console.log(resourceID);
@ -188,7 +129,7 @@ $(function(){
188 129
							}else{
189 130
								$(".li1").eq(mm1).text("应用行业:"+ data.data[mm1].subject);
190 131
							}
191
							if(data.data[mm1].industry==undefined){
132
							/*if(data.data[mm1].industry==undefined){
192 133
								$(".li2").eq(mm1).css({"display":"none"});
193 134
							}else{
194 135
								$(".li2").eq(mm1).text("可提供服务:"+data.data[mm1].industry);
@ -208,7 +149,7 @@ $(function(){
208 149
							}else{
209 150
								$(".li5").eq(mm1).text("备注:" +data.data[mm1].cooperationNotes)
210 151
								//alert(data.data[mm1].cooperationNotes);
211
							}																																																														
152
							}													*/																																																	
212 153
					}
213 154
					else
214 155
					{
@ -234,9 +175,9 @@ $(function(){
234 175
					for(var i=oLength;i<data.data.length;i++)
235 176
						{
236 177
							var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><img width="100%" height="140" src=""></td>'
237
							add+='</tr><tr><td><ul><li>资源名称:'+data.data[i].resourceName+'</li><li>发布人:'+name+'</li><li>使用用途:'+data.data[i].supportedServices+'</li> '               
238
							add+='<li class="li1">应用行业:'+data.data[i].subject+'</li><li class="li2">可提供服务:'+data.data[i].industry+'</li><li class="li3">期望付款方式:'+data.data[i].hopePayMethod+'</li> '                   
239
							add+='<li class="li4">详细描述:'+data.data[i].descp+'</li><li class="li5">备注:'+data.data[i].cooperationNotes+'</li></ul></td></tr><tr>'                
178
							add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '               
179
							add+='<li class="li1">'+data.data[i].subject+'</li> '                   
180
							add+='</ul></td></tr><tr>'                
240 181
							add+='<td><span class="resoumag"">资源管理</span></td></tr></table></div>'                 
241 182
							add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
242 183
							add+='<tr class="worktabtit"><th width="12%" height="40">申请时间</th><th width="12%">需求方</th>'    
@ -246,7 +187,7 @@ $(function(){
246 187
							if(data.data[i].subject==undefined){
247 188
								$(".li1").eq(i).css({"display":"none"});
248 189
							}
249
							if(data.data[i].industry==undefined){
190
							/*if(data.data[i].industry==undefined){
250 191
								$(".li2").eq(i).css({"display":"none"});
251 192
							}
252 193
							if(data.data[i].hopePayMethod==undefined){
@ -257,7 +198,7 @@ $(function(){
257 198
							}
258 199
							if(data.data[i].cooperationNotes==undefined){
259 200
								$(".li5").eq(i).css({"display":"none"});
260
							}
201
							}*/
261 202
							$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
262 203
							(function(i){
263 204
								$.ajax({		
@ -384,6 +325,7 @@ $(function(){
384 325
					})
385 326
		}
386 327
	getDataResource();
328
	var t=0;
387 329
	function getDataResource(){
388 330
		$.ajax({		
389 331
			"url":"/ajax/resource/qapro",
@ -399,19 +341,19 @@ $(function(){
399 341
					for(var i=0;i<data.data.length;i++)
400 342
						{
401 343
							var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><img width="100%" height="140" src=""></td>'
402
							add+='</tr><tr><td><ul><li>资源名称:'+data.data[i].resourceName+'</li><li>发布人:'+name+'</li><li>使用用途:'+data.data[i].supportedServices+'</li> '               
403
							add+='<li class="li1">应用行业:'+data.data[i].subject+'</li><li class="li2">可提供服务:'+data.data[i].industry+'</li><li class="li3">期望付款方式:'+data.data[i].hopePayMethod+'</li> '                   
404
							add+='<li class="li4">详细描述:'+data.data[i].descp+'</li><li class="li5">备注:'+data.data[i].cooperationNotes+'</li></ul></td></tr><tr>'                
344
							add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '               
345
							add+='<li class="li1">'+data.data[i].subject+'</li>'                   
346
							add+='</ul></td></tr><tr>'                
405 347
							add+='<td><span class="resoumag"">资源管理</span></td></tr></table></div>'                 
406 348
							add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
407 349
							add+='<tr class="worktabtit"><th width="12%" height="40">申请时间</th><th width="12%">需求方</th>'    
408 350
							add+='<th width="12%">联系人</th><th width="12%">交付时间</th><th width="12%">成交金额</th><th width="12%">付款方式</th>'        
409
							add+='<th width="14%">付款进程</th><th width="14%">状态/操作</th></tr></table></div></div>';
351
							add+='<th width="14%">付款进程</th><th width="14%">状态/操作</th></tr></table><div class="tcdPageCode tcdPageCod'+i+'"></div></div>';
410 352
							$("#consd").append(add);
411 353
							if(data.data[i].subject==undefined){
412 354
								$(".li1").eq(i).css({"display":"none"});
413 355
							}
414
							if(data.data[i].industry==undefined){
356
							/*if(data.data[i].industry==undefined){
415 357
								$(".li2").eq(i).css({"display":"none"});
416 358
							}
417 359
							if(data.data[i].hopePayMethod==undefined){
@ -422,129 +364,19 @@ $(function(){
422 364
							}
423 365
							if(data.data[i].cooperationNotes==undefined){
424 366
								$(".li5").eq(i).css({"display":"none"});
425
							}
367
							}*/
426 368
							
427 369
							$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
428 370
							//console.log($('.resoumag').eq(i+1).attr("resourceId"));
429 371
							//资源所对应的记录
430 372
							(function(i){
431
								$.ajax({		
432
									"url":"/ajax/operation/pqres",
433
									"type":"get",
434
									"async": true,
435
									"data":{"resourceId":$('.resoumag').eq(i+1).attr("resourceId")},						
436
									"success":function(data){
437
										if(data.success)
438
											{//console.log(data);									
439
												for(var j=0;j<data.data.data.length;j++){
440
													if(data.data.data[j].dealPrice==undefined)
441
													{	
442
														data.data.data[j].dealPrice=0;													
443
													}													
444
													if(data.data.data[j].payMethod==undefined){												
445
														data.data.data[j].payMethod="";
446
													}
447
													var inquiry=inquiryGetPaidMoney(data.data.data[j].operationId);												
448
													var addString='<tr class="workitem">'
449
									                    addString+='<td>'+data.data.data[j].dealTime+'</td>'
450
									                     addString+='<td class="workitemsrc">'+data.data.data[j].applysquare+'</td>'
451
									                      addString+='<td> <a class="worktel" href="">'+data.data.data[j].professor.name+'<span class="worktelbtn"></span></a></td>'						                  
452
									                      addString+='<td>'+data.data.data[j].deliverTime+'</td>'
453
									                       addString+='<td class="price1">'+data.data.data[j].dealPrice+'</td>'
454
									                        addString+='<td>'+data.data.data[j].payMethod+'</td>'
455
									                       addString+='<td><span>'+inquiry+'</span>/<span>'+data.data.data[j].dealPrice+'</span><br></td>'
456
									                        addString+='<td><div class="modification"></div></td> </tr>'						                      		
457
									                        	$(".tablecon").eq(i).append(addString);	
458
																if($(".price1").eq(k).text()==0){
459
																	$(".price1").eq(k).text("");
460
																}
461
																switch(data.data.data[j].operationStatus)
462
																{
463
																case 1:
464
																	var string='<span>新的申请</span><br/>'
465
																	string+='<a class="operatebtn">'
466
																	string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>回复申请</span><br />'
467
																	string+='</a>'
468
																	$(".modification").eq(k).html(string)
469
																  break;
470
																case 2:
471
																	var string='<span>发送报价待对方确认</span><br/>'
472
																	string+='<a class="operatebtn">'
473
																	string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus="2" operationId='+data.data.data[j].operationId+'>修改报价</span><br />'
474
																	string+='</a>'
475
																	$(".modification").eq(k).html(string);
476
																  break;
477
																case 3:
478
																	var string='<span>对方发来报价合作进行中</span><br/>'
479
																	string+='<a class="operatebtn">'
480
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
481
																	string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
482
																	string+='<span resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
483
																	string+='</a>'
484
																	$(".modification").eq(k).html(string);
485
																  break;
486
																case 4:
487
																	var string='<span>对方拒绝报价,合作结束</span><br/>'
488
																	string+='<a class="operatebtn">'
489
																	string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
490
																	string+='</a>'
491
																	$(".modification").eq(k).html(string);
492
																  break;
493
																case 5:
494
																	var string='<span>本人拒绝合作</span><br/>'
495
																	string+='<a class="operatebtn">'
496
																	string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
497
																	string+='</a>'
498
																	$(".modification").eq(k).html(string);
499
																  break;
500
																case 6:
501
																		var string='<span>对方中止合作合作结束</span><br/>'
502
																		string+='<a class="operatebtn">'
503
																			string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
504
																		//string+='<span class="discuss" dataStatus="1"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>评价</span><br />'
505
																		string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
506
																		string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
507
																		string+='</a>'
508
																		$(".modification").eq(k).html(string);	
509
																  break;
510
																case 7:
511
																	var string='<span>合作进行中</span><br/>'
512
																	string+='<a class="operatebtn">'
513
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
514
																	string+='<span class="acknowledgement"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>确认完成</span><br />'
515
																	string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
516
																	string+='</a>'
517
																	$(".modification").eq(k).html(string);
518
																  break;
519
																case 8:
520
																	var string='<span>完成</span><br/>'
521
																	string+='<a class="operatebtn">'
522
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
523
																	//string+='<span class="discuss" dataStatus="1"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>评价</span><br />'
524
																	string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
525
																	string+='</a>'
526
																	$(".modification").eq(k).html(string);
527
																  break;
528
																default:
529
																  
530
																}	
531
																k++;
532
													addString="";
533
												}
534
												 
535
											}
536
											else
537
											{
538
												$.MsgBox.Alert("消息","系统异常!");
539
											}
540
									},
541
									"error":function(){$.MsgBox.Alert('message','failed')}
542
								});
543
								
373
								getPageResource(3,1,true,i,k)
374
								k++;
544 375
							})(i);
545 376
						
546 377
							add="";
547
						}
378
						}											
379
					
548 380
					}
549 381
					else
550 382
					{
@ -554,6 +386,135 @@ $(function(){
554 386
			"error":function(){$.MsgBox.Alert('message','failed')}
555 387
		});
556 388
	}
389
	function getPageResource(pageSize,pageNo,isbind,e,f)
390
	{
391
				$(".maintab").eq(f).find(".workitem").remove();
392
								$.ajax({		
393
										"url":"/ajax/operation/pqres",
394
										"type":"get",
395
										"async": true,
396
										"data":{"resourceId":$('.resoumag').eq(e+1).attr("resourceId"),"pageSize":pageSize,"pageNo":pageNo},						
397
										"success":function(data){			
398
											if(data.success)
399
												{												
400
													for(var j=0;j<data.data.data.length;j++){
401
														if(data.data.data[j].dealPrice==undefined)
402
														{	
403
															data.data.data[j].dealPrice=0;													
404
														}	
405
														
406
														if(data.data.data[j].payMethod==undefined){												
407
															data.data.data[j].payMethod="";
408
														}
409
														var inquiry=inquiryGetPaidMoney(data.data.data[j].operationId);												
410
														var addString='<tr class="workitem">'
411
										                    addString+='<td>'+data.data.data[j].dealTime+'</td>'
412
										                     addString+='<td class="workitemsrc">'+data.data.data[j].applysquare+'</td>'
413
										                      addString+='<td> <a class="worktel" href="">'+data.data.data[j].professor.name+'<span class="worktelbtn"></span></a></td>'						                  
414
										                      addString+='<td>'+data.data.data[j].deliverTime+'</td>'
415
										                       addString+='<td class="price1">'+data.data.data[j].dealPrice+'</td>'
416
										                        addString+='<td>'+data.data.data[j].payMethod+'</td>'
417
										                       addString+='<td><span>'+inquiry+'</span>/<span>'+data.data.data[j].dealPrice+'</span><br></td>'
418
										                        addString+='<td><div class="modification"></div></td> </tr>'						                      		
419
										                        	$(".tablecon").eq(e).append(addString);
420
																	//console.log($(".tablecon").eq(e));
421
																	if($(".price1").eq(t).text()==0){
422
																		$(".price1").eq(t).text("");
423
																	}	
424
																	console.log(f);
425
																	switch(data.data.data[j].operationStatus)
426
																	{
427
																	case 1:
428
																		var string='<span>新的申请</span><br/>'
429
																		string+='<a class="operatebtn">'
430
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>回复申请</span><br />'
431
																		string+='</a>'
432
																		$(".modification").eq(t).html(string);
433
																	  break;
434
																	case 2:
435
																		var string='<span>发送报价待对方确认</span><br/>'
436
																		string+='<a class="operatebtn">'
437
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus="2" operationId='+data.data.data[j].operationId+'>修改报价</span><br />'
438
																		string+='</a>'
439
																		$(".modification").eq(t).html(string);
440
																	  break;
441
																	case 3:
442
																		var string='<span>对方发来报价合作进行中</span><br/>'
443
																		string+='<a class="operatebtn">'
444
																			string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
445
																		string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
446
																		string+='<span resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
447
																		string+='</a>'
448
																		$(".modification").eq(t).html(string);
449
																	  break;
450
																	case 4:
451
																		var string='<span>对方拒绝报价,合作结束</span><br/>'
452
																		string+='<a class="operatebtn">'
453
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
454
																		string+='</a>'
455
																		$(".modification").eq(t).html(string);
456
																	  break;
457
																	case 5:
458
																		var string='<span>本人拒绝合作</span><br/>'
459
																		string+='<a class="operatebtn">'
460
																		string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
461
																		string+='</a>'
462
																		$(".modification").eq(t).html(string);
463
																	  break;
464
																	case 6:
465
																			var string='<span>对方中止合作合作结束</span><br/>'
466
																			string+='<a class="operatebtn">'
467
																				string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
468
																			//string+='<span class="discuss" dataStatus="1"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>评价</span><br />'
469
																			string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
470
																			string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
471
																			string+='</a>'
472
																			$(".modification").eq(t).html(string);	
473
																	  break;
474
																	case 7:
475
																		var string='<span>合作进行中</span><br/>'
476
																		string+='<a class="operatebtn">'
477
																			string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
478
																		string+='<span class="acknowledgement"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>确认完成</span><br />'
479
																		string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
480
																		string+='</a>'
481
																		$(".modification").eq(t).html(string);
482
																	  break;
483
																	case 8:
484
																		var string='<span>完成</span><br/>'
485
																		string+='<a class="operatebtn">'
486
																			string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
487
																		//string+='<span class="discuss" dataStatus="1"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>评价</span><br />'
488
																		string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
489
																		string+='</a>'
490
																		$(".modification").eq(t).html(string);
491
																	  break;
492
																	default:
493
																	  
494
																	}	
495
																	t++;
496
														addString="";
497
													}
498
													if(isbind == true)
499
									{	
500
										$(".tcdPageCod"+e+"").createPage({
501
									        pageCount:Math.ceil(data.data.total/pageSize),
502
									        current:data.data.pageNo,
503
									        backFn:function(p){					        
504
									        	$(this).parent().parent().find(".workitem").remove();
505
									        	getPageResource(3,p,false,e,f);									        	
506
									        }									      
507
									    });
508
									 } 
509
												}
510
												else
511
												{
512
													$.MsgBox.Alert("消息","系统异常!");
513
												}
514
										},
515
										"error":function(){$.MsgBox.Alert('message','failed')}
516
									});
517
	}
557 518

558 519
//我的资源状态的回复
559 520
$("#consd").on("click",".detailmess",function(){	
@ -572,7 +533,7 @@ $("#consd").on("click",".detailmess",function(){
572 533
		$("select").replaceWith("<span class='sname'></span>")
573 534
		$(".btnboxdown").css({"display":"none"});
574 535
		$(".applysure").css({"display":"none"});
575
		$(".resouinfotype2").text("");
536
		//$(".resouinfotype2").text("");
576 537
		$("#nextStep").click(function(){
577 538
			$(".stateinfor span").text("报价中");
578 539
			$(".btnboxup").css({"display":"none"});
@ -623,7 +584,7 @@ $("#consd").on("click",".detailmess",function(){
623 584
		$("select").replaceWith("<span class='sname'></span>")
624 585
		$(".btnboxdown").css({"display":"none"});
625 586
		$(".applysure").css({"display":"none"});
626
		$(".resouinfotype2").text("");		
587
		//$(".resouinfotype2").text("");		
627 588
			$(".stateinfor span").text("修改报价中");
628 589
			$(".btnboxup").css({"display":"none"});
629 590
			$(".btnboxdown").css({"display":"block"});
@ -666,6 +627,7 @@ $("#consd").on("click",".detailmess",function(){
666 627
		$(".pingjiainfo").css("display","none");
667 628
		ajaxGet1(operationId);
668 629
		$(".payaddbox1").css("display","none");
630
		
669 631
		discussGetPaidMoney(operationId,priceDifference)
670 632
	}
671 633
	if(flag==0&&operationStatus==5){
@ -676,7 +638,7 @@ $("#consd").on("click",".detailmess",function(){
676 638
		$("select").replaceWith("<span class='sname'></span>")
677 639
		$(".btnboxdown").css({"display":"none"});
678 640
		$(".applysure").css({"display":"none"});
679
		$(".resouinfotype2").text("");
641
		//$(".resouinfotype2").text("");
680 642
		$(".addrebtn").css("display","none");
681 643
	}
682 644
	if(flag==0&&operationStatus==4){
@ -687,7 +649,7 @@ $("#consd").on("click",".detailmess",function(){
687 649
		$("select").replaceWith("<span class='sname'></span>")
688 650
		$(".btnboxdown").css({"display":"none"});
689 651
		$(".applysure").css({"display":"none"});
690
		$(".resouinfotype2").text("");		
652
		//$(".resouinfotype2").text("");		
691 653
			$(".stateinfor span").text("详情");
692 654
			$(".btnboxup").css({"display":"none"});
693 655
			$(".btnboxdown").css({"display":"block"});
@ -733,15 +695,17 @@ if(flag==0&&operationStatus==8){
733 695

734 696

735 697
//我的需求查询
736
$.ajax({		
698
function getPageData(pageSize,pageNo,isbind){
699
	$.ajax({		
737 700
	"url":"/ajax/operation/pqdem",
738 701
	"type":"get",
739 702
	"async": true,
740
	"data":{"demandId":userid},
703
	"data":{"demandId":userid,"pageSize":pageSize,"pageNo":pageNo},
741 704
	"success":function(data){
742 705
		if(data.success)
743 706
			{	
744
			//console.log(data);
707
			$(".worktabb").html("");
708
			console.log(data);
745 709
			//alert(data.data.data.length);
746 710
				for(var i=0;i<data.data.data.length;i++)
747 711
					{	
@ -836,6 +800,16 @@ $.ajax({
836 800
							default:							  
837 801
							}	
838 802
					}
803
				if(isbind == true)
804
								{
805
									$(".tcdPageCode1").createPage({
806
								        pageCount:Math.ceil(data.data.total/pageSize),
807
								        current:data.data.pageNo,
808
								        backFn:function(p){								        	
809
								        	getPageData(pageSize,p,false);
810
								        },								      
811
								    });
812
								 }
839 813
			}
840 814
			else
841 815
			{
@ -844,6 +818,8 @@ $.ajax({
844 818
	},
845 819
	"error":function(){$.MsgBox.Alert('message','failddd')}
846 820
});
821
}
822
getPageData(4,1,true);
847 823
//确认完成
848 824
$(".workmysrc").on("click",".acknowledgement",function(){
849 825
	finish();
@ -1287,7 +1263,7 @@ $(".workmysrc").on("click",".detailm",function(){
1287 1263
		ajaxGet(operationId);
1288 1264
		//if($(".dealTime").val()!=""&&$(".detail").val()!="")
1289 1265
		//{
1290
			$("#del").on("click",function()
1266
			$("#deliver").on("click",function()
1291 1267
					{	
1292 1268
						var $data = {};
1293 1269
						$data.operationId=operationId;
@ -1325,7 +1301,7 @@ $(".workmysrc").on("click",".detailm",function(){
1325 1301
		$("select").replaceWith("<span class='sname'></span>")
1326 1302
		$(".btnboxdown").css({"display":"none"});
1327 1303
		$(".applysure").css({"display":"none"});
1328
		$(".resouinfotype2").text("");		
1304
		//$(".resouinfotype2").text("");		
1329 1305
			$(".stateinfor span").text("详情");
1330 1306
			$(".btnboxup").css({"display":"none"});
1331 1307
			$(".btnboxdown").css({"display":"block"});
@ -1379,7 +1355,7 @@ $(".workmysrc").on("click",".detailm",function(){
1379 1355
		$("select").replaceWith("<span class='sname'></span>")
1380 1356
		$(".btnboxdown").css({"display":"none"});
1381 1357
		$(".applysure").css({"display":"none"});
1382
		$(".resouinfotype2").text("");
1358
		//$(".resouinfotype2").text("");
1383 1359
		$(".addrebtn").css("display","none");
1384 1360
	}
1385 1361
	if(flag==1&&operationStatus==5){
@ -1390,7 +1366,7 @@ $(".workmysrc").on("click",".detailm",function(){
1390 1366
		$("select").replaceWith("<span class='sname'></span>")
1391 1367
		$(".btnboxdown").css({"display":"none"});
1392 1368
		$(".applysure").css({"display":"none"});
1393
		$(".resouinfotype2").text("");		
1369
		//$(".resouinfotype2").text("");		
1394 1370
			$(".stateinfor span").text("详情");
1395 1371
			$(".btnboxup").css({"display":"none"});
1396 1372
			$(".btnboxdown").css({"display":"block"});
@ -1404,6 +1380,7 @@ $(".workmysrc").on("click",".detailm",function(){
1404 1380
	if(flag==1&&operationStatus==6){
1405 1381
		DetailInfo();	
1406 1382
		$("#totalPrice").text(priceDifference);
1383
		$(".filebox").css("display","none");
1407 1384
		$(".liuyaninfo").css("display","none");		
1408 1385
		$(".pingjiainfo").css("display","none");
1409 1386
		ajaxGet1(operationId);
@ -1479,12 +1456,15 @@ function ajaxGet(operationId){
1479 1456
		"success":function(data){
1480 1457
			if(data.success)
1481 1458
				{
1459
				//console.log(data);
1482 1460
					$(".log").text(data.data.resource.resourceName);
1483 1461
					$(".timelog").text(data.data.deliverTime);
1484 1462
					$(".contration").text(data.data.operationId);
1485 1463
					$(".detail").text(data.data.detailDemand);
1486 1464
					$(".dealTime").text(data.data.dealTime);
1487 1465
					$(".sname").text(data.data.applysquare);
1466
					$(".namecon").text(data.data.resource.professor.name);
1467
					
1488 1468
					if(data.data.payMethod){
1489 1469
						$("#payMethod").val(data.data.payMethod);
1490 1470
					}
@ -1511,12 +1491,13 @@ function ajaxGet1(operationId){
1511 1491

1512 1492
		"success":function(data){
1513 1493
			if(data.success)
1514
				{//console.log(data);
1494
				{console.log(data);
1515 1495
					$(".log").text(data.data.resource.resourceName);
1516 1496
					$(".timelog").text(data.data.deliverTime);
1517 1497
					$(".contration").text(data.data.operationId);
1518 1498
					$(".detail").text(data.data.detailDemand);
1519 1499
					$(".dealTime").text(data.data.dealTime);
1500
					$(".namecon").text(data.data.resource.professor.name);
1520 1501
					$(".sname").text(data.data.applysquare);
1521 1502
					if(data.data.payMethod){
1522 1503
						$("#payMethod").text(data.data.payMethod);

+ 2 - 6
src/main/webapp/sciresource.html

@ -25,13 +25,9 @@
25 25
                    <th width="12%">付款进程</th>
26 26
                    <th width="14%">状态/操作</th>
27 27
                </tr>
28
                
29
                <tr>
30
                    <td colspan="9">
31
                        <!-- <div class="tcdPageCode"><span class="disabled">上一页</span><span class="current">1</span><a href="javascript:;" class="tcdNumber">2</a><a href="javascript:;" class="tcdNumber">3</a><a href="javascript:;" class="tcdNumber">4</a><span>...</span><a href="javascript:;" class="tcdNumber">26</a><a href="javascript:;" class="nextPage">下一页</a></div> -->
32
                    </td>
33
                </tr>
28
  
34 29
            </table>
30
           <div class="tcdPageCode tcdPageCode1"></div>
35 31
        </div>
36 32
        <!--我的需求 //-->
37 33
    </div>