当前位置:   article > 正文

uniapp 微信小程序使用button调用在线客服聊天功能_uni-app如何手动触发button的开发能力

uni-app如何手动触发button的开发能力

微信客服聊天功能

在这里插入图片描述

微信客服聊天功能实现

uniapp 中的button按钮实现微信客服聊天功能 https://uniapp.dcloud.io/component/button

在这里插入图片描述
在这里插入图片描述

微信小程序后台添加客服微信号

在这里插入图片描述

实现代码如下:

<button open-type="contact" style="border-radius: 0;display: flex;flex-direction: column;align-items: center;justify-content: center;">
	<image src="../../static/retail_server.png" mode="widthFix" style="height:46rpx;width: 42rpx ;margin-bottom:10rpx;"></image>
	<text>客服</text>
</button>
  • 1
  • 2
  • 3
  • 4

客服图片可以自定义。我现在用的是本地图片,样式代码比较简单,我现在采用的是行间样式。。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/767165
推荐阅读
相关标签
  

闽ICP备14008679号