ad.uvue 626 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<template>
  <view>
    <page-head title="信息流广告"></page-head>
    <ad adpid="1111111111" style="width: 100%;" @load="loadFun" @error="errorFun"></ad>
    <view v-if="tips" class="uni-center">信息流广告加载失败,请退出当前页面重试。</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        tips:false
      }
    },
    methods: {
      loadFun() {
        uni.showToast({
          position:"bottom",
          title:"信息流广告加载成功"
        })
      },
      errorFun() {
        this.tips = true;
      }
    }
  }
</script>

<style>

</style>