当前位置:网站首页>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优化:log10函数的优化案例
- "Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
- UI control telerik UI for WinForms new theme - vs2022 heuristic theme
- 安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
- 云呐|工单管理办法,如何开展工单管理
- The cost of returning tables in MySQL
- Realize incremental data synchronization between MySQL and ES
- ARM裸板调试之JTAG调试体验
- HMM 笔记
- Installation of gazebo & connection with ROS
猜你喜欢
第三方跳转网站 出现 405 Method Not Allowed
ARM裸板调试之JTAG调试体验
"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
线段树(SegmentTree)
HMM 笔记
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Come on, don't spread it out. Fashion cloud secretly takes you to collect "cloud" wool, and then secretly builds a personal website to be the king of scrolls, hehe
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
Build your own website (17)
【JVM调优实战100例】04——方法区调优实战(上)
随机推荐
力扣1037. 有效的回旋镖
How to evaluate load balancing performance parameters?
Grc: personal information protection law, personal privacy, corporate risk compliance governance
docker 方法安装mysql
【JVM调优实战100例】04——方法区调优实战(上)
HMM 笔记
重上吹麻滩——段芝堂创始人翟立冬游记
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
Come on, don't spread it out. Fashion cloud secretly takes you to collect "cloud" wool, and then secretly builds a personal website to be the king of scrolls, hehe
Case development of landlord fighting game
Rainstorm effect in levels - ue5
THREE.AxesHelper is not a constructor
安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
A brief history of deep learning (II)
taro3.*中使用 dva 入门级别的哦
Periodic flash screen failure of Dell notebook
[100 cases of JVM tuning practice] 04 - Method area tuning practice (Part 1)
Receive user input, height BMI, BMI detection small business entry case
Openjudge noi 1.7 10: simple password
HMM notes