<view class="userimg">
<open-data type="userAvatarUrl"></open-data>
<!-- <image wx:if="{{userimg!=null }}" src='{{ userimg }}' mode='aspectFit'></image> -->
</view>
<view class="nickname">
<open-data type="userNickName"></open-data>
<!-- {{ nickName }} -->
</view>
参考资料:https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html