Class: ListCardItem

ListCardItem()

ListCardItem 多图片文本列表项

Constructor

new ListCardItem()

Source:

Extends

Methods

addCueWords(arr) → {BaseCard}

添加用户操作提示。所有卡片都可以添加引导提升
Parameters:
Name Type Description
arr Array 提示的话术
Inherited From:
Source:
Returns:
返回自己
Type
BaseCard
Example
this.addCueWords(['十元', '二十元']);

 

getData(key) → {mixed}

获取卡片数据,或者某个字段的值 Example: this.getData(); this.getData('fieldName');
Parameters:
Name Type Description
key string 字段名,可选。如果不提供字段名,返回整个卡片数据
Inherited From:
Source:
Returns:
Type
mixed

setAnchor(url, anchorText) → {BaseCard}

设置"查看更多" ,设置卡片锚点
Parameters:
Name Type Description
url string 链接地址
anchorText string 锚点展现的文字,可选。如果不设置,默认为"查看更多"
Inherited From:
Source:
Returns:
返回自己
Type
BaseCard