import LotteryNew from '@polyv/interactions-launch-sdk-ui-default/lib/LotteryNew';
<template>
<!-- 建议弹窗宽度为 560px,弹窗内容高度建议自适应,最高height: 500px -->
<el-dialog
v-if="checkInCore"
:custom-class="'c-interactions-dialog c-interactions-dialog__h350'"
width="560px"
title="抽奖"
:visible.sync="checkInVisible"
:close-on-click-modal="false"
>
<LotteryNew
:lang="lang"
:core="lotteryNewCore"
:live-status='liveStatus'
:is-subsidiary-room="false"
/>
</el-dialog>
</template>
<script>
import * as InteractionsLaunchSDK from '@polyv/interactions-launch-sdk';
import LotteryNew from '@polyv/interactions-launch-sdk-ui-default/lib/LotteryNew';
// 弹窗组件可以选择其他 UI 库组件或自行开发,这里没有限制。
import { Dialog } from 'element-ui';
export default {
components: {
ElDialog: Dialog,
LotteryNew,
},
data() {
return {
lotteryNewCore: null,
liveStatus: true
};
},
mounted() {
// TODO: 关于初始化 InteractionsLaunchSDK 的其他设置
this.lotteryNewCore = new InteractionsLaunchSDK.LotteryNew();
}
};
</script>