当前位置:网站首页>简单几步实现小程序分享朋友圈
简单几步实现小程序分享朋友圈
2022-07-28 05:19:00 【乐檬青年】

// 用户点击右上角分享给好友,要先在设置menus的两个参数,才可以分享朋友圈
onShareAppMessage: function () {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
},关于wx.showShareMenu的介绍 https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.showShareMenu.html
//用户点击右上角分享朋友圈
onShareTimeline: function () {
return {
title: '分享的标题',
query: {
// key: 'value' //要携带的参数
},
imageUrl: '' //分享图,默认小程序的logo
}
},实际效果

边栏推荐
猜你喜欢

DOM基础

Thesis writing function words

ArcMap中的距离工具条(Distance)

顺序表oj之删除特定的元素

Shell operation principle

树莓派串口配置

Review of metallurgical physical chemistry -- rate equations of complex reactions

【uni-app】uni-app中scroll-into-view的使用

Review of metallurgical physical chemistry ---- gas solid reaction kinetics
![[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea](/img/d6/4e69480c5ad5040ee48941ca0fcb37.png)
[idea plug-in artifact] teaches you how to set all attributes in an entity class with one click of idea
随机推荐
Oracle uses SQL to query the field information of a table (field type, length, etc.)
Custom JSON return data
链表实现增删查改
Openjudge: stone scissors cloth
Implementation of date class and its basic functions
Docker deploy mysql5.7.35
C语言推箱子
树莓派串口配置
Pytorch uses hook to get feature map
五子棋优化版
Mysql database index (InnoDB engine)
冶金物理化学复习 ---- 气固反应动力学
Solve the problem that Oracle cannot use more than 1000 in statements
蓝桥代码 翻硬币(我这样写也通过了,官网测试是不是有问题)
冶金物理化学复习 --- 金属的电沉积,还原过程
标准C语言学习总结8
Using Navicat or PLSQL to export CSV format, more than 15 digits will become 000 (e+19) later
uni-app-双击事件模拟
ArcGIS Engine开发资源
JVM notes 3: class loading and bytecode Technology