<template>
	<view class="bg bg-padding">
		<CustomTabBar :currentTab="0" />
	</view>
</template>

<script>
	import CustomTabBar from '@/components/CustomTabBar.vue';
	export default {
		components: {
			CustomTabBar
		},
		data() {
			return {
				url: "https://www.hwh5.cn/hwcm/lRCqyP0p"
			}
		},
		onLoad() {

		},
		onShow() {
			let inMap = this.$store.state.user.inMap
			if (inMap) {
				uni.switchTab({
					url:"/pages/index/index",
					success: () => {
						this.$store.commit("changeInMap",false);
					}
				})
			} else {
				uni.navigateTo({
					url:"/subPackages/webPage/webPage?url=https://www.hwh5.cn/hwcm/lRCqyP0p"
				})
			}
		},
		methods: {

		}
	}
</script>

<style>
	.bg {
		
	}
</style>
