更新记录
1.0.0(2024-03-21)
下载此版本
@1.0.0 更新全局分享
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
其他
基本介绍
name |
update time |
中文名称(描述) |
enableSharingFunction |
-- |
是否需要开启分享功能 true 开启 默认开启状态,有默认的分享内容 |
shareTemplate |
-- |
分享参数-等同onShareAppMessage的参数介绍 |
使用方法
export default {
data() {
return {
enableSharingFunction: false, // false则关闭分享功能
shareTemplate: { // 自定义分享内容
title: '重邮校友会',
content: '',
path: '/pages/index/index',
imageUrl: '../../static/images/logo.jpg',
desc: ''
}
}
},
methods: {
getData() {
// 接口请求完成后,可进行赋值操作
this.shareTemplate.title = res.data.title
}
}
}