当前位置:网站首页>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
边栏推荐
- 尚硅谷实时数据仓库项目(阿里云实时数仓)
- GoAhead WebServer移植
- STM32 and gd32 notes
- shell 实现Memcache缓存命中率监控脚本
- Huawei cloud AOM version 2.0 release
- CLI tool foundation of ros2 robot f1tenth
- Summer Challenge harmonyos ark development framework arkui streamer button effect
- 知识蒸馏(Knowledge Distilling)学习笔记
- Vipshop product details API interface (item_get- get vipshop product details interface), vipshop details API interface
- Aleph farms hired a supervisor of regulatory affairs to prepare for global commercialization in advance
猜你喜欢

Small library project summary

American tunneling ASTM E84 surface flame retardant test

Design of VHDL telephone billing system

什么是 SYN 洪水攻击?如何防护?

Win10 add SSH public key

数字密码锁verilog设计+仿真+上板验证

Yolov6 training your own data record +yolov5 comparison test

小型图书馆项目总结

Golang operation NSQ distributed message queue

Summer Challenge harmonyos ark development framework arkui streamer button effect
随机推荐
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry
Live broadcast preview | PostgreSQL kernel Interpretation Series Lecture 1: overview of PostgreSQL system
Desai wisdom number - other charts (basic sunrise chart): high frequency words in graduation speech
Go standard library context package: data, cancellation signal, deadline and other related operations between a single request and multiple goroutines and the request domain
STM32最小系统搭建(原理图)
R language plot visualization: plot to visualize the normalized histograms of multiple data sets, set different histograms to use different bin sizes, and add edge axis whisker graph rugs at the botto
CLI tool foundation of ros2 robot f1tenth
What is unique about MES system?
Goahead translation - Active Server Pages
直播预告 | PostgreSQL 内核解读系列第一讲:PostgreSQL 系统概述
[advanced ROS] Lecture 3 ROS file system and distributed communication
About Effect Size
LeetCode 1. 两数之和
亚马逊关键词搜索API接口(item_search-按关键字搜索亚马逊商品接口),亚马逊API接口
【ROS进阶篇】第三讲 ROS文件系统与分布式通信
Vipshop Keyword Search API interface (item_search- search vipshop commodity API interface by keyword), vipshop API interface
Win10 add SSH public key
Weibo comments on high availability and high performance computing architecture
[fishing artifact] code tool for lowering the seconds of UI Library -- form part (I) design
Shell implementation of Memcache cache cache hit rate monitoring script