官方文档:https://developers.weixin.qq.com/miniprogram/dev/framework/view/two-way-bindings.html
1.微信授权相关
1.appid的比对失败("missing code, hints: [ req_id: wEKAPiqNe-9QVxxa ]")
前端比对appid,后端比对appsecret和appid。且注意js_code一次性使用的,贴一下授权属性
<button wx:if="{
{!userInfo}}" open-type='getUserInfo' bindgetuserinfo="getUserInfo" >获取授权</button>
<van-button wx:if="{
{userInfo}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" color="#4BC4B2" type="primary">授权手机号</van-button>
2.在做手机授权先确保小程序已经审核完成。
3.授权手机号步骤:用户端调用wx.login(获取js_code)=> 发给服务端(使用js_code获取open_id&#