<a-icon type="qq" style="font-size:20px;color:#3A5FC9" /><a
target="_blank"
href="http://wpa.qq.com/msgrd?v=3&uin=1635168736&site=qq&menu=yes"
class="online_qq dis"
>叶工(138288675xx)</a>
企业微信客服的代码:
<a href="https://work.weixin.qq.com/kfid/kfcfbd4ca8ae8f78c4b" rel="nofollow" target="_blank"><img src="https://pdffile.jiepei.com/jiepei/Content/img/pdfArr/kefu.png"></a>
场景
今天遇到一个功能,就是联系在线客服,要求是点击联系客服时,打开
我参考了之前同事写的代码,发现可以通过一行代码实现此功能。
<a href="tencent://message/?uin=234234234324&Site=在线QQ&Menu=yes" style="color:#999"><img src="/Content/img/sample/kefu.png" /></a>
此处的
a
标签通过点击可以打开新的链接,当href
内容为:tencent://message/?uin=
+客服qq号码
+&Site=在线QQ&Menu=yes
时,就是直接打开
没有登录qq