分享

1. 分享

(@since 云助手app 3.2.0)

       yzs.share({
        type:0,
        url: 'https://a.b.c',
        title: '分享测试',
        content: '这个是轻应用在调我的分享功能,测试一下请忽略',
        image: 'http://a.b.c/xf.jpg',
        success: function(res) {
        },
        error: function(res) {
        }
    });

参数说明

参数 参数类型 必须 说明
type int 分享类型 0:支持全部分享 1:不支持分享 2:支持云助手内部分享
url String 分享链接的跳转地址,如果为空,则自动取当前页面链接
title String 分享标题,如果为空,则自动取当前页面标题
content String 分享的内容描述信息
image String 分享的图片信息,网络地址

2. 分享(直接分享到QQ,微信或者朋友圈)

(@since 云助手app 3.6.7)

       yzs.share2({
        way:0,
        image: 'data:image/jpeg;base64,/9j/2Q==',
        success: function(res) {
        },
        error: function(res) {
        }
    });

参数说明

参数 参数类型 必须 说明
type int 分享类型 0:QQ 1:微信 2:朋友圈
image String 分享的图片信息(base64内容)

results matching ""

    No results matching ""