当前位置:网站首页>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
边栏推荐
- Neon Optimization: summary of performance optimization experience
- C # method of calculating lunar calendar date 2022
- NEON优化:性能优化经验总结
- Realize incremental data synchronization between MySQL and ES
- Data type of pytorch tensor
- Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers
- ClickHouse字段分组聚合、按照任意时间段粒度查询SQL
- JTAG debugging experience of arm bare board debugging
- Provincial and urban level three coordinate boundary data CSV to JSON
- Telerik UI 2022 R2 SP1 Retail-Not Crack
猜你喜欢

Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
![[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
![[case sharing] basic function configuration of network loop detection](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[case sharing] basic function configuration of network loop detection

Windows installation mysql8 (5 minutes)
![[Niuke] [noip2015] jumping stone](/img/9f/b48f3c504e511e79935a481b15045e.png)
[Niuke] [noip2015] jumping stone

Data type of pytorch tensor

Analysis of mutex principle in golang

Send template message via wechat official account

Lldp compatible CDP function configuration

云呐-工单管理制度及流程,工单管理规范
随机推荐
Provincial and urban level three coordinate boundary data CSV to JSON
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
JTAG principle of arm bare board debugging
Address information parsing in one line of code
Deep learning framework TF installation
Windows installation mysql8 (5 minutes)
Atomic in golang, and cas Operations
前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
HMM 笔记
Transformation transformation operator
How do novices get started and learn PostgreSQL?
Wood extraction in Halcon
Mongodb client operation (mongorepository)
【JVM调优实战100例】05——方法区调优实战(下)
pyflink的安装和测试
paddlehub应用出现paddle包报错的问题
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
Force buckle 1037 Effective boomerang
Spark TPCDS Data Gen
Do you understand this patch of the interface control devaxpress WinForms skin editor?