uni-ticket-system/node_modules/@dcloudio/uni-components/lib/ad-fullscreen-video/ad-fullscreen-video.vue
2023-12-05 10:11:10 +08:00

29 lines
683 B
Vue

<template>
<view @click="_onclick">
<slot :options="options" :loading="loading" :error="errorMessage" />
<!-- #ifdef MP-WEIXIN -->
<uniad-plugin class="uniad-plugin" :adpid="adpid" :unit-id="unitId" @load="_onmpload" @close="_onmpclose" @error="_onmperror"></uniad-plugin>
<!-- #endif -->
</view>
</template>
<script>
// #ifndef MP-WEIXIN
import adMixin from "../ad/ad.mixin.js"
// #endif
// #ifdef MP-WEIXIN
import adMixin from "../ad/ad.mixin.mp.js"
// #endif
export default {
name: 'AdFullscreenVideo',
mixins: [adMixin],
props: {
adType: {
type: String,
default: 'FullScreenVideo'
}
}
}
</script>