<template>
    <view class="content">
        <view class="admin">
			<button type="primary" @click="tocode(1)" plain="true">参观核销</button>
        </view>
		
		<view class="admin">
			<button type="primary" @click="tocode(2)" plain="true">活动核销</button>
		</view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
            }
        },
        methods: {
			tocode(type){
				let url = "/pages/index/visit";
				if(type==2){
					url = "/pages/index/activity"
				}else{
					url = "/pages/index/visit"
				}
				uni.navigateTo({
					url: url
				});
			}
			
        }
    }
</script>

<style>
	.content{
		
	}
	.btn input{
		border:1px solid #ddd;
		height:40px;
		padding:5px 10px;
		margin:10px;
		margin-top:30px;
	}
	.admin{
		text-align: center;
	}
	.admin button{
		margin:10px;
		margin-top:20px;
		
	}
</style>