摘要: 原料 : 需要 appid 和 secret 备注: 前端写死appid和secret的话,小程序不给过审。 so,最好是服务端获取openId wx.login({ success (res) { wx.request({ url: 'https://api.weixin.qq.com/sns/j 阅读全文
posted @ 2021-09-01 15:08 _小狐狸 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: wx.getSetting({ withSubscriptions: true, // 这里设置为true,下面才会返回mainSwitch success: function(res){ // 调起授权界面弹窗 if (res.subscriptionsSetting.mainSwi 阅读全文
posted @ 2021-09-01 15:01 _小狐狸 阅读(166) 评论(0) 推荐(0) 编辑