open-data获取用户信息,手机无法正常显示

发布于 7 年前作者 pengxiuying7352 次浏览最后编辑 7 年前来自 ask

在开发工具中,使用

<open-data class=‘photo’ type=“userAvatarUrl”></open-data>

<open-data class=‘title’ type=“userNickName” lang=“zh_CN”></open-data>

可以正常显示头像及用户的昵称。

但是在手机端无法显示,打开调试模式,wxml在<open-data>节点中也为空。头像与昵称无法正常显示

1 回复
fang82
fang821 楼5 年前

把你的基础库设置下