<template>
	<view class="pageBgImg">
		<topNavbar title="学员退款"></topNavbar>
		<view class="pad">
			<view class="navBox">
				<cardNav :navData="navData" :currentNav="currentNav" @changeNav="changeNav"/>
			</view>
			<view class="list">
				<view class="card">
					<refundItem/>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import refundItem from './comp/item'
	export default {
		components: { refundItem },
		data() {
			return {
				currentNav: 1,
				navData: [
					{text: '待审核', id: 1},
					{text: '已审核', id: 2}
				]
			}
		},
		methods: {
			changeNav(val) {
				this.currentNav = val
				console.log(val)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.navBox {
		padding: 0 0 24rpx 0;
	}
	.card {
		padding: 0 28rpx;
		margin-bottom: 24rpx;
	}
</style>