查看手机演示
# 优惠券
提示
注意:组件将作为view标签,可按正常进行view标签对组件进行样式等自定义
# 平台兼容
H5 | 微信小程序 | APP(ios/Android) |
---|---|---|
√ | √ | √ |
# 代码演示
<template>
<view>
<k-coupon :type="1" >
<view class="flex padding flex align-center justify-center" >
这是优惠券插槽
</view>
</k-coupon>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
# API
属性:
参数 | 类型 | 作用 | 默认值 | 必传 |
---|---|---|---|---|
type | number | 取对应样式优惠券样式 | 1 | true |
注意
注意:组件默认大小为 width:300rpx ;height:160rpx