-
智能问答
-
咨询电话:62782137
服务时间:
周一至周日 8:00-22:00
-
-
-
-
当面咨询
服务时间:周一至周日 8:00-22:00
服务地点:北馆一层总服务台
联系电话:010-62788937
'
+ '
' + "您好,我是智能客服机器人,我可以回答您相关的业务问题,有什么问题就问我吧! 很高兴为您服务!" + '
'
+ '
';
$("#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(fid){
var message = this.question;
if (message) {
post("/openlab_component/expand/robot/api/textChat",{clientId: this.cId ,question: message,fid: typeof fid === 'string'?fid:null},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 = '
'
+ '
谢谢您的支持哦~会更努力哒!
'
+ '
抱歉没能帮到您,希望下次能帮您排忧!
'
cstyle="display:block";
}
if (text) {
if(res.data.robotReply[0].answerType===-2 && znwdHtml && znwdHtml.length){
reply = '
'
+ '
' + znwdHtml + '
'
+ '
' + comment + '
';
}else{
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.original + '
' //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();
},
rengongClick:function (){
if(this.num==1){
document.getElementById('rengong').innerHTML=''
}
this.num=2
this.isRenGong=true
$('.fd-win').addClass('rengong')
$('.rengong-new span').removeClass('activeBar')
$('.znwd-new span').removeClass('activeBar')
$('.rengong-new span').addClass('activeBar')
},
zhinengClick:function(){
this.isRenGong=false
$('.fd-win').removeClass('rengong')
$('.znwd-new span').removeClass('activeBar')
$('.rengong-new span').removeClass('activeBar')
$('.znwd-new span').addClass('activeBar')
}
}//methods
})
$(document).ready(function() {
//咨询
$('.link2').click(function() {
if ( $(window).width() < 700) {
// window.locations.href="https://znkf.vsbclub.com/robot/h5chat.html?sysNum=16100186094532511&receiveId=2177&sourceId=2443";
window.locations.href="https://wpa1.qq.com/eQSH9aPO?_type=wpa&qidian=tru";
}else{
$('.fix-bg,.fix-nv').fadeIn();
$(".fix-con").show();
$(".fix-con").addClass("animated bounceInRight")
$("body").addClass('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");
$("body").removeClass('hidden')
});
$('#win').on('click','.wflink',function(e){
e.preventDefault()
vm1.question = $(this).text();
vm1.send($(this).prop('rel'))
})
$('#win').on('click','.welcomeWords',function(e){
e.preventDefault()
vm1.question = $(this).text();
vm1.send()
})
});
$('#win').on('click','#znwz1234',function(){
//console.log(123);
vm1.rengongClick()
})