http://qiyukf.com/docs/guide/web/Web_SDK_Guide.html
// 客服事件
$("#kefuShow").find("a").click(function () {
if (typeof(PID) != 'undefined') {
ysf.on({
'onload': function(){
ysf.config({
uid: UID > 0 ? UID : '',
name: Pname ? Pname : '',
email: Pemail ? Pemail : '',
mobile: Pmobile ? Pmobile : '',
});
ysf.product({
show : 1,
title : Ptitle ? Ptitle : '',
desc : Pdesc ? Pdesc : '',
picture : Pimage ? Pimage + '?imageView2/1/w/100/h/100/q/85' : '',
note : Price ? Price == "核算中" ? "核算中" : "¥" + Price + "起" : '',
url : Purl ? Purl : ''
});
}
})
$("#YSF-CUSTOM-ENTRY-1").click();
return false;
} else {
var val = 'https://youxiake.qiyukf.com/client?k=24af6f703937e7744a8f888e63a35f0e&wp=1&gid=' + $(this).attr("href") + '&robotShuntSwitch=0';
window.open(val, '_blank', 'height=630, width=980,toolbar=no,scrollbars=no,menubar=no,status=no');
return false;
}
});