当前位置:网站首页>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
边栏推荐
- Openjudge noi 1.7 08: character substitution
- C # method of calculating lunar calendar date 2022
- pyflink的安装和测试
- Pytorch中torch和torchvision的安装
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
- golang中的atomic,以及CAS操作
- Dell筆記本周期性閃屏故障
- ClickHouse字段分组聚合、按照任意时间段粒度查询SQL
- [batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
- Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
猜你喜欢
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
2022 Google CTF SEGFAULT LABYRINTH wp
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
Force buckle 1037 Effective boomerang
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
如何管理分布式团队?
让我们,从头到尾,通透网络I/O模型
ARM裸板调试之JTAG调试体验
LLDP兼容CDP功能配置
身体质量指数程序,入门写死的小程序项目
随机推荐
JTAG principle of arm bare board debugging
Make a simple graphical interface with Tkinter
「笔记」折半搜索(Meet in the Middle)
"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
[牛客] [NOIP2015]跳石头
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
BFS realizes breadth first traversal of adjacency matrix (with examples)
Can the system hibernation file be deleted? How to delete the system hibernation file
Provincial and urban level three coordinate boundary data CSV to JSON
Wood extraction in Halcon
boot - prometheus-push gateway 使用
云呐-工单管理制度及流程,工单管理规范
Oracle:CDB限制PDB资源实战
深度学习框架TF安装
字节P7专业级讲解:接口测试常用工具及测试方法,福利文
Realize incremental data synchronization between MySQL and ES
Build your own website (17)
云呐|工单管理软件,工单管理软件APP
Installation and testing of pyflink
Implementation principle of waitgroup in golang