|
@ -7,9 +7,13 @@ var professorIdStrByconsult = {
|
7
|
7
|
//用于收到回复传值
|
8
|
8
|
var consultIdStrByReply = {
|
9
|
9
|
"consultantId":userid,
|
10
|
|
"pageSize":"5",
|
11
|
|
"pageNo":"1"
|
|
10
|
|
12
|
11
|
};
|
|
12
|
|
|
13
|
//点击主页面咨询
|
|
14
|
$(".workmenu").on("click","#consultbtn",clickConsultBtn);
|
|
15
|
|
|
16
|
|
13
|
17
|
//data:需要处理的数据,htmlStr:页面中需要的html字符串拼接,
|
14
|
18
|
//attrParams:数据中不同的参数比如:收到咨询是professorId,收到答复:consultantId
|
15
|
19
|
function handleData(data,htmlStr,attrParams,btnCls){
|
|
@ -33,23 +37,50 @@ function handleData(data,htmlStr,attrParams,btnCls){
|
33
|
37
|
if(data[i]["consultStatus"] == 0){
|
34
|
38
|
data[i]["consultStatus"] = "进行中";
|
35
|
39
|
text = '回复';
|
36
|
|
};
|
|
40
|
data[i]["assessStatus"] = "";
|
|
41
|
data[i]["thanksStatus"] = "";
|
|
42
|
};
|
37
|
43
|
if(data[i]["consultStatus"] == 1){
|
38
|
|
data[i]["consultStatus"] = "完成";
|
|
44
|
data[i]["consultStatus"] = "完成/";
|
39
|
45
|
text = "查看";
|
|
46
|
if(data[i]["assessStatus"] == 0){
|
|
47
|
data[i]["assessStatus"] = "未评价/";
|
|
48
|
}
|
|
49
|
if(data[i]["assessStatus"] == 1){
|
|
50
|
data[i]["assessStatus"] = "已评价/";
|
|
51
|
}
|
|
52
|
if(data[i]["thanksStatus"] == 0){
|
|
53
|
data[i]["thanksStatus"] = "未感谢";
|
|
54
|
}
|
|
55
|
if(data[i]["thanksStatus"] == 1){
|
|
56
|
data[i]["thanksStatus"] = "已感谢";
|
|
57
|
};
|
|
58
|
|
40
|
59
|
}
|
41
|
|
if(data[i]["assessStatus"] == 0){
|
42
|
|
data[i]["assessStatus"] = "未评价";
|
43
|
|
}
|
44
|
|
if(data[i]["assessStatus"] == 1){
|
45
|
|
data[i]["assessStatus"] = "已评价";
|
46
|
|
}
|
47
|
|
|
48
|
|
if(data[i]["thanksStatus"] == 0){
|
49
|
|
data[i]["thanksStatus"] = "未感谢";
|
50
|
|
}
|
51
|
|
if(data[i]["thanksStatus"] == 1){
|
52
|
|
data[i]["thanksStatus"] = "已感谢";
|
|
60
|
|
|
61
|
|
|
62
|
//未读信息接口
|
|
63
|
var unreadConsultFn = function (senderId,consultId){
|
|
64
|
var unreadCount;
|
|
65
|
var params = {
|
|
66
|
"senderId":senderId, //发送者ID
|
|
67
|
"consultId":consultId //咨询ID
|
|
68
|
};
|
|
69
|
$.ajax({
|
|
70
|
url:"/ajax/tidings/qaNotReadTidings",
|
|
71
|
type:"get",
|
|
72
|
async:false,
|
|
73
|
data:params,
|
|
74
|
success:function(response){
|
|
75
|
unreadCount = response["data"];
|
|
76
|
},
|
|
77
|
error:function(error){
|
|
78
|
$.MsgBox.Alert('提示',"未读消息请求失败");
|
|
79
|
}
|
|
80
|
|
|
81
|
});
|
|
82
|
return unreadCount;
|
|
83
|
console.log(unreadCount);
|
53
|
84
|
};
|
54
|
85
|
|
55
|
86
|
htmlStr +=
|
|
@ -60,7 +91,7 @@ function handleData(data,htmlStr,attrParams,btnCls){
|
60
|
91
|
"<a class='workhead workitimg' href='information.html'>" +
|
61
|
92
|
"<img src='images/default-photo.jpg' width='100%' height='100%'>" +
|
62
|
93
|
"</a>" +
|
63
|
|
"<span class='msgprompt'>1</span>" +
|
|
94
|
"<span class='msgprompt showUnreadMsg' id='" +data[i]["consultId"] +"'>"+unreadConsultFn(userid,data[i]["consultId"])+"</span>" +
|
64
|
95
|
"</td>" +
|
65
|
96
|
"<td style='position:relative;' width='86%'>" +
|
66
|
97
|
"<div class='workinfor worksitcon'>" +
|
|
@ -83,14 +114,14 @@ function handleData(data,htmlStr,attrParams,btnCls){
|
83
|
114
|
"</div>" +
|
84
|
115
|
"<div class='workhandle'>" +
|
85
|
116
|
"<div class='rightopert floatR'>" +
|
86
|
|
"<span class='replybtn "+btnCls+"' id='"+ data[i]["consultId"]+ "' assess='"+ data[i]["assessStatus"]+ "' thanks='"+ data[i]["thanksStatus"]+ "'>" +text +"</span>" +
|
|
117
|
"<span attrP='"+attrParams+"' class='replybtn "+btnCls+"' id='"+ data[i]["consultId"]+"' consultStatus='"+ data[i]["consultStatus"]+"' assess='"+ data[i]["assessStatus"]+ "' thanks='"+ data[i]["thanksStatus"]+ "'>" +text +"</span>" +
|
87
|
118
|
"<span class='moreopert complain'>...</span>" +
|
88
|
119
|
"<ul class='moreopertbtn'>" +
|
89
|
120
|
"<li>投诉</li>" +
|
90
|
121
|
"</ul>" +
|
91
|
122
|
"</div>" +
|
92
|
123
|
"<div class='leftstate floatR'>" +
|
93
|
|
"<span class='coultstate'><i class='coultState'>" +data[i]["consultStatus"]+"/</i><i class='assessStatus'> "+data[i]["assessStatus"]+"/ </i><i class='thanksStatus' >"+data[i]["thanksStatus"]+"</i></span>" +
|
|
124
|
"<span class='coultstate'><i class='coultState'>" +data[i]["consultStatus"]+"</i><i class='assessStatus'> "+data[i]["assessStatus"]+"</i><i class='thanksStatus' >"+data[i]["thanksStatus"]+"</i></span>" +
|
94
|
125
|
"</div>" +
|
95
|
126
|
"</div>" +
|
96
|
127
|
"</td>" +
|
|
@ -151,17 +182,579 @@ function dialogContentStrFn(data){
|
151
|
182
|
|
152
|
183
|
|
153
|
184
|
|
|
185
|
//收到回复
|
|
186
|
var getMyData = function (url,pageSize,pageNo,isbind,status,timeType,sortType){
|
|
187
|
var params = {
|
|
188
|
"consultantId":userid, //专家ID
|
|
189
|
"status":status, //查询状态 0-全部,1-进行中,2-未感谢,3-未评价,4-已完成, 可以不传,默认为0
|
|
190
|
"timeType":timeType, //排序类型 0-按发起时间,1-按最后回复时间,2-按完成时间 默认为0
|
|
191
|
"sortType":sortType, //排序类型 0-倒序,1-正序 默认为0
|
|
192
|
"pageSize":pageSize, //每页记录数 默认为5
|
|
193
|
"pageNo":pageNo //当前页码 默认为1
|
|
194
|
};
|
|
195
|
console.log(params);
|
|
196
|
$.ajax({
|
|
197
|
url:url,//收到回复接口,//收到回复接口
|
|
198
|
type:"get",
|
|
199
|
//传值:登陆人id:咨询id
|
|
200
|
data :params,
|
|
201
|
dataType: "json",
|
|
202
|
contentType: "application/x-www-form-urlencoded",
|
|
203
|
"success":function(response){
|
|
204
|
//拿到收到回复数据
|
|
205
|
var replyTrHtml;
|
|
206
|
var allData = response.data;
|
|
207
|
var myData = allData.data;
|
|
208
|
console.log(myData)
|
|
209
|
$("#workContainer2 .workselectitem").remove();
|
|
210
|
if(myData.length != 0 && myData.length != null){
|
|
211
|
replyTrHtml = handleData(myData,replyTrHtml,"consultId","lookBtn");
|
|
212
|
$("#workContainer2").prepend(replyTrHtml);
|
|
213
|
|
|
214
|
$("#workContainer2 .workselectitem").find(".lookBtn").bind("click",clickLookBtn);
|
|
215
|
|
|
216
|
if(isbind == true){
|
|
217
|
$(".getReplyPage").createPage({
|
|
218
|
pageCount:Math.ceil(allData.total/pageSize),
|
|
219
|
current:allData.pageNo,
|
|
220
|
backFn:function(p){
|
|
221
|
getMyData(url,pageSize,p,false,status,timeType,sortType);
|
|
222
|
}
|
|
223
|
});
|
|
224
|
}
|
|
225
|
|
|
226
|
}else{
|
|
227
|
return false;
|
|
228
|
}
|
|
229
|
|
|
230
|
|
|
231
|
},
|
|
232
|
"error":function(response){
|
|
233
|
//收到回复错误返回
|
|
234
|
$.MsgBox.Alert('提示',"收到回复数据请求失败");
|
|
235
|
},
|
|
236
|
|
|
237
|
});
|
|
238
|
};
|
|
239
|
|
|
240
|
var getConsultData = function (url,pageSize,pageNo,isbind,status,timeType,sortType){
|
|
241
|
var params = {
|
|
242
|
"professorId":userid, //专家ID
|
|
243
|
"status":status, //查询状态 0-全部,1-进行中,2-未感谢,3-未评价,4-已完成, 可以不传,默认为0
|
|
244
|
"timeType":timeType, //排序类型 0-按发起时间,1-按最后回复时间,2-按完成时间 默认为0
|
|
245
|
"sortType":sortType, //排序类型 0-倒序,1-正序 默认为0
|
|
246
|
"pageSize":pageSize, //每页记录数 默认为5
|
|
247
|
"pageNo":pageNo //当前页码 默认为1
|
|
248
|
};
|
|
249
|
console.log(params);
|
|
250
|
$.ajax({
|
|
251
|
url:url,//收到回复接口,//收到回复接口
|
|
252
|
type:"get",
|
|
253
|
//传值:登陆人id:咨询id
|
|
254
|
data :params,
|
|
255
|
dataType: "json",
|
|
256
|
contentType: "application/x-www-form-urlencoded",
|
|
257
|
success:function(response){
|
|
258
|
console.log(response);
|
|
259
|
//拿到收到回复数据
|
|
260
|
|
|
261
|
var replyTrHtml;
|
|
262
|
var allData = response.data;
|
|
263
|
var myData = allData["data"];
|
|
264
|
console.log(myData)
|
|
265
|
$("#workContainer .workselectitem").remove();
|
|
266
|
if(myData.length != 0 && myData.length != null){
|
|
267
|
replyTrHtml = handleData(myData,replyTrHtml,"professorId","lookBtn");
|
|
268
|
$("#workContainer").prepend(replyTrHtml);
|
|
269
|
|
|
270
|
$("#workContainer .workselectitem").find(".lookBtn").bind("click",clickLookBtn);
|
|
271
|
|
|
272
|
if(isbind == true){
|
|
273
|
$(".getConsultPage").createPage({
|
|
274
|
pageCount:Math.ceil(allData.total/pageSize),
|
|
275
|
current:allData.pageNo,
|
|
276
|
backFn:function(p){
|
|
277
|
getConsultData(url,pageSize,p,false,status,timeType,sortType);
|
|
278
|
}
|
|
279
|
});
|
|
280
|
}
|
|
281
|
|
|
282
|
}else{
|
|
283
|
return false;
|
|
284
|
}
|
|
285
|
|
|
286
|
|
|
287
|
},
|
|
288
|
error:function(response){
|
|
289
|
//收到回复错误返回
|
|
290
|
$.MsgBox.Alert('提示',"收到咨询数据请求失败");
|
|
291
|
},
|
|
292
|
|
|
293
|
});
|
|
294
|
};
|
|
295
|
|
|
296
|
|
|
297
|
//对话标题数据
|
|
298
|
/*function lookDialogHeadDataHandleFn(params){
|
|
299
|
|
|
300
|
var starStart;//星星评级
|
|
301
|
function clickStar(){
|
|
302
|
$(".evastar2").removeClass('addStar');
|
|
303
|
starStart=$(this).index()+1;
|
|
304
|
for(var i=0;i<starStart;i++){
|
|
305
|
if(i<starStart){
|
|
306
|
$(".evastar2").eq(i).addClass("addStar");
|
|
307
|
}
|
|
308
|
else{
|
|
309
|
$(".evastar2").eq(i).removeClass('addStar');
|
|
310
|
}
|
|
311
|
}
|
|
312
|
$("#startCount").val($(".addStar").length);
|
|
313
|
};
|
|
314
|
|
|
315
|
$.ajax({
|
|
316
|
"url":"/ajax/consult/qacon",//从收到回复点击查看接口
|
|
317
|
"type":"get",
|
|
318
|
"data":params,
|
|
319
|
"success":function(response){
|
|
320
|
// console.log("点击查看返回数据");
|
|
321
|
// console.log(response)
|
|
322
|
var consultantData = response["data"];
|
|
323
|
//对话框标题信息
|
|
324
|
//进行中,
|
|
325
|
if(consultantData["consultStatus"] == 0){
|
|
326
|
consultantData["consultStatus"] = "进行中";
|
|
327
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
|
328
|
$("#dial_confirmFinishConsult").css("display","block");//确认完成按钮显示
|
|
329
|
$("#showAllAssess").css("display","none");//总体评价
|
|
330
|
$(".dialogfoot").css("display","block");//显示发送对话部分
|
|
331
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
332
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
333
|
|
|
334
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
335
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
336
|
|
|
337
|
}
|
|
338
|
//已完成
|
|
339
|
if(consultantData["consultStatus"] == 1 || consultantData["consultStatus"] == 2 ||consultantData["consultStatus"] == 3 || consultantData["consultStatus"] == 4){
|
|
340
|
consultantData["consultStatus"] = "已完成";
|
|
341
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
|
342
|
//已完成,未感谢:
|
|
343
|
if(consultantData["thanksStatus"] == 0){
|
|
344
|
$("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
|
345
|
//未感谢,未评价
|
|
346
|
if(consultantData["assessStatus"] == 0){
|
|
347
|
$("#dialog_assessBtn").css("display","block");//显示评价按钮
|
|
348
|
|
|
349
|
$("#showAllAssess").css("display","none");//隐藏总体评价
|
|
350
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
351
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
352
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
353
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
354
|
}
|
|
355
|
//未感谢,已评价
|
|
356
|
else{
|
|
357
|
|
|
358
|
// $("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
|
359
|
|
|
360
|
var starCount = consultantData["assessStar"];
|
|
361
|
for(var i=0;i<starCount;i++){
|
|
362
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
|
363
|
}
|
|
364
|
$("#showAllAssess").css("display","block");//显示星级
|
|
365
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
366
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
367
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
368
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
369
|
}
|
|
370
|
|
|
371
|
}
|
|
372
|
//已完成,已感谢:评价星级,感谢金额
|
|
373
|
if(consultantData["thanksStatus"] == 1){
|
|
374
|
$(".dialogfoot").css("display","none");//隐藏发送对话部分
|
|
375
|
var starCount = consultantData["assessStar"];
|
|
376
|
for(var i=0;i<starCount;i++){
|
|
377
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
|
378
|
};
|
|
379
|
$("#showAllAssess").css("display","block");//显示星级
|
|
380
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
381
|
|
|
382
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
383
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
384
|
$("#dialog_thanksMoney").text(consultantData["thanksMoney"]);
|
|
385
|
}
|
|
386
|
|
|
387
|
}
|
|
388
|
|
|
389
|
},
|
|
390
|
"error":function(error){
|
|
391
|
//对话框头部信息请求失败
|
|
392
|
}
|
|
393
|
});
|
|
394
|
|
|
395
|
};*/
|
|
396
|
|
|
397
|
function clickLookBtn(){
|
|
398
|
// var consultId = $.trim($(this).attr("id"));//咨询id
|
|
399
|
// var assessStatus = $.trim($(this).attr("assess"));//评价状态 0-未评价,1-已评价
|
|
400
|
//var consultStatus = $(this).find(".coultState").text();//咨询状态 0-进行中,1-已完成
|
|
401
|
//var thanksStatus = $(this).find(".thanksStatus").text();//感谢状态 0-未感谢,1-已感谢
|
|
402
|
//var assessStar = $(this).find(".assessStar").val();//星级,几颗星 用隐藏域做
|
|
403
|
// localStorage.setItem("consultId", consultId);
|
|
404
|
// alert(assessStatus);
|
|
405
|
alert($.trim($(this).attr("consultStatus")));
|
|
406
|
|
|
407
|
var consultIdParams = {"consultId":$.trim($(this).attr("id"))};//咨询id
|
|
408
|
var clickConfirmFinishParams = {
|
|
409
|
"consultId":$.trim($(this).attr("id")),//咨询id
|
|
410
|
"consultStatus":$(this).find(".coultState").text()//咨询状态 0-进行中,1-已完成
|
|
411
|
};
|
|
412
|
console.log($.trim($(this).attr("assess")));
|
|
413
|
|
|
414
|
if($.trim($(this).attr("assess")) == "未评价/" && $.trim($(this).attr("consultStatus")) == "完成/" && $(this).attr("attrP") == "consultId"){
|
|
415
|
assessFn();
|
|
416
|
//点击稍后评价
|
|
417
|
$("#noAssessBtn").bind("click",noAssess);
|
|
418
|
|
|
419
|
//ajax加载对话页面
|
|
420
|
|
|
421
|
}else{
|
|
422
|
$(".dialogfoot").css("display","none");
|
|
423
|
$.ajax({
|
|
424
|
"url":"diloags.html",
|
|
425
|
"dataType":"html",
|
|
426
|
"success":function(result){
|
|
427
|
//console.log(data);
|
|
428
|
$(this).attr("id");
|
|
429
|
$(".workcon").html(result);
|
|
430
|
|
|
431
|
lookDialogHeadDataHandleFn();
|
|
432
|
dialogContentDataHandle();
|
|
433
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
|
434
|
},
|
|
435
|
"error":function(error){
|
|
436
|
//console.log(data);
|
|
437
|
//加载对话页面失败
|
|
438
|
console.log(error);
|
|
439
|
}
|
|
440
|
});
|
|
441
|
|
|
442
|
}
|
|
443
|
|
|
444
|
//===========================================dialog数据==================
|
|
445
|
//=========对话头部
|
|
446
|
//对话头部数据渲染
|
|
447
|
function lookDialogHeadDataHandleFn(){
|
|
448
|
//星星评级
|
|
449
|
var starStart;
|
|
450
|
function clickStar(){
|
|
451
|
$(".evastar2").removeClass('addStar');
|
|
452
|
starStart=$(this).index()+1;
|
|
453
|
for(var i=0;i<starStart;i++){
|
|
454
|
if(i<starStart){
|
|
455
|
$(".evastar2").eq(i).addClass("addStar");
|
|
456
|
}
|
|
457
|
else{
|
|
458
|
$(".evastar2").eq(i).removeClass('addStar');
|
|
459
|
}
|
|
460
|
}
|
|
461
|
$("#startCount").val($(".addStar").length);
|
|
462
|
};
|
|
463
|
|
|
464
|
$.ajax({
|
|
465
|
"url":"/ajax/consult/qacon",//从收到回复点击查看接口
|
|
466
|
"type":"get",
|
|
467
|
"data":consultIdParams,
|
|
468
|
"success":function(response){
|
|
469
|
// console.log("点击查看返回数据");
|
|
470
|
// console.log(response)
|
|
471
|
var consultantData = response["data"];
|
|
472
|
//对话框标题信息
|
|
473
|
//进行中,
|
|
474
|
if(consultantData["consultStatus"] == 0){
|
|
475
|
consultantData["consultStatus"] = "进行中";
|
|
476
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
|
477
|
$("#dial_confirmFinishConsult").css("display","block");//确认完成按钮显示
|
|
478
|
$("#showAllAssess").css("display","none");//总体评价
|
|
479
|
$(".dialogfoot").css("display","block");//显示发送对话部分
|
|
480
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
481
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
482
|
|
|
483
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
484
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
485
|
|
|
486
|
}
|
|
487
|
//已完成
|
|
488
|
if(consultantData["consultStatus"] == 1 || consultantData["consultStatus"] == 2 ||consultantData["consultStatus"] == 3 || consultantData["consultStatus"] == 4){
|
|
489
|
consultantData["consultStatus"] = "已完成";
|
|
490
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
|
491
|
//已完成,未感谢:
|
|
492
|
if(consultantData["thanksStatus"] == 0){
|
|
493
|
$("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
|
494
|
//未感谢,未评价
|
|
495
|
if(consultantData["assessStatus"] == 0){
|
|
496
|
$("#dialog_assessBtn").css("display","block");//显示评价按钮
|
|
497
|
|
|
498
|
$("#showAllAssess").css("display","none");//隐藏总体评价
|
|
499
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
500
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
501
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
502
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
503
|
}
|
|
504
|
//未感谢,已评价
|
|
505
|
else{
|
|
506
|
|
|
507
|
// $("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
|
508
|
|
|
509
|
var starCount = consultantData["assessStar"];
|
|
510
|
for(var i=0;i<starCount;i++){
|
|
511
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
|
512
|
}
|
|
513
|
$("#showAllAssess").css("display","block");//显示星级
|
|
514
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
|
515
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
516
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
517
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
518
|
}
|
|
519
|
|
|
520
|
}
|
|
521
|
//已完成,已感谢:评价星级,感谢金额
|
|
522
|
if(consultantData["thanksStatus"] == 1){
|
|
523
|
$(".dialogfoot").css("display","none");//隐藏发送对话部分
|
|
524
|
var starCount = consultantData["assessStar"];
|
|
525
|
for(var i=0;i<starCount;i++){
|
|
526
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
|
527
|
};
|
|
528
|
$("#showAllAssess").css("display","block");//显示星级
|
|
529
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
|
530
|
|
|
531
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
|
532
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
|
533
|
$("#dialog_thanksMoney").text(consultantData["thanksMoney"]);
|
|
534
|
}
|
|
535
|
|
|
536
|
}
|
|
537
|
|
|
538
|
},
|
|
539
|
"error":function(error){
|
|
540
|
//对话框头部信息请求失败
|
|
541
|
}
|
|
542
|
});
|
|
543
|
|
|
544
|
};
|
|
545
|
|
|
546
|
|
|
547
|
|
|
548
|
//============对话内容数据处理函数
|
|
549
|
function dialogContentDataHandle(){
|
|
550
|
$.ajax({
|
|
551
|
"url":"/ajax/tidings/qacon",//对话内容显示接口
|
|
552
|
"type":"get",
|
|
553
|
"data":consultIdParams,
|
|
554
|
"beforeSend":function(response){
|
|
555
|
//对话发送消息失败
|
|
556
|
//console.log(response);
|
|
557
|
},
|
|
558
|
"success":function(response){
|
|
559
|
console.log()
|
|
560
|
var dialogConData = response["data"];
|
|
561
|
// console.log(dialogConData);
|
|
562
|
var dialogStr;
|
|
563
|
dialogStr = dialogContentStrFn(dialogConData);
|
|
564
|
$("#dialogContent").prepend(dialogStr);
|
|
565
|
//
|
|
566
|
},
|
|
567
|
"error":function(error){
|
|
568
|
//对话框内容信息请求失败
|
|
569
|
}
|
|
570
|
});
|
|
571
|
|
|
572
|
|
|
573
|
};
|
|
574
|
|
|
575
|
|
|
576
|
//=============================对话页面底部发送
|
|
577
|
//发送按钮处理函数
|
|
578
|
function sendDialogContentFn(){
|
|
579
|
var tidingsContant = $("#dialog_sendContent").val();
|
|
580
|
var tidingStr = {
|
|
581
|
"tidingsContant":tidingsContant,
|
|
582
|
"senderId":userid,
|
|
583
|
"consultId":consultId
|
|
584
|
};
|
|
585
|
//console.log(tidingStr);
|
|
586
|
$.ajax({
|
|
587
|
"url":"/ajax/tidings",
|
|
588
|
"type":"post",
|
|
589
|
"data":tidingStr,
|
|
590
|
"beforeSend":function(response){
|
|
591
|
//对话发送消息失败
|
|
592
|
console.log(response);
|
|
593
|
},
|
|
594
|
"success":function(response){
|
|
595
|
console.log(response);//返回对话内容的id
|
|
596
|
$("#dialogContent").empty();
|
|
597
|
dialogContentDataHandle();
|
|
598
|
},
|
|
599
|
"error":function(error){
|
|
600
|
//对话发送消息失败
|
|
601
|
console.log(error);
|
|
602
|
}
|
|
603
|
});
|
|
604
|
$("#dialog_sendContent").val("");
|
|
605
|
};
|
|
606
|
|
|
607
|
|
|
608
|
|
|
609
|
//==============发表评价页
|
|
610
|
function assessFn(){
|
|
611
|
ConsultComment();
|
|
612
|
|
|
613
|
if($.trim($(this).attr("thanks")) == "未感谢"){
|
|
614
|
$(".addcomment2").css("display","none");//
|
|
615
|
|
|
616
|
}else{
|
|
617
|
|
|
618
|
$(".overcomment").css("display","none");
|
|
619
|
}
|
|
620
|
//评价星星样式
|
|
621
|
var start;
|
|
622
|
function clickStar(){
|
|
623
|
$(".evastar2").removeClass('addStar');
|
|
624
|
start=$(this).index()+1;
|
|
625
|
for(var i=0;i<start;i++){
|
|
626
|
if(i<start){
|
|
627
|
$(".evastar2").eq(i).addClass("addStar");
|
|
628
|
}
|
|
629
|
else{
|
|
630
|
$(".evastar2").eq(i).removeClass('addStar');
|
|
631
|
}
|
|
632
|
}
|
|
633
|
$("#startCount").val($(".addStar").length);
|
|
634
|
};
|
|
635
|
$(".evastar2").bind("click",clickStar);
|
|
636
|
//发表评论
|
|
637
|
$("#sendAssessBtn").bind("click",clickSendAssessBtn);
|
|
638
|
|
|
639
|
};
|
|
640
|
|
|
641
|
//绑定对话页面确认完成咨询
|
|
642
|
$("#dial_confirmFinishConsult").bind("click",assessFn);
|
|
643
|
$("#dialog_assessBtn").bind("click",assessFn);
|
|
644
|
|
|
645
|
|
|
646
|
//点击发表评论:保存发表内容和星级
|
|
647
|
function clickSendAssessBtn(){
|
|
648
|
var consultId = localStorage.getItem("consultId");//
|
|
649
|
var assessStar = $("#startCount").val();
|
|
650
|
var assessContant = $(".resouinforcon").find("textarea").val();
|
|
651
|
//评价状态 0-未评价,1-已评价
|
|
652
|
|
|
653
|
//确认完成后,发表评论传值
|
|
654
|
var assessContentStr ={
|
|
655
|
"consultId":consultId, //咨询ID
|
|
656
|
"assessStatus":"1", //评价状态 0-未评价,1-已评价
|
|
657
|
"assessStar":assessStar, //评价星级
|
|
658
|
"assessContant":assessContant //评价内容
|
|
659
|
};
|
|
660
|
|
|
661
|
// console.log(assessContentStr);
|
|
662
|
//如果未评论,提示未评论
|
|
663
|
if(assessStar == "" || assessStar == null || assessStar == undefined){
|
|
664
|
if(assessContant == "" || assessContant == null || assessContant == undefined){
|
|
665
|
$.MsgBox.Alert('提示',"未评论,是否退出评论");
|
|
666
|
}
|
|
667
|
$.MsgBox.Alert('提示',"未选择星级");
|
|
668
|
};
|
|
669
|
//保存
|
|
670
|
$.ajax({
|
|
671
|
"url":"/ajax/consult/assess",//点击发表评论接口
|
|
672
|
"type":"post",
|
|
673
|
"data":assessContentStr,
|
|
674
|
"success":function(response){
|
|
675
|
// console.log(response);
|
|
676
|
$(".blackcover").remove();
|
|
677
|
$("body").css("position","static");
|
|
678
|
$.MsgBox.Alert('提示',"评论成功");
|
|
679
|
//评价状态改变,所以头部信息改变
|
|
680
|
lookDialogHeadDataHandleFn();
|
|
681
|
},
|
|
682
|
"error":function(error){
|
|
683
|
//发表评论失败
|
|
684
|
console.log(error);
|
|
685
|
}
|
|
686
|
|
|
687
|
});
|
|
688
|
//发表评论
|
|
689
|
$.ajax({
|
|
690
|
"url":"diloags.html",
|
|
691
|
"dataType":"html",
|
|
692
|
"success":function(result){
|
|
693
|
//console.log(data);
|
|
694
|
$(this).attr("id");
|
|
695
|
$(".workcon").html(result);
|
|
696
|
|
|
697
|
$(".blackcover").remove();
|
|
698
|
$("body").css("position","static");
|
|
699
|
lookDialogHeadDataHandleFn();
|
|
700
|
dialogContentDataHandle();
|
|
701
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
|
702
|
|
|
703
|
|
|
704
|
},
|
|
705
|
"error":function(error){
|
|
706
|
//console.log(data);
|
|
707
|
//加载对话页面失败
|
|
708
|
console.log(error);
|
|
709
|
}
|
|
710
|
});
|
|
711
|
|
|
712
|
|
|
713
|
|
|
714
|
};
|
|
715
|
|
|
716
|
|
|
717
|
//稍后评价、
|
|
718
|
function noAssess(){
|
|
719
|
$.ajax({
|
|
720
|
"url":"diloags.html",
|
|
721
|
"dataType":"html",
|
|
722
|
"success":function(result){
|
|
723
|
//console.log(data);
|
|
724
|
$(this).attr("id");
|
|
725
|
$(".workcon").html(result);
|
|
726
|
$(".blackcover").remove();
|
|
727
|
$("body").css("position","static");
|
|
728
|
lookDialogHeadDataHandleFn();
|
|
729
|
dialogContentDataHandle();
|
|
730
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
|
731
|
|
|
732
|
},
|
|
733
|
"error":function(error){
|
|
734
|
//加载对话页面失败
|
|
735
|
$.MsgBox.Alert('提醒',"对话请求错误");
|
|
736
|
}
|
|
737
|
});
|
|
738
|
};
|
|
739
|
|
|
740
|
|
|
741
|
};//收到回复点击查看函数结束
|
|
742
|
|
|
743
|
|
|
744
|
|
|
745
|
|
|
746
|
|
|
747
|
|
|
748
|
|
154
|
749
|
|
155
|
750
|
|
156
|
|
function clickConsultBtn(){
|
157
|
751
|
|
158
|
|
//1.先ajax请求,判断是否有收到咨询消息,然后ajax-html,然后渲染数据
|
159
|
|
//检查用户是否登录
|
|
752
|
|
|
753
|
function clickConsultBtn(){
|
160
|
754
|
if(userid != "" && userid != null){
|
161
|
755
|
$.ajax({
|
162
|
756
|
"url":"/ajax/consult/pqpro",//判断是否有无咨询
|
163
|
757
|
"type" : "get",
|
164
|
|
//传值:登陆人id:专家id
|
165
|
758
|
"data" :{"professorId":userid},
|
166
|
759
|
"contentType" : "application/x-www-form-urlencoded",
|
167
|
760
|
"success":function(consultResponse){
|
|
@ -173,120 +766,34 @@ function clickConsultBtn(){
|
173
|
766
|
"dataType" : "html",
|
174
|
767
|
"success":function(responseHtml){
|
175
|
768
|
$(".workcon").html(responseHtml);
|
176
|
|
|
177
|
769
|
$(".worksamlltit3:first").hide();
|
178
|
770
|
$(".workmysrc3:first").hide();
|
179
|
771
|
$(".workmysrc3:last").fadeIn();
|
180
|
|
var replyTrHtml;
|
181
|
|
|
182
|
|
var pageNo;
|
183
|
|
|
184
|
|
//======================================没有咨询情况下 ajax请求收到回复======================
|
185
|
|
$.ajax({
|
186
|
|
"url":"/ajax/consult/pqcon",//收到回复接口
|
187
|
|
"type":"get",
|
188
|
|
"data":{"consultantId":userid},
|
189
|
|
"dataType" : "json",
|
190
|
|
"success":function(replyResponse){
|
191
|
|
var allData = replyResponse.data;
|
192
|
|
var replyData = allData["data"];
|
193
|
|
|
194
|
|
if(replyData.length != 0 && replyData.length != null){
|
195
|
|
replyTrHtml = handleData(replyData,replyTrHtml,"consultantId","lookBtn");
|
196
|
|
$("#workContainer2").prepend(replyTrHtml);
|
197
|
|
|
198
|
|
}else{
|
199
|
|
return false;
|
200
|
|
}
|
201
|
|
|
202
|
|
|
203
|
|
},
|
204
|
|
"error":function(response){
|
205
|
|
//收到回复失败
|
206
|
|
// console.log(response)
|
207
|
|
},
|
208
|
|
|
209
|
|
});
|
210
|
|
|
211
|
|
//==========================================只有收到回复时,下拉菜单改变 ajax开始==================
|
212
|
|
|
213
|
|
//点击正序倒序
|
214
|
|
var sortFlag2 = true;
|
215
|
|
$("#replyArrow").click(function(){
|
216
|
|
if(sortFlag2 == true){
|
217
|
|
$(this).find("div").css("background-position","-20px 1px");
|
218
|
|
$("#timeSortId2").val("1");
|
219
|
|
|
220
|
|
sortFlag2 =false;
|
221
|
|
|
222
|
|
}else{
|
223
|
|
$(this).find("div").css("background-position","0px 1px");
|
224
|
|
$("#timeSortId2").val("0");
|
225
|
|
|
226
|
|
sortFlag2=true;
|
227
|
|
}
|
228
|
|
|
229
|
|
});
|
230
|
|
|
231
|
|
// $("#replyArrow").on("clcik",clickSortFn);
|
232
|
|
|
233
|
|
var timeType2,sortType2,replyStatus,consultId;
|
234
|
|
|
235
|
|
replyStatus = $("#replySelectId").val();//回复状态值
|
236
|
|
timeType2 = $("#timeTypeId2").val();//时间类型值
|
237
|
|
sortType2 = $("#timeSortId2").val();//排序值;
|
238
|
|
|
239
|
|
//默认传值:
|
240
|
|
var replyInfo = {
|
241
|
|
"consultantId":userid,
|
242
|
|
"status":replyStatus,
|
243
|
|
"timeType":timeType2,
|
244
|
|
"sortType":sortType2
|
245
|
|
};
|
246
|
|
function replyStatusFn(){
|
247
|
|
//改变后,要传的值
|
248
|
|
replyStatus = $("#replySelectId").val();//咨询状态值
|
249
|
|
timeType2 = $("#timeTypeId2").val();//时间类型值
|
250
|
|
sortType2 = $("#timeSortId2").val();//排序值;
|
251
|
|
|
252
|
|
replyInfo = {
|
253
|
|
"consultantId":userid,
|
254
|
|
"status":replyStatus,
|
255
|
|
"timeType":timeType2,
|
256
|
|
"sortType":sortType2
|
257
|
|
};
|
258
|
|
// console.log("ajax中的值:"+ replyInfo.replyStatus + replyInfo.timeType + replyInfo.sortType +replyInfo.consultantId);
|
|
772
|
|
|
773
|
//=无咨询 ajax请求收到回复=
|
|
774
|
//收到回复
|
|
775
|
getMyData("/ajax/consult/pqcon","5",1,true,0,0,0);
|
|
776
|
//点击下拉菜单
|
|
777
|
$(".replyOption ul").find("li").click(function(){
|
|
778
|
getMyData("/ajax/consult/pqcon","5",1,true,$(this).attr("tip"),$("#showTimeSort2").attr("tim"),$("#timeSortId2").val());
|
|
779
|
});
|
|
780
|
$(".timeOption2 ul").find("li").click(function(){
|
|
781
|
getMyData("/ajax/consult/pqcon","5",1,true,$("#showStatus2").attr("tip"),$(this).attr("tim"),$("#timeSortId2").val());
|
|
782
|
});
|
|
783
|
var sortFlag = true;
|
|
784
|
$("#replyArrow").click(function(){
|
259
|
785
|
|
260
|
|
//=====================================只有收到回复时 更新下拉菜单==============
|
261
|
|
$.ajax({
|
262
|
|
"url":"/ajax/consult/pqcon",//更新下拉菜单接口
|
263
|
|
"type":"get",
|
264
|
|
"data":replyInfo,
|
265
|
|
"success":function(response){
|
266
|
|
$("#workContainer2 .workselectitem").remove();
|
267
|
|
var allData = response.data;
|
268
|
|
var replyData = allData["data"];
|
269
|
|
replyTrHtml = handleData(replyData,replyTrHtml,"consultantId","lookBtn");
|
270
|
|
$("#workContainer2").prepend(replyTrHtml);
|
271
|
|
|
272
|
|
},
|
273
|
|
"error":function(response){
|
274
|
|
// console.log(response)
|
275
|
|
//更新下拉菜单失败
|
276
|
|
}
|
277
|
|
|
278
|
|
});
|
279
|
|
};//更新下拉菜单处理函数结束
|
280
|
|
|
281
|
|
//绑定回复状态事件
|
282
|
|
$(".replyOption ul").bind("click", "li",replyStatusFn);
|
283
|
|
|
284
|
|
//绑定回复状态事件
|
285
|
|
$(".timeOption2 ul").bind("click", "li",replyStatusFn);
|
286
|
|
|
287
|
|
$("#replyArrow").bind("click",replyStatusFn);
|
288
|
|
|
289
|
|
|
|
786
|
if(sortFlag == true){
|
|
787
|
$(this).find("div").css("background-position","-20px 1px");
|
|
788
|
$("#timeSortId2").val("1");
|
|
789
|
sortFlag = false;
|
|
790
|
}else{
|
|
791
|
$(this).find("div").css("background-position","0px 1px");
|
|
792
|
$("#timeSortId2").val("0");
|
|
793
|
sortFlag=true;
|
|
794
|
}
|
|
795
|
getMyData("/ajax/consult/pqcon","5",1,true,$("#showStatus2").attr("tip"),$("#showTimeSort2").attr("tim"),$("#timeSortId2").val());
|
|
796
|
});
|
290
|
797
|
},
|
291
|
798
|
"error":function(response){
|
292
|
799
|
//请求页面失败
|
|
@ -297,7 +804,6 @@ function clickConsultBtn(){
|
297
|
804
|
|
298
|
805
|
|
299
|
806
|
}else{
|
300
|
|
// alert("收到咨询");
|
301
|
807
|
//ajax页面
|
302
|
808
|
$.ajax({
|
303
|
809
|
"url":"consult.html",
|
|
@ -307,16 +813,68 @@ function clickConsultBtn(){
|
307
|
813
|
|
308
|
814
|
//ajax 收到咨询数据和收到回复数据
|
309
|
815
|
//ajax收到咨询 consultResponse 收到咨询返回值
|
310
|
|
var consultTrHtml;
|
|
816
|
/*var consultTrHtml;
|
311
|
817
|
var allData = consultResponse.data;
|
312
|
818
|
var consultData = allData["data"];
|
313
|
819
|
consultTrHtml = handleData(consultData,consultTrHtml,"professorId","replyBtn");
|
314
|
|
$("#workContainer").prepend(consultTrHtml);
|
|
820
|
$("#workContainer").prepend(consultTrHtml);*/
|
|
821
|
|
|
822
|
//收到咨询
|
|
823
|
getConsultData("/ajax/consult/pqpro","5",1,true,0,0,0);
|
|
824
|
//点击下拉菜单
|
|
825
|
$(".consultOption ul").find("li").click(function(){
|
|
826
|
getConsultData("/ajax/consult/pqpro","5",1,true,$(this).attr("tip"),$("#showTimeSort").attr("tim"),$("#timeSortId").val());
|
|
827
|
});
|
|
828
|
$(".timeOption2 ul").find("li").click(function(){
|
|
829
|
getConsultData("/ajax/consult/pqpro","5",1,true,$("#showStatus").attr("tip"),$(this).attr("tim"),$("#timeSortId").val());
|
|
830
|
});
|
|
831
|
var sortFlag = true;
|
|
832
|
$("#replyArrow").click(function(){
|
|
833
|
|
|
834
|
if(sortFlag == true){
|
|
835
|
$(this).find("div").css("background-position","-20px 1px");
|
|
836
|
$("#timeSortId2").val("1");
|
|
837
|
sortFlag = false;
|
|
838
|
}else{
|
|
839
|
$(this).find("div").css("background-position","0px 1px");
|
|
840
|
$("#timeSortId2").val("0");
|
|
841
|
sortFlag=true;
|
|
842
|
}
|
|
843
|
getConsultData("/ajax/consult/pqpro","5",1,true,$("#showStatus").attr("tip"),$("#showTimeSort").attr("tim"),$("#timeSortId").val());
|
|
844
|
});
|
|
845
|
|
|
846
|
//
|
|
847
|
getMyData("/ajax/consult/pqcon","5",1,true,0,0,0);
|
|
848
|
//点击下拉菜单
|
|
849
|
$(".replyOption ul").find("li").click(function(){
|
|
850
|
console.log($("#showTimeSort2"));
|
|
851
|
getMyData("/ajax/consult/pqcon","5",1,true,$(this).attr("tip"),$("#showTimeSort2").attr("tim"),$("#timeSortId2").val());
|
|
852
|
});
|
|
853
|
$(".timeOption2 ul").find("li").click(function(){
|
|
854
|
getMyData("/ajax/consult/pqcon","5",1,true,$("#showStatus2").attr("tip"),$(this).attr("tim"),$("#timeSortId2").val());
|
|
855
|
});
|
|
856
|
$("#replyArrow").click(function(){
|
|
857
|
var sortFlag = true;
|
|
858
|
if(sortFlag == true){
|
|
859
|
$(this).find("div").css("background-position","-20px 1px");
|
|
860
|
$("#timeSortId2").val("1");
|
|
861
|
sortFlag =false;
|
|
862
|
|
|
863
|
}else{
|
|
864
|
$(this).find("div").css("background-position","0px 1px");
|
|
865
|
$("#timeSortId2").val("0");
|
|
866
|
|
|
867
|
sortFlag=true;
|
|
868
|
}
|
|
869
|
getMyData("/ajax/consult/pqcon","5",1,true,$("#showStatus2").attr("tip"),$("#showTimeSort2").attr("tim"),$("#timeSortId2").val());
|
|
870
|
});
|
|
871
|
|
|
872
|
|
315
|
873
|
|
316
|
874
|
|
317
|
875
|
//================================================有咨询时,下拉菜单改===变 ajax==========================
|
318
|
876
|
// 排列顺序(正序、倒序)
|
319
|
|
var sortFlag = true;//正倒排序标记
|
|
877
|
/*var sortFlag = true;//正倒排序标记
|
320
|
878
|
$(".orderedbtn").click(function(){
|
321
|
879
|
if(sortFlag == true){
|
322
|
880
|
$(this).find("div").css("background-position","-20px 1px");
|
|
@ -379,7 +937,7 @@ function clickConsultBtn(){
|
379
|
937
|
consultTrHtml = handleData(consultData,consultTrHtml,"professorId","replyBtn");
|
380
|
938
|
$("#workContainer").prepend(consultTrHtml);
|
381
|
939
|
|
382
|
|
//给咨询页回复绑定事件
|
|
940
|
//给咨询回复绑定回复和查看事件
|
383
|
941
|
$("#workContainer .workselectitem").find(".replyBtn").bind("click",clickReplyFn);
|
384
|
942
|
|
385
|
943
|
},
|
|
@ -399,7 +957,7 @@ function clickConsultBtn(){
|
399
|
957
|
//绑定咨询状态事件
|
400
|
958
|
$(".timeOption ul").bind("click", "li",consultStatusFn);
|
401
|
959
|
|
402
|
|
$(".orderedbtn").bind("click",consultStatusFn);
|
|
960
|
$(".orderedbtn").bind("click",consultStatusFn);*/
|
403
|
961
|
|
404
|
962
|
|
405
|
963
|
|
|
@ -411,15 +969,6 @@ function clickConsultBtn(){
|
411
|
969
|
var thanksStatus = $.trim($(this).find(".thanksStatus").text());//感谢状态 0-未感谢,1-已感谢
|
412
|
970
|
var assessStar = $.trim($(this).find(".assessStar").val());//星级,几颗星 用隐藏域做
|
413
|
971
|
|
414
|
|
//点击确认完成的传值:consultId,咨询状态
|
415
|
|
var confirmFinishStr = {
|
416
|
|
"consultId":consultId,
|
417
|
|
"consultStatus":consultStatus
|
418
|
|
};
|
419
|
|
//对话标题 传值,
|
420
|
|
var consultIdStr = {
|
421
|
|
"consultId":consultId
|
422
|
|
}
|
423
|
972
|
|
424
|
973
|
//ajax加载对话页面
|
425
|
974
|
$.ajax({
|
|
@ -596,7 +1145,8 @@ function clickConsultBtn(){
|
596
|
1145
|
$(".overcomment").css("display","block");//显示感谢
|
597
|
1146
|
}
|
598
|
1147
|
if($(this).attr("id") == "dialog_assessBtn"){
|
599
|
|
$(".addcomment2").css("display","block");//显示评价
|
|
1148
|
// $(".addcomment2").css("display","block");//显示评价
|
|
1149
|
$("#showAllAssess").css("display","block");
|
600
|
1150
|
}
|
601
|
1151
|
//评价星星样式
|
602
|
1152
|
var start;
|
|
@ -684,502 +1234,34 @@ function clickConsultBtn(){
|
684
|
1234
|
|
685
|
1235
|
|
686
|
1236
|
//收到咨询和收到回复切换
|
687
|
|
$(".worksamlltit3:first").addClass("active").show();
|
688
|
|
$(".workmysrc3:first").show();
|
|
1237
|
// $(".worksamlltit3:first").addClass("active").show();
|
|
1238
|
// $(".workmysrc3:first").show();
|
689
|
1239
|
|
690
|
1240
|
//On Click Event 收到咨询和收到回复tab效果
|
691
|
|
$(".worksamlltit3").click(function() {
|
692
|
|
$(".worksamlltit3").removeClass("worksamlltitnow");
|
|
1241
|
$(".worksamlltit3").bind("click",tab);
|
|
1242
|
function tab(){
|
|
1243
|
$(".worksamlltit3").removeClass("worksamlltitnow");
|
693
|
1244
|
$(this).addClass("worksamlltitnow");
|
694
|
|
|
695
|
1245
|
$(".workmysrc3").hide();
|
696
|
|
|
697
|
1246
|
var activeTab = $(this).attr("href");
|
698
|
1247
|
$(activeTab).fadeIn();
|
|
1248
|
|
699
|
1249
|
return false;
|
700
|
|
});
|
701
|
|
|
702
|
|
//=============================有咨询和回复时:ajax收到回复数据=============================
|
703
|
|
$.ajax({
|
704
|
|
"url" : "/ajax/consult/pqcon",//收到回复接口
|
705
|
|
"type" : "get",
|
706
|
|
//传值:登陆人id:咨询id
|
707
|
|
"data" :consultIdStrByReply,
|
708
|
|
"dataType" : "json",
|
709
|
|
"contentType" : "application/x-www-form-urlencoded",
|
710
|
|
"beforeSend":function(response){
|
711
|
|
// console.log(response)
|
712
|
|
},
|
713
|
|
"success":function(replyResponse){
|
714
|
|
//拿到收到回复数据
|
715
|
|
var replyTrHtml;
|
716
|
|
var allData = replyResponse.data;
|
717
|
|
var replyData = allData["data"];
|
718
|
|
if(replyData.length != 0 && replyData.length != null){
|
719
|
|
replyTrHtml = handleData(replyData,replyTrHtml,"consultantId","lookBtn");
|
720
|
|
$("#workContainer2").prepend(replyTrHtml);
|
721
|
|
|
722
|
|
|
723
|
|
$("#workContainer2 .workselectitem").find(".lookBtn").bind("click",clickLookBtn);
|
724
|
|
|
725
|
|
}else{
|
726
|
|
return false;
|
727
|
|
}
|
728
|
|
|
729
|
|
|
730
|
|
},
|
731
|
|
"error":function(response){
|
732
|
|
//收到回复错误返回
|
733
|
|
// console.log(response)
|
734
|
|
},
|
735
|
|
|
736
|
|
});
|
|
1250
|
};
|
|
1251
|
|
737
|
1252
|
|
738
|
|
//==========================================咨询和收到回复,下拉菜单改变 ajax开始==================
|
739
|
|
|
740
|
|
//收到咨询和收到回复下拉菜单点击函数
|
741
|
|
//排列顺序(正序、倒序)
|
742
|
|
var sortFlag1 = true;//正倒排序标记
|
743
|
|
$("#replyArrow").click(function(){
|
744
|
|
if(sortFlag1 == true){
|
745
|
|
$(this).find("div").css("background-position","-20px 1px");
|
746
|
|
$("#timeSortId2").val("1");
|
747
|
|
|
748
|
|
sortFlag1 =false;
|
749
|
|
|
750
|
|
}else{
|
751
|
|
$(this).find("div").css("background-position","0px 1px");
|
752
|
|
$("#timeSortId2").val("0");
|
753
|
|
|
754
|
|
sortFlag1=true;
|
755
|
|
}
|
756
|
|
|
757
|
|
});
|
758
|
|
|
759
|
|
var timeType2,sortType2,replyStatus,consultId;
|
760
|
|
|
761
|
|
replyStatus = $("#replySelectId").val();//回复状态值
|
762
|
|
timeType2 = $("#timeTypeId2").val();//时间类型值
|
763
|
|
sortType2 = $("#timeSortId2").val();//排序值;
|
764
|
|
|
765
|
|
//console.log(consultStatus,timeType,sortType+"res333");
|
766
|
|
|
767
|
|
//默认传值:
|
768
|
|
var replyInfo = {
|
769
|
|
"consultantId":userid,
|
770
|
|
"status":replyStatus,
|
771
|
|
"timeType":timeType2,
|
772
|
|
"sortType":sortType2
|
773
|
|
};
|
774
|
|
//回复下拉菜单改变
|
775
|
|
function replyStatusFn(){
|
776
|
|
//改变后,要传的值
|
777
|
|
replyStatus = $("#replySelectId").val();//咨询状态值
|
778
|
|
timeType2 = $("#timeTypeId2").val();//时间类型值
|
779
|
|
sortType2 = $("#timeSortId2").val();//排序值;
|
780
|
|
|
781
|
|
//要传的值:
|
782
|
|
replyInfo = {
|
783
|
|
"consultantId":userid,
|
784
|
|
"status":replyStatus,
|
785
|
|
"timeType":timeType2,
|
786
|
|
"sortType":sortType2
|
787
|
|
};
|
788
|
|
// console.log("ajax中的值:"+ replyInfo.replyStatus + replyInfo.timeType + replyInfo.sortType +replyInfo.consultantId);
|
789
|
|
|
790
|
|
|
791
|
|
$.ajax({
|
792
|
|
"url":"/ajax/consult/pqcon",//更新下拉菜单接口
|
793
|
|
"type":"get",
|
794
|
|
"data":replyInfo,
|
795
|
|
"success":function(response){
|
796
|
|
$("#workContainer2 .workselectitem").remove();
|
797
|
|
// $(".tcdPageCode:first").before().empty();
|
798
|
|
var allData = response.data;
|
799
|
|
var replyData = allData["data"];
|
800
|
|
var replyTrHtml;
|
801
|
|
replyTrHtml = handleData(replyData,replyTrHtml,"consultantId","lookBtn");
|
802
|
|
$("#workContainer2").prepend(replyTrHtml);
|
803
|
|
|
804
|
|
$("#workContainer2 .workselectitem").find(".lookBtn").bind("click",clickLookBtn);
|
805
|
|
},
|
806
|
|
"error":function(response){
|
807
|
|
// console.log(response)
|
808
|
|
//更新下拉菜单失败
|
809
|
|
}
|
810
|
|
|
811
|
|
});
|
812
|
|
|
813
|
|
|
814
|
|
};//更新下拉菜单处理函数结束
|
815
|
|
|
816
|
|
//绑定回复状态事件
|
817
|
|
$(".replyOption ul").bind("click", "li",replyStatusFn);
|
818
|
|
|
819
|
|
//绑定回复状态事件
|
820
|
|
$(".timeOption2 ul").bind("click", "li",replyStatusFn);
|
821
|
|
|
822
|
|
$("#replyArrow").bind("click",replyStatusFn);
|
823
|
|
|
824
|
|
|
825
|
|
|
826
|
|
//=======================================================点击回复中查看
|
827
|
|
function clickLookBtn(){
|
828
|
|
var consultId = $.trim($(this).attr("id"));//咨询id
|
829
|
|
var assessStatus = $.trim($(this).attr("assess"));//评价状态 0-未评价,1-已评价
|
830
|
|
var consultStatus = $(this).find(".coultState").text();//咨询状态 0-进行中,1-已完成
|
831
|
|
var thanksStatus = $(this).find(".thanksStatus").text();//感谢状态 0-未感谢,1-已感谢
|
832
|
|
var assessStar = $(this).find(".assessStar").val();//星级,几颗星 用隐藏域做
|
833
|
|
localStorage.setItem("consultId", consultId);
|
834
|
|
//点击确认完成的传值:consultId,咨询状态
|
835
|
|
var confirmFinishStr = {
|
836
|
|
"consultId":consultId,
|
837
|
|
"consultStatus":consultStatus
|
838
|
|
};
|
839
|
|
//对话标题 传值,
|
840
|
|
var consultIdStr = {
|
841
|
|
"consultId":consultId
|
842
|
|
}
|
843
|
|
if(assessStatus == "已评价"){
|
844
|
|
//ajax加载对话页面
|
845
|
|
$.ajax({
|
846
|
|
"url":"diloags.html",
|
847
|
|
"dataType":"html",
|
848
|
|
"success":function(result){
|
849
|
|
//console.log(data);
|
850
|
|
$(this).attr("id");
|
851
|
|
$(".workcon").html(result);
|
852
|
|
|
853
|
|
lookDialogHeadDataHandleFn();
|
854
|
|
dialogContentDataHandle();
|
855
|
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
856
|
|
|
857
|
|
|
858
|
|
},
|
859
|
|
"error":function(error){
|
860
|
|
//console.log(data);
|
861
|
|
//加载对话页面失败
|
862
|
|
console.log(error);
|
863
|
|
}
|
864
|
|
});
|
865
|
|
}else{
|
866
|
|
assessFn();
|
867
|
|
//点击稍后评价
|
868
|
|
$("#noAssessBtn").bind("click",noAssess);
|
869
|
|
|
870
|
|
}
|
871
|
|
|
872
|
|
//===========================================dialog数据==================
|
873
|
|
//=========对话头部
|
874
|
|
//对话头部数据渲染
|
875
|
|
function lookDialogHeadDataHandleFn(){
|
876
|
|
//星星评级
|
877
|
|
var starStart;
|
878
|
|
function clickStar(){
|
879
|
|
$(".evastar2").removeClass('addStar');
|
880
|
|
starStart=$(this).index()+1;
|
881
|
|
for(var i=0;i<starStart;i++){
|
882
|
|
if(i<starStart){
|
883
|
|
$(".evastar2").eq(i).addClass("addStar");
|
884
|
|
}
|
885
|
|
else{
|
886
|
|
$(".evastar2").eq(i).removeClass('addStar');
|
887
|
|
}
|
888
|
|
}
|
889
|
|
$("#startCount").val($(".addStar").length);
|
890
|
|
};
|
891
|
|
|
892
|
|
$.ajax({
|
893
|
|
"url":"/ajax/consult/qacon",//从收到回复点击查看接口
|
894
|
|
"type":"get",
|
895
|
|
"data":consultIdStr,
|
896
|
|
"success":function(response){
|
897
|
|
// console.log("点击查看返回数据");
|
898
|
|
// console.log(response)
|
899
|
|
var consultantData = response["data"];
|
900
|
|
//对话框标题信息
|
901
|
|
//进行中,
|
902
|
|
if(consultantData["consultStatus"] == 0){
|
903
|
|
consultantData["consultStatus"] = "进行中";
|
904
|
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
905
|
|
$("#dial_confirmFinishConsult").css("display","block");//确认完成按钮显示
|
906
|
|
$("#showAllAssess").css("display","none");//总体评价
|
907
|
|
$(".dialogfoot").css("display","block");//显示发送对话部分
|
908
|
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
909
|
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
910
|
|
|
911
|
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
912
|
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
913
|
|
|
914
|
|
}
|
915
|
|
//已完成
|
916
|
|
if(consultantData["consultStatus"] == 1 || consultantData["consultStatus"] == 2 ||consultantData["consultStatus"] == 3 || consultantData["consultStatus"] == 4){
|
917
|
|
consultantData["consultStatus"] = "已完成";
|
918
|
|
$("#dil_consultStatus").text(consultantData["consultStatus"]);//咨询状态
|
919
|
|
//已完成,未感谢:
|
920
|
|
if(consultantData["thanksStatus"] == 0){
|
921
|
|
$("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
922
|
|
//未感谢,未评价
|
923
|
|
if(consultantData["assessStatus"] == 0){
|
924
|
|
$("#dialog_assessBtn").css("display","block");//显示评价按钮
|
925
|
|
|
926
|
|
$("#showAllAssess").css("display","none");//隐藏总体评价
|
927
|
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
928
|
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
929
|
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
930
|
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
931
|
|
}
|
932
|
|
//未感谢,已评价
|
933
|
|
else{
|
934
|
|
|
935
|
|
// $("#dialog_thanksBtn").css("display","block");//显示感谢按钮
|
936
|
|
|
937
|
|
var starCount = consultantData["assessStar"];
|
938
|
|
for(var i=0;i<starCount;i++){
|
939
|
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
940
|
|
}
|
941
|
|
$("#showAllAssess").css("display","block");//显示星级
|
942
|
|
$("#dialog_thanks").css("display","none");//隐藏感谢
|
943
|
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
944
|
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
945
|
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
946
|
|
}
|
947
|
|
|
948
|
|
}
|
949
|
|
//已完成,已感谢:评价星级,感谢金额
|
950
|
|
if(consultantData["thanksStatus"] == 1){
|
951
|
|
$(".dialogfoot").css("display","none");//隐藏发送对话部分
|
952
|
|
var starCount = consultantData["assessStar"];
|
953
|
|
for(var i=0;i<starCount;i++){
|
954
|
|
$("#showAllAssess .evastar2").eq(i).addClass("addStar");
|
955
|
|
};
|
956
|
|
$("#showAllAssess").css("display","block");//显示星级
|
957
|
|
$("#dial_consultName").text(consultantData["professor"]["name"]);//与@@@对话
|
958
|
|
|
959
|
|
$("#dialog_consultTitle").text(consultantData["consultTitle"]);//咨询主题
|
960
|
|
$("#dialog_consultType").text(consultantData["consultType"]);//咨询类型
|
961
|
|
$("#dialog_thanksMoney").text(consultantData["thanksMoney"]);
|
962
|
|
}
|
963
|
|
|
964
|
|
}
|
965
|
|
|
966
|
|
},
|
967
|
|
"error":function(error){
|
968
|
|
//对话框头部信息请求失败
|
969
|
|
}
|
970
|
|
});
|
971
|
|
|
972
|
|
};
|
973
|
|
|
974
|
|
|
975
|
|
|
976
|
|
//============对话内容数据处理函数
|
977
|
|
function dialogContentDataHandle(){
|
978
|
|
$.ajax({
|
979
|
|
"url":"/ajax/tidings/qacon",//对话内容显示接口
|
980
|
|
"type":"get",
|
981
|
|
"data":consultIdStr,
|
982
|
|
"beforeSend":function(response){
|
983
|
|
//对话发送消息失败
|
984
|
|
//console.log(response);
|
985
|
|
},
|
986
|
|
"success":function(response){
|
987
|
|
console.log()
|
988
|
|
var dialogConData = response["data"];
|
989
|
|
// console.log(dialogConData);
|
990
|
|
var dialogStr;
|
991
|
|
dialogStr = dialogContentStrFn(dialogConData);
|
992
|
|
$("#dialogContent").prepend(dialogStr);
|
993
|
|
//
|
994
|
|
},
|
995
|
|
"error":function(error){
|
996
|
|
//对话框内容信息请求失败
|
997
|
|
}
|
998
|
|
});
|
999
|
|
|
1000
|
|
|
1001
|
|
};
|
1002
|
|
|
1003
|
|
|
1004
|
|
//=============================对话页面底部发送
|
1005
|
|
//发送按钮处理函数
|
1006
|
|
function sendDialogContentFn(){
|
1007
|
|
var tidingsContant = $("#dialog_sendContent").val();
|
1008
|
|
var tidingStr = {
|
1009
|
|
"tidingsContant":tidingsContant,
|
1010
|
|
"senderId":userid,
|
1011
|
|
"consultId":consultId
|
1012
|
|
};
|
1013
|
|
//console.log(tidingStr);
|
1014
|
|
$.ajax({
|
1015
|
|
"url":"/ajax/tidings",
|
1016
|
|
"type":"post",
|
1017
|
|
"data":tidingStr,
|
1018
|
|
"beforeSend":function(response){
|
1019
|
|
//对话发送消息失败
|
1020
|
|
console.log(response);
|
1021
|
|
},
|
1022
|
|
"success":function(response){
|
1023
|
|
console.log(response);//返回对话内容的id
|
1024
|
|
$("#dialogContent").empty();
|
1025
|
|
dialogContentDataHandle();
|
1026
|
|
},
|
1027
|
|
"error":function(error){
|
1028
|
|
//对话发送消息失败
|
1029
|
|
console.log(error);
|
1030
|
|
}
|
1031
|
|
});
|
1032
|
|
$("#dialog_sendContent").val("");
|
1033
|
|
};
|
1034
|
|
|
1035
|
|
|
1036
|
|
|
1037
|
|
//==============发表评价页
|
1038
|
|
function assessFn(){
|
1039
|
|
ConsultComment();
|
1040
|
|
|
1041
|
|
if($.trim($(this).attr("thanks")) == "未感谢"){
|
1042
|
|
$(".addcomment2").css("display","none");//
|
1043
|
|
|
1044
|
|
}else{
|
1045
|
|
|
1046
|
|
$(".overcomment").css("display","none");
|
1047
|
|
}
|
1048
|
|
//评价星星样式
|
1049
|
|
var start;
|
1050
|
|
function clickStar(){
|
1051
|
|
$(".evastar2").removeClass('addStar');
|
1052
|
|
start=$(this).index()+1;
|
1053
|
|
for(var i=0;i<start;i++){
|
1054
|
|
if(i<start){
|
1055
|
|
$(".evastar2").eq(i).addClass("addStar");
|
1056
|
|
}
|
1057
|
|
else{
|
1058
|
|
$(".evastar2").eq(i).removeClass('addStar');
|
1059
|
|
}
|
1060
|
|
}
|
1061
|
|
$("#startCount").val($(".addStar").length);
|
1062
|
|
};
|
1063
|
|
$(".evastar2").bind("click",clickStar);
|
1064
|
|
//发表评论
|
1065
|
|
$("#sendAssessBtn").bind("click",clickSendAssessBtn);
|
1066
|
|
|
1067
|
|
};
|
1068
|
|
|
1069
|
|
//绑定对话页面确认完成咨询
|
1070
|
|
$("#dial_confirmFinishConsult").bind("click",assessFn);
|
1071
|
|
$("#dialog_assessBtn").bind("click",assessFn);
|
1072
|
|
|
1073
|
|
|
1074
|
|
//点击发表评论:保存发表内容和星级
|
1075
|
|
function clickSendAssessBtn(){
|
1076
|
|
var consultId = localStorage.getItem("consultId");//
|
1077
|
|
var assessStar = $("#startCount").val();
|
1078
|
|
var assessContant = $(".resouinforcon").find("textarea").val();
|
1079
|
|
//评价状态 0-未评价,1-已评价
|
1080
|
|
|
1081
|
|
//确认完成后,发表评论传值
|
1082
|
|
var assessContentStr ={
|
1083
|
|
"consultId":consultId, //咨询ID
|
1084
|
|
"assessStatus":"1", //评价状态 0-未评价,1-已评价
|
1085
|
|
"assessStar":assessStar, //评价星级
|
1086
|
|
"assessContant":assessContant //评价内容
|
1087
|
|
};
|
1088
|
|
// console.log(assessContentStr);
|
1089
|
|
//如果未评论,提示未评论
|
1090
|
|
if(assessStar == "" || assessStar == null || assessStar == undefined){
|
1091
|
|
if(assessContant == "" || assessContant == null || assessContant == undefined){
|
1092
|
|
$.MsgBox.Alert('提示',"未评论,是否退出评论");
|
1093
|
|
}
|
1094
|
|
$.MsgBox.Alert('提示',"未选择星级");
|
1095
|
|
};
|
1096
|
|
//保存
|
1097
|
|
$.ajax({
|
1098
|
|
"url":"/ajax/consult/assess",//点击发表评论接口
|
1099
|
|
"type":"post",
|
1100
|
|
"data":assessContentStr,
|
1101
|
|
"success":function(response){
|
1102
|
|
// console.log(response);
|
1103
|
|
$(".blackcover").remove();
|
1104
|
|
$("body").css("position","static");
|
1105
|
|
$.MsgBox.Alert('提示',"评论成功");
|
1106
|
|
//评价状态改变,所以头部信息改变
|
1107
|
|
lookDialogHeadDataHandleFn();
|
1108
|
|
},
|
1109
|
|
"error":function(error){
|
1110
|
|
//发表评论失败
|
1111
|
|
console.log(error);
|
1112
|
|
}
|
1113
|
|
|
1114
|
|
});
|
1115
|
|
//发表评论
|
1116
|
|
$.ajax({
|
1117
|
|
"url":"diloags.html",
|
1118
|
|
"dataType":"html",
|
1119
|
|
"success":function(result){
|
1120
|
|
//console.log(data);
|
1121
|
|
$(this).attr("id");
|
1122
|
|
$(".workcon").html(result);
|
1123
|
|
|
1124
|
|
$(".blackcover").remove();
|
1125
|
|
$("body").css("position","static");
|
1126
|
|
lookDialogHeadDataHandleFn();
|
1127
|
|
dialogContentDataHandle();
|
1128
|
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
1129
|
|
|
1130
|
|
|
1131
|
|
},
|
1132
|
|
"error":function(error){
|
1133
|
|
//console.log(data);
|
1134
|
|
//加载对话页面失败
|
1135
|
|
console.log(error);
|
1136
|
|
}
|
1137
|
|
});
|
1138
|
|
|
1139
|
|
|
1140
|
|
|
1141
|
|
};
|
1142
|
|
|
1143
|
|
|
1144
|
|
//稍后评价、
|
1145
|
|
function noAssess(){
|
1146
|
|
$.ajax({
|
1147
|
|
"url":"diloags.html",
|
1148
|
|
"dataType":"html",
|
1149
|
|
"success":function(result){
|
1150
|
|
//console.log(data);
|
1151
|
|
$(this).attr("id");
|
1152
|
|
$(".workcon").html(result);
|
1153
|
|
$(".blackcover").remove();
|
1154
|
|
$("body").css("position","static");
|
1155
|
|
lookDialogHeadDataHandleFn();
|
1156
|
|
dialogContentDataHandle();
|
1157
|
|
$("#dialog_sendBtn").bind("click",sendDialogContentFn);
|
1158
|
|
|
1159
|
|
},
|
1160
|
|
"error":function(error){
|
1161
|
|
//加载对话页面失败
|
1162
|
|
$.MsgBox.Alert('提醒',"对话请求错误");
|
1163
|
|
}
|
1164
|
|
});
|
1165
|
|
};
|
1166
|
|
|
1167
|
|
|
1168
|
|
};//收到回复点击查看函数结束
|
1169
|
|
|
1170
|
|
|
1171
|
|
},
|
1172
|
|
})
|
1173
|
|
|
1174
|
|
}
|
1175
|
|
},
|
1176
|
|
"error":function(response){
|
1177
|
|
//收到咨询页面失败
|
1178
|
|
$.MsgBox.Alert('提醒',"咨询页面请求错误");
|
1179
|
|
},
|
1180
|
|
|
1181
|
|
|
1182
|
|
});
|
|
1253
|
},
|
|
1254
|
})
|
|
1255
|
|
|
1256
|
}
|
|
1257
|
},
|
|
1258
|
"error":function(response){
|
|
1259
|
//收到咨询页面失败
|
|
1260
|
$.MsgBox.Alert('提醒',"咨询页面请求错误");
|
|
1261
|
},
|
|
1262
|
|
|
1263
|
|
|
1264
|
});
|
1183
|
1265
|
|
1184
|
1266
|
|
1185
|
1267
|
}else{
|
|
@ -1190,8 +1272,6 @@ function clickConsultBtn(){
|
1190
|
1272
|
|
1191
|
1273
|
|
1192
|
1274
|
|
1193
|
|
$(".workmenu").on("click","#consultbtn",clickConsultBtn);
|
1194
|
|
|
1195
|
1275
|
|
1196
|
1276
|
/*$(document).ready(function(){
|
1197
|
1277
|
|