<template>
	<view>
		<!-- 顶部 -->
		<view class="uni-head">
			<view class="uni-head-title">
				navigator 页面跳转
			</view>			
		</view>
		<view class="btn-area">
				<navigator url="../../index/index" hover-class="navigator-hover">
					<button type="default">跳转到新页面</button>
				</navigator>
				<navigator url="../../index/index" open-type="redirect" hover-class="other-navigator-hover">
					<button type="default">在当前页打开</button>
				</navigator>
				<navigator url="../../tabBar/component/component" open-type="switchTab" hover-class="other-navigator-hover">
					<button type="default">跳转tab页面</button>
				</navigator>
				<navigator url="../../index/index"  open-type="reLaunch">
					<button type="default" >退出</button>
				</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			back(){
				uni.navigateBack({
					delta: 3
				});
			}
		}
	}
</script>

<style>
@import url('../../lib/smart.css');
</style>
