Closed yanmin0220 closed 5 years ago
before issue:(不用回答)
model是chuangmi.plug.hmi208 使用card_config.json 插座设备已分享346378191
线上版本和card验证db包
ios卡片按钮配置btn_power_off,btn_power_on,btn_power_unable没有按钮图片显示, ios卡片按钮配置btn_single_off,btn_single_on,btn_single_unable,一直是btn_single_off图片, 无法切到btn_single_on图片,android验证无问题
能和android一样正常显示开和关的图
json配置 {"models":["chuangmi.plug.hmi208"],"props":[{"prop_key":"prop.power","switchStatus":["on"],"prop_name":{"en":"Power","zh_CN":"插座电源"}},{"prop_key":"prop.usb_on","switchStatus":[true],"prop_name":{"en":"USB","zh_CN":"USB电源"}}],"cards":{"layout_type":2,"card_items":[{"supportGrid":1,"cardType":1,"prop_key":"prop.power","operation":[{"button_image":{"normal":"btn_single_off","selected":"btn_single_on","unable":"btn_single_unable"},"prop_value":"off","method":"set_power","param":["on"],"button_name":{"en":"Power","zh_CN":"插座电源"}},{"button_image":{"normal":"btn_single_on","selected":"btn_single_off","unable":"btn_single_unable"},"prop_value":"on","method":"set_power","param":["off"],"button_name":{"en":"Power","zh_CN":"插座电源"}}]},{"cardType":1,"prop_key":"prop.usb_on","operation":[{"button_image":{"normal":"btn_single_off","selected":"btn_single_on","unable":"btn_single_unable"},"prop_value":false,"method":"set_usb_on","button_name":{"en":"USB","zh_CN":"USB电源"}},{"button_image":{"normal":"btn_single_on","selected":"btn_single_off","unable":"btn_single_unable"},"prop_value":true,"method":"set_usb_off","button_name":{"en":"USB","zh_CN":"USB电源"}}]}]}}
尝试过btn_single和btn_power系列均无法正常显示,使用过新RN的db包和card验证db包都不行
before issue:(不用回答)
请认证阅读常见问题 https://github.com/MiEcosystem/NewXmPluginSDK/blob/master/card_config/README.md
APK 请使用最新版apk验证是否已经修复了此问题?
Check 文档了吗
环境
model是chuangmi.plug.hmi208 使用card_config.json 插座设备已分享346378191
环境
线上版本和card验证db包
现象
ios卡片按钮配置btn_power_off,btn_power_on,btn_power_unable没有按钮图片显示, ios卡片按钮配置btn_single_off,btn_single_on,btn_single_unable,一直是btn_single_off图片, 无法切到btn_single_on图片,android验证无问题
期望
能和android一样正常显示开和关的图
其他的上下文/日志/截图
json配置 {"models":["chuangmi.plug.hmi208"],"props":[{"prop_key":"prop.power","switchStatus":["on"],"prop_name":{"en":"Power","zh_CN":"插座电源"}},{"prop_key":"prop.usb_on","switchStatus":[true],"prop_name":{"en":"USB","zh_CN":"USB电源"}}],"cards":{"layout_type":2,"card_items":[{"supportGrid":1,"cardType":1,"prop_key":"prop.power","operation":[{"button_image":{"normal":"btn_single_off","selected":"btn_single_on","unable":"btn_single_unable"},"prop_value":"off","method":"set_power","param":["on"],"button_name":{"en":"Power","zh_CN":"插座电源"}},{"button_image":{"normal":"btn_single_on","selected":"btn_single_off","unable":"btn_single_unable"},"prop_value":"on","method":"set_power","param":["off"],"button_name":{"en":"Power","zh_CN":"插座电源"}}]},{"cardType":1,"prop_key":"prop.usb_on","operation":[{"button_image":{"normal":"btn_single_off","selected":"btn_single_on","unable":"btn_single_unable"},"prop_value":false,"method":"set_usb_on","button_name":{"en":"USB","zh_CN":"USB电源"}},{"button_image":{"normal":"btn_single_on","selected":"btn_single_off","unable":"btn_single_unable"},"prop_value":true,"method":"set_usb_off","button_name":{"en":"USB","zh_CN":"USB电源"}}]}]}}
尝试过的解决办法
尝试过btn_single和btn_power系列均无法正常显示,使用过新RN的db包和card验证db包都不行