CRM扩展
数据接口
- 开发向导
- 单点登录
- 工单
- 客服
- 客户
- 绑定关系
- 服务记录
- 表单
- 呼叫中心
- 知识库
- 标签
- 账号
- 短信
函数说明
BW8.CC.init(username,pwd,onConnection,onError);
参数说明
| 名称 | 类型 | 注释 |
|---|---|---|
| username | string | 帮我吧的客服账号 |
| pwd | string | 客服账号对应的密码 |
| onConnection | 回调函数 | 用来接收系统消息推送。如果该参数为空,则执行系统默认消息处理。具体消息参见demo |
| onError | 回调函数 | 用来接收系统错误消息。具体请参考返回值格式 |
说明:仅需在程序开始的时候调用一次。
函数说明
BW8.CC.call(number);
参数说明
| 名称 | 类型 | 注释 |
|---|---|---|
| number | string | 拨打的电话号码。支持手机和座机,如果对方是座机,则拨号为“01063701717” |
函数说明
BW8.CC.hangUp();
函数说明
function callPop(url, type){
if(type == true){
$('body').append('<div class="container-fluid callPop" id="callPop"><div class="header"><div class="pull-right"><span class="close_icon" onclick="callPop(\'\', false)"></span></div></div><div class="answer"><div class="col-xs-10 answer_left"><div class="pull-left"><span class="glyphicon glyphicon-earphone"></span> <input class="iphone_num" placeholder="'+BW8.CC.getCallNumber()+'" onkeyup="value=value.replace(/[^\d]/g,"")"></div><div class="pull-right"><span class="iphone_time">00:00</span></div></div><div class="col-xs-2"><span class="hangup_bk" onclick="hangUp();"></span></div></div><div class="url_if_content"><iframe src="'+url+'" width="100%" frameborder="0" scrolling="" height="100%" border="none"></iframe></div></div>');
}else{
$('#callPop').remove();
}
}
参数说明
| 名称 | 类型 | 注释 |
|---|---|---|
| url | string | 弹屏里面要显示的第三方系统的信息页面。该页面默认宽度为593px,高度为362px。 |
| type | bool | 为“true”时,表示要弹屏;为“false”时,表示要关闭弹屏。默认为false。 |
说明:如果您想自定义弹屏样式,请直接修改函数里面的css样式
BW8.CC.getCallNumber();
BW8.CC.callId();
BW8.CC.debug();