把生活写成首诗 2021-04-04 23:25 采纳率: 83.3%
浏览 199
已结题

微信小程序清理缓存无效

wxml:

<view class='headView'>
    <view class='headImageView'>
    </view>
    <view class='titleText'>申请获取以下权限</view>
    <view class='contentText'>获得你的公开信息(昵称,头像,手机等)</view>
    <button class='authBtn' type='primary' open-type='getUserInfo' bindgetuserinfo='bindGetUserInfo'>授权登录</button>
  </view>

js:
 bindGetUserInfo:function(e){
    console.log(e);
  },

清理缓存后点击button还是直接返回{type: "getuserinfo", timeStamp: 4367, target: {…}, currentTarget: {…}, mark: {…}, …}未显示授权界面

  • 写回答

1条回答 默认 最新

  • 疯狂的Maxv1 2021-04-10 11:26
    关注

    小程序 最近做了调整,需要看看你当前基础库 版本 ,2.15.0+ 是 需要使用 getUserProfile 替代 getUserInfo。

    这次变动,仅针对 open-type='getUserInfo' 并不影响 open-data 。以下是 此次微信变更说明地址:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?highLine=login

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条