自定义微信圈分享带的图片和内容

    document.addEventListener(‘WeixinJSBridgeReady‘, function onBridgeReady() {
        window.shareData = {
            "timeLineLink": "",
            "sendFriendLink": "",
            "weiboLink": "",
            "tTitle": "",
            "tContent": "",
            "fTitle": "",
            "fContent": "",
            "wContent": ""
        };
        // 发送给好友
        WeixinJSBridge.on(‘menu:share:appmessage‘, function (argv) {
            WeixinJSBridge.invoke(‘sendAppMessage‘, {
                "img_url": "",
                "img_width": "401",
                "img_height": "275",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report(‘send_msg‘, res.err_msg);
            })
        });
        // 分享到朋友圈
        WeixinJSBridge.on(‘menu:share:timeline‘, function (argv) {
            WeixinJSBridge.invoke(‘shareTimeline‘, {
                "img_url": "",
                "img_width": "401",
                "img_height": "275",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report(‘timeline‘, res.err_msg);
            });
        });

    }, false)

 

自定义微信圈分享带的图片和内容

上一篇:微信宣布降低企业号认证门槛 1000人以下的企业无需规模证明


下一篇:微信声音锁降临 以声识人设备不再遥远