生成小程序码(接口B)scene的值怎么写
发布于 4 年前 作者 zpeng 4572 次浏览 来自 问答

wx.request({

    url: https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token= + access_token,

    method: ‘POST’,

    data: {

    scene: ’ ',

    page: ‘pages/index/index’,

    width: 430,

    auto_color: false,

    line_color: { “r”: “0”, “g”: “0”, “b”: “0” }

    },

    success: function (res) {

    console.log(res);

    }

})

这里的scene要怎么在小程序获取然后在传给后台呢

回到顶部