-
Call: 62782137
Service time: Monday through Sunday 8:00-22:00
-
-
-
Contact your subject librarian who will provide you with further consulting services on specific subject.
-
Face to Face
Service time: Monday through Friday 8:00-22:00
locations: Information & Services,1st floor of North Library
'
+ '
' + "Hello, I'm your intelligent reference robot.Please feel free to ask me if you have any questions about the library! It's my pleasure to help you!" + '
'
+ '
';
$("#win").append(hello);
},
getHot:function(){
var _this = this;
post("/openlab_component/expand/robot/api/getHotQuestion",{},function(res){
_this.hotList = res.data;
});
},
getQuestionType:function(){
var _this = this;
var subTypes = [];
post("/openlab_component/expand/robot/api/getQuestionType",{},function(res){
var typelist = res.data;
$.each(typelist,function(index,item){
var type = '
'
+ '' + item.Name + '
'
''
if (item.ParentId == 0) {
$("#list").append(type);
}else{
var sub = {};
sub.content = '
'
+ '- ' + item.Name + '
'
+ '
'
sub.pid = item.ParentId;
subTypes.push(sub);
}
})
$.each(subTypes,function(index,item){
$("#list [data-id='"+ item.pid +"']").append(item.content);
$("#list [data-id='"+ item.pid +"']").find("h3").attr("style","");
})
bindTree();
});
},
send:function(){
var message = this.question;
if (message) {
post("/openlab_component/expand/robot/api/textChat",{clientId: this.cId ,question: message },function(res){
var text = res.data.robotReply[0].text;
var guide = res.data.robotReply[0].guide;
var richText = res.data.robotReply[0].richText;
var reply = "";
var comment = "";
var cstyle="";
var cid = res.data.robotReply[0].cluid;
if (cid) {
comment = '
'
+ '
Thank your for surporting!
'
+ '
Sorry that I did no help ..
'
cstyle="display:block";
}
if (text) {
reply = '
'
+ '
' + text.content + '
'
+ '
' + comment + '
';
}else if (guide) {
if (guide.content){
reply = '
'
+ '
' + guide.content + '
'
+ '
' + comment + '
';
}else if (guide.list) {
var guideList = "";
$.each(guide.list,function(index,item){
guideList += "
" + item.seq + item.question + "
";
})
reply = '
'
+ '
' + guide.beforeWord + '
'
+ guideList
+ '
' + guide.afterWord + '
'
+ '
' + comment + '
';
}
}else if (richText) {
reply = '
'
+ '
' + richText.content + '
' //description
+ '
' + comment + '
';
}else {
reply = '
';
}
$("#win").append(reply);
if (res.data.robotReply[0].cluid) {bindZan();}
$("#win").scrollTop(10000);
});
var html = '
'
+ '
' + message + '
'
+ '
'
$("#win").append(html);
this.question = "";
}
},
sendA :function(question){
this.question = question;
this.send();
}
}//methods
})
$(document).ready(function() {
//咨询
$('#link2').click(function() {
if ( $(window).width() < 700) {
window.locations.href="https://wpa1.qq.com/eQSH9aPO?_type=wpa&qidian=true";
}else{
$('.fix-bg,.fix-nv').fadeIn();
$(".fix-con").show();
$(".fix-con").addClass("animated bounceInRight")
// $("body").css("overflow","hidden");
}
});
//咨询
$('#link3').click(function() {
if ( $(window).width() < 700) {
window.locations.href="https://wpa1.qq.com/eQSH9aPO?_type=wpa&qidian=true";
}else{
$('.fix-bg,.fix-nv').fadeIn();
$(".fix-con").show();
$(".fix-con").addClass("animated bounceInRight")
// $("body").css("overflow","hidden");
}
});
// 弹出全部问题
$('.js-pro').click(function(event) {
//$('.fix-con').addClass('open');
$(".fix-wrap").show();
$(".fix-problem").animate({right:"-370px"},200);
});
//关闭问题界面
$('.fix-problem .tit .btn').click(function(event) {
//$('.fix-con').removeClass('open');
//$('.fix-con').removeClass('open1');
$(".fix-problem").animate({right:"-580px"});
setTimeout(function(){
$(".fix-wrap").hide();
},500)
});
// 关闭咨询台
$('.fix-bg').click(function(event) {
$('.fix-con').removeClass('open').fadeOut();;
$('.fix-con').removeClass('open1');
$(".fix-nv").hide();
$(".fix-con").removeClass("animated bounceInRight")
$(this).fadeOut();
//$("body").css("overflow","visible");
});
});