当前位置:网站首页>Taro2.* applet configuration sharing wechat circle of friends
Taro2.* applet configuration sharing wechat circle of friends
2022-07-07 01:17:00 【yunchong_ zhao】
if (Taro.getEnv() === Taro.ENV_TYPE.WEAPP) {
Taro.showShareMenu({
withShareTicket: true,
menus: ["shareAppMessage", "shareTimeline"],
success(res) {
console.log(res);
},
fail(e) {
console.log(e);
},
});
}
// Wechat sharing friends
onShareAppMessage() {
return {
title: this.state.shareMessage.Title,
path: this.state.shareMessage.Path,
imageUrl: this.state.shareMessage.ImgUrl,
};
}
// Share a circle of friends
onShareTimeline() {
return {
title: this.state.shareMessage.Title,
query: this.state.shareMessage.Path,
imageUrl: this.state.shareMessage.ImgUrl,
};
}
Pay attention :
If the applet page is embedded webview And then set up a h5 Address if . This does not support sharing a circle of friends , I wonder if I can
Pay attention to my continuous updating of front-end knowledge
边栏推荐
- JTAG principle of arm bare board debugging
- ARM裸板调试之JTAG原理
- windows安装mysql8(5分钟)
- docker 方法安装mysql
- Fastdfs data migration operation record
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
- Part VI, STM32 pulse width modulation (PWM) programming
- [case sharing] basic function configuration of network loop detection
- Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
- 系统休眠文件可以删除吗 系统休眠文件怎么删除
猜你喜欢

Part V: STM32 system timer and general timer programming

Do you understand this patch of the interface control devaxpress WinForms skin editor?

免费白嫖的图床对比

LLDP兼容CDP功能配置
![[Niuke] [noip2015] jumping stone](/img/9f/b48f3c504e511e79935a481b15045e.png)
[Niuke] [noip2015] jumping stone

c语言—数组

Periodic flash screen failure of Dell notebook
![[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error](/img/a5/41d4cbc070d421093323dc189a05cf.png)
[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error

Tensorflow GPU installation
![[hfctf2020]babyupload session parsing engine](/img/db/6003129bc16f943ad9868561a2d5dc.png)
[hfctf2020]babyupload session parsing engine
随机推荐
The MySQL database in Alibaba cloud was attacked, and finally the data was found
golang中的atomic,以及CAS操作
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
Windows installation mysql8 (5 minutes)
Let's see through the network i/o model from beginning to end
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
C# 计算农历日期方法 2022
Implementation principle of waitgroup in golang
负载均衡性能参数如何测评?
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
LLDP兼容CDP功能配置
HMM notes
Niuke cold training camp 6B (Freund has no green name level)
Gazebo的安装&与ROS的连接
Pytorch中torch和torchvision的安装
THREE.AxesHelper is not a constructor
Let's talk about 15 data source websites I often use
Tensorflow 1.14 specify GPU running settings
Metauniverse urban legend 02: metaphor of the number one player
Neon Optimization: summary of performance optimization experience