使用<cover-image>和<image?导入图片失败为啥?
发布于 5 年前 作者 otan 9444 次浏览 来自 官方Issues

具体问题如下:使用

图片不显示,但是在浏览器地址中可以打开

<cover-view>
 <cover-image src="http://images.juheapi.com/jztk/a1b1subject1/1.jpg"></cover-image>

</cover-view>


<image src="http://images.juheapi.com/jztk/a1b1subject1/1.jpg" style="width: 50px; height: 50px; background-color: #eeeeee;" mode="aspectFit" lazy-load="true"></image>


4 回复

你好,复制你的代码在真机和工具都是可以正常显示的,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

另:https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html

图片链接 base64转码 才可以

回到顶部