<template>
	<view class="center"><image src="../../static/img/start.gif" mode=""></image></view>
</template>

<script>
export default {
	onLoad() {
		// const innerAudioContext = uni.createInnerAudioContext();
		// innerAudioContext.autoplay = true;
		// innerAudioContext.startTime = 2;
		// innerAudioContext.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3';
		// innerAudioContext.onPlay(() => {
		//   console.log('开始播放');
		// });
		// innerAudioContext.stop()
		setTimeout(() => {
			uni.switchTab({
				url: '/pages/index/index'
			});
		}, 2500);
	}
};
</script>

<style lang="scss">
.center {
	width: 100%;
	height: 100vh;
	image {
		width: 100%;
		height: 100%;
	}
}
</style>
