This commit is contained in:
39
node_modules/@dcloudio/uni-components/lib-x/ad-rewarded-video/ad-rewarded-video.vue
generated
vendored
Normal file
39
node_modules/@dcloudio/uni-components/lib-x/ad-rewarded-video/ad-rewarded-video.vue
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<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" @nextChannel="_onnextchannel"></uniad-plugin>
|
||||
<uniad-plugin-wx v-if="wxchannel" class="uniad-plugin-wx" @error="_onwxchannelerror"></uniad-plugin-wx>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-ALIPAY -->
|
||||
<uniad-plugin class="uniad-plugin" :adpid="adpid" @create="_handleAdRef" @load="_onmpload" @close="_onmpclose" @error="_onmperror"></uniad-plugin>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// #ifdef APP
|
||||
import adMixin from "../ad/ad.mixin.app.js"
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
import adMixin from "../ad/ad.mixin.web.js"
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
import adMixin from "../ad/ad.mixin.mp-weixin.js"
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
import adMixin from "../ad/ad.mixin.mp-alipay.js"
|
||||
// #endif
|
||||
|
||||
export default {
|
||||
name: 'AdRewardedVideo',
|
||||
mixins: [adMixin],
|
||||
props: {
|
||||
adType: {
|
||||
type: String,
|
||||
default: 'RewardedVideo'
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user