当前位置:网站首页>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
边栏推荐
- "Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
- 2022 Google CTF SEGFAULT LABYRINTH wp
- 重上吹麻滩——段芝堂创始人翟立冬游记
- [100 cases of JVM tuning practice] 04 - Method area tuning practice (Part 1)
- Js逆向——捅了【马蜂窝】的ob混淆与加速乐
- Implementation principle of waitgroup in golang
- Send template message via wechat official account
- [Niuke] b-complete square
- 微信公众号发送模板消息
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
猜你喜欢
身体质量指数程序,入门写死的小程序项目
动态规划思想《从入门到放弃》
Js逆向——捅了【马蜂窝】的ob混淆与加速乐
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
[Niuke] b-complete square
重上吹麻滩——段芝堂创始人翟立冬游记
Provincial and urban level three coordinate boundary data CSV to JSON
Dell筆記本周期性閃屏故障
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
【案例分享】网络环路检测基本功能配置
随机推荐
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
Neon Optimization: About Cross access and reverse cross access
Tensorflow GPU installation
A brief history of deep learning (II)
2022 Google CTF SEGFAULT LABYRINTH wp
Neon Optimization: performance optimization FAQ QA
前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
第三方跳转网站 出现 405 Method Not Allowed
tensorflow 1.14指定gpu运行设置
Periodic flash screen failure of Dell notebook
Let's talk about 15 data source websites I often use
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
让我们,从头到尾,通透网络I/O模型
Build your own website (17)
c语言—数组
736. Lisp 语法解析 : DFS 模拟题
安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
golang中的Mutex原理解析