互动模块
一、功能概述
二、使用方式
<!-- @file 卡片推送 -->
<template>
<iar-push-card
:push-card-sdk="pushCardSdk"
@entry-visible-changed="entryVisibleChanged"
/>
</template>
<script>
// 引入互动功能 UI 组件
import IarPushCard from '@polyv/interactions-receive-sdk-ui-default/lib/PushCard';
export default {
components: {
IarPushCard,
},
data() {
return {
pushCardSdk: null,
};
},
methods: {
entryVisibleChanged(visible) {
// 当有入口时,回调入口的显示状态
// visible:是否显示,true:显示,false:隐藏
console.info('### 2.1 卡片入口当前的显示状态:', visible);
}
},
mounted() {
this.pushCardSdk = watchCore.internalReceive.getPushCard();
},
};
</script>三、Api 方法概览
Api 方法
说明
四、Event 事件概览
Event 事件
说明
Last updated