<image class="empty-avatar _img" src="/static/image/avatar_empty.svg"></image> 获取头像 </view> </block> <view class="prev _p" wx:if="{{!avatarImage}}" bindtap="getUserProfile"></view> <view class="next _p" wx:if="{{!avatarImage}}" bindtap="getUserProfile"></view> <vie...
小程序 wx.getUserProfile 与插件 wx.getUserInfo 接口兼容基础库 2.27.1以下版本的头像昵称获取需求:对于来自低版本的基础库与微信客户端的访问,小程序通过 wx.getUserProfile 接口将正常返回用户头像昵称,插件通过 wx.getUserInfo 接口将正常返回用户头像昵称,开发者可继续使用以上能力做向下兼容。 对于上述 3,wx.g...