红包组件
引入
在线文件引入方式
// script 标签引入,根据版本号引入JS版本。
<script src="https://websdk.videocc.net/interactions-receive-sdk-ui-default/0.24.0/lib/MobileRedEnvelope/MobileRedEnvelope.umd.min.js"></script>
// 移动端
<script>
const MobileRedEnvelope = window.PolyvIRScene.MobileRedEnvelope.default;
</script>import 方式引入(推荐)
import { MobileRedEnvelope } from '@polyv/interactions-receive-sdk-ui-default/lib/PcWelfareLottery';
组件注入-红包实例 代码示例
Attributes
属性名
类型
默认值
含义
customImgConfig
属性名
类型
默认值
含义
Event
事件名
回调参数
说明
红包挂件组件 代码示例
Attributes
属性名
类型
默认值
含义
Event
事件名
回调参数
说明
红包消息组件 代码示例
Attributes
属性名
类型
默认值
含义
Event
事件名
回调参数
说明
红包雨组件 代码示例
Attributes
属性名
类型
默认值
含义
Event
事件名
回调参数
说明
Methods
事件名
参数
说明
红包积分记录组件 代码示例
Attributes
属性名
类型
默认值
含义
Last updated