vue+环信客服前端对接

先注册,再到index.html body标签前 ,复制粘贴就完事, 改一下configid

<!-- 网页客服渠道集成,引用标准版本,自定义按钮 -->

  <a href='javascript:;' onclick='easemobim.bind({configId: "4986f4e5-73e3-4e58-be1e-ca2a66611453"})'>
    <span class="icon-kefu iconfont"></span>&nbsp;方子客服
  </a>
 <script>
window.easemobim = window.easemobim || {
     };
easemobim.config = {
     
    hide: true,
    autoConnect: true,
    agentName: '[email protected]',
    visitor: {
     
        trueName: '黎小冷',
        qq: '567**34',
        phone: '188****8888',
        companyName: '环信',
        userNickname: '我是黎小冷',
        description: '描述信息',
        email: '123456@**.com',
        tags:[
          'vip1',
          'vip2'
        ]
    }
};
</script>
<script src='//kefu.easemob.com/webim/easemob.js?configId=4986f4e5-73e3-4e58-be1e-ca2a66611453'></script>

你可能感兴趣的:(vue.js)