|
- <script src="{$_G['siteurl']}source/plugin/xchat/static/xchat/js/xchat.js?v={$_G['setting']['plugins']['version']['xchat']}"></script>
- <script>
- XChat.init({
- mode: 'kefu',
- type: 'service',
- text: '{$_G['cache']['plugin']['xchat']['text']}',
- icon: '{$_G['cache']['plugin']['xchat']['icon']}',
- open: {$_G['cache']['plugin']['xchat']['open']},
- appName: '{$_G['cache']['plugin']['xchat']['appName']}',
- appIcon: '{$_G['cache']['plugin']['xchat']['appIcon']}',
- theme: '{$_G['cache']['plugin']['xchat']['theme']}',
- sendImage: {$_G['cache']['plugin']['xchat']['sendImage']},
- sendFile: {$_G['cache']['plugin']['xchat']['sendFile']},
- sendVoice: {$_G['cache']['plugin']['xchat']['sendVoice']},
- socket: '{$_G['cache']['plugin']['xchat']['socket']}',
- port: '{$_G['cache']['plugin']['xchat']['port_socket']}',
- viewport: '{$_G['cache']['plugin']['xchat']['viewport']}',
- success: function(box) { {$_G['cache']['plugin']['xchat']['success']} },
- hash: '{$_G['formhash']}'
- });
- </script>
复制代码
上面的$_G开头的变量为discuz系统变量,可以按需修改为实际值,其中hash、type参数不准省略!在你所需要展示客服端的页面底部插入以上代码即可 |
|