简要描述:

  • 微信分享接口

请求域名:

  • http://xx.com

请求URL:

GET: route=member.member.wxJsSdkConfig

参数:

参数名 是否必须 类型 说明
mid string 用户ID
url string 当前页面完整url

返回示例:

前端需要用到的参数格式:

{
    "data": {
        "config": {
            "debug": false,
            "beta": false,
            "appId": "wx6be17f352e859277",
            "nonceStr": "regWxqBKuC",
            "timestamp": 1614059106,
            "url": "https://dev4.yunzmall.com/addons/yun_shop/api.php?i=9&uuid=0&mid=398&type=5&shop_id=null&route=member.member.wxJsSdkConfig",
            "signature": "86ba8267e804b4a4e8eab5dfb7b990fc2f22fc0a",
            "jsApiList": [
                "onMenuShareTimeline",
                "onMenuShareAppMessage",
                "showOptionMenu",
                "scanQRCode",
                "updateAppMessageShareData",
                "updateTimelineShareData",
                "startRecord",
                "stopRecord",
                "playVoice",
                "pauseVoice",
                "stopVoice",
                "uploadVoice",
                "downloadVoice",
                "hideMenuItems",
                "chooseImage",
                "getLocalImgData",
                "translateVoice"
            ]
        },
        "info": {
            "uid": 398,
            "uniacid": 9,
            "mobile": "18026357601"
        },
        "shop": {
            "share": {
                "title": "标题",
                "icon": "https://b.yunzmall.com/image/b9fda9b7d5c64bcdd9b1f2d9c2566a79.jpg",
                "desc": "描述1111",
                "url": "https://dev4.yunzmall.com/addons/yun_shop/?menu#/member/collection?i=9"
            },
            "shop": {
		"name": "yun商城",
                "logo": "image/55531ebdd6b5e2966fae44f56d176333.png",
                "logo_url": "https://dev4.yunzmall.com/attachment/image/55531ebdd6b5e2966fae44f56d176333.png",
		"copyright": "芸众科技",
                "cservice": "https://ci.yunzmall.com/job/test/job/build_frontend/",
            },
            "icon": ""
        },
        "share": {
            "title": "标题1",
            "icon": "",
            "desc": "",
            "url": "https://dev4.yunzmall.com/addons/yun_shop/?menu#/member/collection?i=9"
        }
    }
}

前端用到的参数:

info参数说明:

参数名 类型 说明
uid string 用户id
uniacid string 公众号id
mobile string 用户手机

shop参数说明:

参数名 类型 说明
icon string 图标
shop参数名 类型 说明
name string 商城名称
logo string 图标
logo_url string 图标
cservice string 客服链接
copyright string 描述
share参数名 类型 说明
title string 分享标题
desc string 描述
icon string 图标

share参数说明:

参数名 类型 说明
title string 分享标题
desc string 描述
icon string 图标