更新记录

1.0.0(2020-06-02)

更新时间2020-6-2

  1. 优化意见请在下方评论。

平台兼容性

分享功能,qq,微信,朋友圈,复制链接

插件说明

  1. 方便用户实现分享功能
  2. 快捷方便,分享内容自定义
  3. 注意在manifest.json配置分享

插件使用

  1. 下载插件包,导出components文件。
  2. 页面引用文件
        <!-- 引入插件 -->
            import uniPopup from '../../components/uni-popup/uni-popup.vue';
            import shareBtn from '../../components/sharebtn/sharebtn.vue';
        <!-- 注册插件 -->
            components: {
                uniPopup,
                shareBtn
            }
  3. 页面中调用
        <uni-popup ref="sharepopup" type="bottom">
            <share-btn :sharedataTemp="sharedata"></share-btn>
        </uni-popup>
  4. 触发分享弹窗
         this.$refs.sharepopup.open();

    参数说明

    变量名 类型 默认 说明
    sharedata object 传给插件的分享内容
    type Number 1 分享形式,具体请参照开发文档分享板块type值说明
    strShareUrl string 分享的h5网址链接
    strShareTitle string 分享标题名
    strShareSummary string 分享内容介绍
    strShareImageUrl string 分享的图片

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问