uniapp开发微信小程序接入企业微信客服

客服




Btn() {
    wx.openCustomerServiceChat({
		extInfo: {
			    url: 'https:xxxxxxx' //客服地址链接
			},
			corpId: 'xxxxxxxxxxx', //必须和你小程序上的一致
			success(res) {
				console.log(res, 1)
			},
			fail(res) {
				console.log(res, 2)
			},
	})
},

通过点击事件来触发方法,调用进入企业微信客服页,原生小程序可使用button来调用更加完美。

你可能感兴趣的:(uni-app,微信小程序,企业微信)