如何解决用户头像渲染失败?

小程序 文章 2022-02-25 16:00 359 0 全屏看文

AI助手支持GPT4.0

如何解决用户头像渲染失败?How to solve the failure to render user avatar?

如何解决用户头像渲染失败?

以前<open-data>组件关闭之前,一直用<open-data>组件,现在关闭了就换了一种方法,不过出现了问题。已经获取到了用户信息,在AppData中的userInfo里,昵称可以

正常显示,头像渲染的时候,渲染出来的不是链接内的头像,这个怎么解决?

代码中的第5行是渲染用户头像的,第9行渲染用户昵称

In the past, the < open data > component was used before the < open data > component was closed. Now it is closed and a different method is used, but there is a problem. The user information has been obtained. In userinfo in appdata, the nickname can be displayed normally. When the avatar is rendered, the avatar in the link is not rendered. How to solve this? Line 5 in the code is to render the user's Avatar, and line 9 is to render the user's nickname

回答:

圣殿骑士:

我怎么觉得你这个是css的问题。。。只显示头像的一部分

外面加个view,图片100%撑满?

若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人

城市多少盏灯:我还没有发现,一直以为渲染的问题,感谢🙏
社交恐怖分z:

更新头像后 需要4个小时才能拿到最新更新的头像(需要重新授权)。原来的头像链接会失效。

城市多少盏灯:我这个问题出现不仅4小时了
brave:

提供下可以复现问题的代码片段 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

城市多少盏灯:我删了又删,还是无法上传,最大1024k,我的最后都是8000多k
城市多少盏灯:
城市多少盏灯:基本没有什么问题,就是渲染,数据已经在AppData中存在

-EOF-

AI助手支持GPT4.0