聆客开放平台

# 轮播图模块

除了单图与多图模块,卡片还提供了交互性更强的轮播图模块。

# 字段列表

字段 是否必填 类型 描述 示例
type 字符串 type 为 EImageCarousel ,标志该模块为轮播图模块 "EImageCarousel"
images 字符串数组 图片链接或图片资源的 store 所组成的列表 ["store://lALPDetfThtGS74eIA", "store://lALPDetfThtGS74eIA"]
ratio 字符串 图片的宽高比,可以是 16:9、4:3,如果不填或者填写其他值则视为 1.8:1 "1.8:1"

# json示例

{
  "type": "EImageCarousel",
  "images": [
    "https://img0.baidu.com/it/u=639424590,2670674099&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=602",
    "https://img1.baidu.com/it/u=4188902469,2197915529&fm=253&fmt=auto&app=120&f=JPEG?w=600&h=334",
    "https://img1.baidu.com/it/u=2574436934,3271535834&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=296",
    "https://img1.baidu.com/it/u=311406111,2596640218&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=332",
    "https://img0.baidu.com/it/u=4248906978,1514515542&fm=253&fmt=auto&app=138&f=JPEG?w=755&h=500",
  ],
  "ratio": "6:3",
}