GOFLY在线客服系统支持内嵌到小程序中
可以直接使用小程序的webview直接嵌入访客链接就可以了
下面就是小程序的实例代码
index.wxml
<view class="page-body"> <button open-type="getUserInfo" bindgetuserinfo="getPerson">联系客服</button> <view wx:if="{{url}}"> <web-view src="{{url}}"></web-view> </view> </view>
index.js
Page({ data: { url:"" }, //按钮回调的方法 getPerson:function(e){ console.log(e); var username=e.detail.userInfo.nickName; var avator=e.detail.userInfo.avatarUrl; this.setData({ url:"https://gofly.sopans.com/chatIndex?kefu_id=taoshihan&ent_id=5&visitor_name="+username+"&avator="+avator }); }, onLoad: function () { }, })