微信小程序获取用户头像修改为圆形
<view class='header'> <open-data class='userInfo' type="userAvatarUrl" bindgetuserinfo="onGotUserInfo"></open-data> </view> <open-data class='store_address' type="userNickName" lang="zh_CN"></open-data>.header { border-radius: 50%; overflow: hidden; width: 120rpx; height: 120rpx; position: relative; background: yellow; left: 40rpx; top: -92rpx;}.userInfo { border-radius: 50%; width: 120rpx; height: 120rpx;} onGotUserInfo: function (e) { console.log("nickname=" + e.detail.userInfo.nickName); },
微信小程序
TAG标签: 微信小程序微信头像模糊怎么解决
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

