图片可以设置默认图片吗?

小程序 文章 2020-08-07 11:21 561 0 全屏看文

AI助手支持GPT4.0

图片可以设置默认图片吗?Can pictures be set as default pictures?

图片可以设置默认图片吗?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug image 微信iOS客户端 7.0.10 2.12.0

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

希望能跟支付宝小程序一样,图片提供下默认加载图片,方便开发者提高用户体验

Framework type problem type API / component name terminal type wechat version basic library version applet bug image wechat IOS client 7.0.10 2.12.0 https://developers.weixin.qq.com/miniprogram/dev/component/image.html Like the Alipay applet, the picture provides the default default load picture to facilitate developers to enhance user experience.

回答:

Joson:自己封装个组件也可以实现,在图片上盖默认图片,image标签bindload后把默认图片隐藏
我是一滴水💧:

自己判断呗,数据没加载出来你给个默认图片就行了

微喵网络:楼主的需求不是这个
微喵网络:

可以通过给图片设置背景图、固定宽高的方式来实现

-EOF-

AI助手支持GPT4.0