ad-rewarded-video.vue 689 字节
Newer Older
1 2 3 4
<template>
  <view @click="_onclick">
    <slot :options="options" :loading="loading" :error="errorMessage" />
    <!-- #ifdef MP-WEIXIN -->
d-u-a's avatar
d-u-a 已提交
5
    <uniad-plugin class="uni-ad-plugin" :adpid="adpid" :unit-id="unitId" @load="_onmpload" @close="_onmpclose" @error="_onmperror"></uniad-plugin>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    <!-- #endif -->
  </view>
</template>

<script>
  // #ifndef MP-WEIXIN
  import adMixin from "./ad.mixin.js"
  // #endif
  // #ifdef MP-WEIXIN
  import adMixin from "./ad.mixin.mp.js"
  // #endif

  export default {
    name: 'AdRewardedVideo',
    mixins: [adMixin],
    props: {
      adType: {
        type: String,
        default: 'RewardedVideo'
      }
    },
    methods: {}
  }
</script>