当前位置:网站首页>uniapp 分享功能-分享给朋友群聊朋友圈效果(整理)
uniapp 分享功能-分享给朋友群聊朋友圈效果(整理)
2022-08-04 23:15:00 【我是开心呀】
效果图:
<template>
<button class="buttonBox posAbsolute" open-type="share">分享按钮</button>
</template>
wx.showShareMenu({
menus: ['shareAppMessage', 'shareTimeline']
});
//转发给朋友
onShareAppMessage(res) {
return {
title: "分享标题",
path: "这是打开后的跳转路径", //这是打开后的跳转路径
imageUrl: "分享图片"
}
},
//转发朋友圈
onShareTimeline(res) {
return {
title: "分享标题",
path: "这是打开后的跳转路径", //这是打开后的跳转路径
imageUrl: "分享图片"
}
},
边栏推荐
- typeScript-promise
- 【游戏建模模型制作全流程】使用ZBrush制作骷髅王
- FinClip崁入式搭建生态平台,降低合作门槛
- 【软件测试】常用ADB命令
- 【字符串函数内功修炼】strlen + strstr + strtok + strerror(三)
- npm基本操作及命令详解
- Linux系统重启和停止Mysql服务教程
- Both synchronized and ReentrantLock are smooth, because they are reentrant locks, and a thread will not deadlock if it takes the lock multiple times. We need reentrant locks
- [QNX Hypervisor 2.2用户手册]10.6 vdev mc146818
- @Import注解的作用以及如何使用
猜你喜欢

直接插入排序

Pytest learning - fixtures

深度|医疗行业勒索病毒防治解决方案

从“草原牛”到“数字牛”:蒙牛的数字化转型之道

App测试和Web测试的区别

【字符串函数内功修炼】strncpy + strncat + strncmp(二)

地面高度检测/平面提取与检测(Fast Plane Extraction in Organized Point Clouds Using Agglomerative Hierarchical Clu)

赶紧进来!!!教你C语言实现扫雷小游戏(文章最后有源码!!!)

现在学习次世代3D游戏建模还能找到高薪好工作吗

【游戏建模模型制作全流程】ZBrush蜥蜴模型雕刻教程
随机推荐
自从新来了个字节20K出来的,就见识到了什么是天花板
Service Mesh落地路径
golang打开文件和读写文件
Community Sharing|Tencent Overseas Games builds game security operation capabilities based on JumpServer
[QNX Hypervisor 2.2用户手册]10.5 vdev ioapic
@Async注解的作用以及如何实现异步监听机制
注解@EnableAutoConfiguration的作用以及如何使用
PAN3020 Sub-1G无线收发芯片
【云原生 · Kubernetes】Kubernetes运维
ffplay视频播放原理分析
@Import注解的作用以及如何使用
未上市就“一举成名”,空间媲美途昂,安全、舒适一个不落
为何越来越多人选择进入软件测试行业?深度剖析软件测试的优势...
直接插入排序
the warmest home
一点点读懂regulator(二)
typeScript-promise
【字符串函数内功修炼】strncpy + strncat + strncmp(二)
Redisson
逆序对的数量