当前位置:网站首页>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
边栏推荐
- 让我们,从头到尾,通透网络I/O模型
- 云呐-工单管理制度及流程,工单管理规范
- 微信公众号发送模板消息
- THREE.AxesHelper is not a constructor
- Dynamic planning idea "from getting started to giving up"
- 动态规划思想《从入门到放弃》
- 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?
- c语言—数组
- [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
- Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000
猜你喜欢
【案例分享】网络环路检测基本功能配置
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
Telerik UI 2022 R2 SP1 Retail-Not Crack
2022 Google CTF SEGFAULT LABYRINTH wp
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
Let's see through the network i/o model from beginning to end
云呐-工单管理制度及流程,工单管理规范
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
ESP Arduino (IV) PWM waveform control output
[牛客] B-完全平方数
随机推荐
HMM notes
2022 Google CTF SEGFAULT LABYRINTH wp
MySQL script batch queries all tables containing specified field types in the database
How do novices get started and learn PostgreSQL?
boot - prometheus-push gateway 使用
JTAG debugging experience of arm bare board debugging
Dell Notebook Periodic Flash Screen Fault
Build your own website (17)
[batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
ARM裸板调试之JTAG调试体验
[hfctf2020]babyupload session parsing engine
Make a simple graphical interface with Tkinter
Cause of handler memory leak
Pytorch中torch和torchvision的安装
pytorch之数据类型tensor
Neon Optimization: performance optimization FAQ QA
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键