# 优惠券选择弹窗
本文档构建于2020年08月015日,组件放在goose包中
# 功能
选择/领取优惠券的弹窗,支持选择优惠券、完成、关闭后调用批价
# 如何引入
请先使用cnpm config set registry=http://111.230.199.61:6888/
cnpm isntall @xiaoe/goose
import couponSelect from '@xiaoe/goose'
import '@xiaoe/goose/static/index.css';
1
2
3
4
2
3
4
# 使用示例
<coupon-list :showCoupons="showCoupons" :coupon_lists="usefulCoupons"/>
1
# 事件
event | description |
---|---|
close | 右上角关闭优惠券时触发 |
# 参数
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
choosedCoupon | 当前选中的优惠券 | Object | {} | - |
couponList | 可用优惠券列表 | Array | [] | - |
disableCouponList | 不可用优惠券列表 | Array | [] | - |
← 单张优惠券的通用部分 加载组件 →