dcloud调用用户手机QQ进行对话
常用于客服之类的
hbuilder dcloud项目点击调用本地打开QQ并进行对话:
方法1:
var main = plus.android.runtimeMainActivity(); var Intent = plus.android.importClass('android.content.Intent'); var Uri = plus.android.importClass('android.net.Uri'); var intent = new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=2035152316")); main.startActivity(intent);android 可以使用Native.js 实现
方法2:
直接粗暴,达到效果
<a href="mqqwpa://im/chat?chat_type=wpa&uin=123456&version=1&src_type=web&web_src=qq.com">
标签: dcloud