使用事件(Events)进行自定义
type GiftVariant {
id: number,
title: string,
price: number,
original_price: number,
thumbnail: string,
discount_type: "percentage" | "fixed_amount",
discount_value: number
}
type GiftProduct {
id: number,
title: string,
handle: string,
thumbnail: string,
belongs_to_offer?: string | string[],
variants: GiftVariant[]
}
type TodayOffer {
id: string,
title: string,
gifts: GiftProduct[]
}
type CartMessage {
value: string,
offer_root: string, // offer id
}1. 用于自定义赠品滑动栏的事件
2. 用于自定义商品页面上赠品图标和赠品缩略图的事件
3. 用于自定义今日优惠的事件
4. 用于自定义购物车提示信息的事件
最后更新于
这有帮助吗?