Package com.foxinmy.weixin4j.model.card
Class PageTheme.Builder
- java.lang.Object
-
- com.foxinmy.weixin4j.model.card.PageTheme.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageTheme.Builder
addCardItem(CardItem item)
添加一个礼品卡内容PageTheme.Builder
addPicItem(PicItem item)
添加一个礼品卡封面图PageTheme.Builder
bannerTheme(Boolean isBanner)
设置是否将当前主题设置为banner主题(主推荐)PageTheme.Builder
cardItems(CardItem... items)
添加一个或多个礼品卡内容PageTheme.Builder
categoryIndex(Integer index)
设置所属主题分类的索引号PageTheme.Builder
cover(String cover)
设置主题的封面图片PageTheme.Builder
picItems(PicItem... items)
添加一个或多个礼品卡封面图PageTheme.Builder
showSkuTitleFirst(Boolean isShow)
设置该主题购买页是否突出商品名显示PageTheme.Builder
title(String title)
设置主题名称PageTheme.Builder
titleColor(String titleColor)
设置主题title的颜色
-
-
-
Method Detail
-
cover
public PageTheme.Builder cover(String cover)
设置主题的封面图片- Parameters:
cover
-- Returns:
-
title
public PageTheme.Builder title(String title)
设置主题名称- Parameters:
title
-- Returns:
-
titleColor
public PageTheme.Builder titleColor(String titleColor)
设置主题title的颜色- Parameters:
titleColor
- 直接设置色值,如:#FB966E- Returns:
-
cardItems
public PageTheme.Builder cardItems(CardItem... items)
添加一个或多个礼品卡内容- Parameters:
items
-- Returns:
-
addCardItem
public PageTheme.Builder addCardItem(CardItem item)
添加一个礼品卡内容- Parameters:
item
-- Returns:
-
picItems
public PageTheme.Builder picItems(PicItem... items)
添加一个或多个礼品卡封面图- Parameters:
items
-- Returns:
-
addPicItem
public PageTheme.Builder addPicItem(PicItem item)
添加一个礼品卡封面图- Parameters:
item
-- Returns:
-
categoryIndex
public PageTheme.Builder categoryIndex(Integer index)
设置所属主题分类的索引号- Parameters:
index
-- Returns:
-
showSkuTitleFirst
public PageTheme.Builder showSkuTitleFirst(Boolean isShow)
设置该主题购买页是否突出商品名显示- Parameters:
isShow
-- Returns:
-
bannerTheme
public PageTheme.Builder bannerTheme(Boolean isBanner)
设置是否将当前主题设置为banner主题(主推荐)- Parameters:
isBanner
-- Returns:
-
-