![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
也许还没变
这个作者很懒,什么都没留下…
展开
-
微信小程序授权手机号和解析手机号
1.wxml 微信授权 2.js getPhoneNumber: function (e) { var that = this //给定义参数赋值 var ency = e.detail.encryptedData; var iv = e.detail.iv; var errMsg = e.detail.errMsg if (iv == null || ency == null) { wx.sho...原创 2019-12-11 14:19:59 · 1122 阅读 · 0 评论 -
微信小程序授权微信信息
1.wxml中 授权登录 2.js中 bindGetUserInfo: function (e) { if (e.detail.userInfo) { //用户按了允许授权按钮 var that = this; //给全局变量赋值 app.data.userInfo = e.detail.userInfo;//用户信息 app.data.studentName = app.data.userI...原创 2019-12-11 13:55:57 · 151 阅读 · 0 评论