当前位置:网站首页>Taro2.* applet configuration sharing wechat circle of friends
Taro2.* applet configuration sharing wechat circle of friends
2022-06-29 21:48: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
边栏推荐
- 唯品会关键词搜索API接口(item_search-按关键字搜索唯品会商品API接口),唯品会API接口
- Résumé du projet de petite bibliothèque
- 报表交付工程师
- Autodesk Revit 2023 software installation package download and installation tutorial
- Detailed explanation of key points in implementing MES system in Enterprises
- Flutter BottomNavigationBar带有页面切换示例
- JD alliance API - universal chain transfer interface - Jingpin library interface - Interface Customization
- Top ten questions for senior Performance Test Engineer
- Simple application and configuration of Rsync
- As a developer, you need to know about the codeless development platform IVX
猜你喜欢

leetcode:307. Area and retrieval - array modifiable

Visual analysis and display effect of summer data

About Effect Size
![[cloud native] use of Nacos taskmanager task management](/img/ad/24bdd4572ef9990238913cb7cd16f8.png)
[cloud native] use of Nacos taskmanager task management

Hardware development notes (VIII): basic process of hardware development, making a USB to RS232 module (VII): creating a basic dip component (crystal oscillator) package and associating the principle

报表交付工程师

Reading notes on how to connect the network - LAN on the server side (4)


Flame retardant test of aluminum sheet as/nzs 1530.1 non combustible materials

yolov6训练自己的数据记录+yolov5对比测试
随机推荐
How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native vs traditional technology architecture
Threejs basic introduction
直播预告 | PostgreSQL 内核解读系列第一讲:PostgreSQL 系统概述
Datakit acts as an API server for local data acquisition
STL tutorial 6-deque, stack, queue, list container
American tunneling ASTM E84 surface flame retardant test
Implementation and Simulation of ads131a04 ADC Verilog
Vipshop Keyword Search API interface (item_search- search vipshop commodity API interface by keyword), vipshop API interface
数字密码锁verilog设计+仿真+上板验证
R language plot visualization: plot visualization box graph and several box plots of multiple classification variables
Yolov6 training your own data record +yolov5 comparison test
【ROS进阶篇】第二讲 自定义头、源文件封装
HAproxy + Keepalive实现LDAP代理服务
Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms
铝板AS/NZS 1530.1 不燃性材料的阻燃测试
What is unique about MES system?
彩涂钢板密封板申请BS 476-3如何备样?
LeetCode 1. 两数之和
How to prepare samples for application of color coated steel sealing plates to BS 476-3?