大促组件 / 券与营销 / cu-promo-heart-price 心跳价格
01 / Overview

cu-promo-heart-price

心跳价与折线价两档,上下各三个角位文案。

券与营销 参考件 heartcurve 2 档 已上线
02 / Demo

档位与实时预览

档位数演示页平台
2 /pages/promo/marketing?name=cu-promo-heart-price App / H5 / 微信

右侧的预览由站点脚本把 H5 演示页装进 iframe;切档位与主题在演示页顶部操作,不在此处留静态截图。

03 / Props · Events · Slots

全量契约

props

参数说明类型默认值
type只允许 bight / line;broken 按 line 处理且不告警(参考件旧名);其它值 → bight + cuWarn 一次String'bight'
size只允许 small / normal / big;其它值 → normal + cuWarn 一次String'normal'
price中心价格;仅 bight 渲染;负数按 0Number0
top上排文案对象,键 left / center / right,值按字符串取;缺键 / 非字符串 → 空串Object{}
bottom下排文案对象,键同上Object{}

events

本件不派发事件。

slots

插槽说明
default整卡替换
top-left上排左角文案
top-center上排中角文案
top-right上排右角文案
bottom-left下排左角文案
bottom-center下排中角文案
bottom-right下排右角文案
04 / Example

代码示例

uvue
<cu-promo-heart-price type="bight" size="normal" :price="99.9" />
05 / Notes

注意事项

不发任何事件。

心形与折线均由 CSS 节点拼成,不用位图。

line 档不显示价格。

安装 colorui-promo 全量包与安装任意 cu-promo-* 单件包二选一,不要同时装。单件包的前提是已安装完整 colorui-x。