<template>
  <layout-page>
		<view class="box">
			<SwiperAd :list="swiperAdList"></SwiperAd>
			<view class=""></view>
		</view>
	</layout-page>
</template>

<script setup>
import { ref } from 'vue'
import layoutPage from '@/layout'
import SwiperAd from '@/components/SwiperAd'

import { swiperAdListTest } from '@/utils/testData'
import { onShow } from '@dcloudio/uni-app'
// 设置自定义tabbar选中值
onShow(() => {
    const currentPage = getCurrentPages()[0];  // 获取当前页面实例
    const currentTabBar = currentPage?.getTabBar?.();

    // 设置当前tab页的下标index
    currentTabBar?.setData({ selected: 2 });
})
const swiperAdList = ref(swiperAdListTest)
</script>

<style scoped lang="scss">

</style>
