uni-app跳转连接到QQ

跳转到QQ页面

			telme() {//QQ号聊天
				var that = this;
				plus.runtime.openURL('mqq://im/chat?chat_type=wpa&uin=' + that.qq+ '&version=1&src_type=web ');
			},

			join(Key) {//加入QQ群
				var that=this;
				that.key="ianr2RRMSG9dpebVNUeM1yJZQRqzHpq-";//修改的key
				plus.runtime.openURL('mqqopensdkapi://bizAgent/qm/qr?url=http%3A%2F%2Fqm.qq.com%2Fcgi-bin%2Fqm%2Fqr%3Ffrom%3Dapp%26p%3Dandroid%26k%3D' + that.key)
			}
			copy() {//复制文本内容
				var that = this;
				uni.setClipboardData({
					data: that.email,
					success: function() {
						uni.showToast({
							title: '复制成功!',
							icon: 'none'
						})
					}
				});
				uni.getClipboardData({
					success: function(res) {
						console.log(res.data);
					}
				});
			},

跳转到加入QQ群,这个调起比较的复杂
第一步:
https://qun.qq.com/join.html
进入文档将QQ群的号码转换成秘钥

你可能感兴趣的:(实战,uni-app)