<template>
  <div class="openPage">
    <img class="images" :src="picUrl" alt="">
  </div>
</template>

<script>
export default {
  name: "openPage",
  customNavigation: true,
  data() {
    return {
      picUrl: '',
    }
  },
  methods: {
    getList() {
      this.$instance.post('/app/appwechatguidepage/listForXCX',null, {
        params: {
          current: 1,
          size: 100,
        }
      }).then(res=> {
        if(res?.data) {
          this.picUrl = res.data.records[0].picUrl
        }
      })
    }
  },
  onLoad() {
    this.getList()
    setTimeout(()=> {
      uni.switchTab({
        url: '/pages/AppHome/AppHome'
      })
    }, 2000)
  },
}
</script>

<style scoped lang="scss">
.openPage {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;

  .images {
    width: 100%;
    height: 100vh;
  }
}
</style>