<template>
	<view class="sub">
		<!-- 头部 -->
		<view class="pt28">
			<image :src="subimg" class="sub_img"></image>
			<view class="sub_tit">{{codetit}}</view>
			<!-- <view class="sub_txt">当前二维码已核销 可点击按钮继续核销</view> -->
			<view class="flexc sub_btn">
				<view class="sub_home sub_btns" @click="getHome">返回首页</view>
				<view class="sub_back sub_btns" @click="getCodeFn">继续核销</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				subimg:require("@/static/image/submit.png"),
				codetit:"核销成功"
			}
		},
		methods:{
			getCodeFn(){
				var that=this;
				uni.redirectTo({
					url:'/pages/code/code'
				})
			},
			getHome(){
				uni.switchTab({
					url:"/pages/index/index"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.sub{box-sizing: border-box;width: 100%;min-height: 100vh;padding: 0 78rpx;}
	.sub_img{width: 224rpx;height: 256rpx;display: block;margin:0 auto 32rpx;}
	.sub_tit{font-size: 30rpx;font-weight: bold;
color: #000000;text-align: center;}
.sub_txt{font-size: 26rpx;color: #666666;text-align: center;width: 260rpx;margin: 20rpx auto 0rpx;}
.sub_btn{display: flex;align-items: center;justify-content: space-between;margin-top: 178rpx;}
.sub_btns{width: 262rpx;height:84rpx;box-sizing: border-box;display: flex;align-items: center;justify-content: center;font-size: 30rpx;border-radius: 42rpx;}
	.sub_home{color: #666666;border: 2rpx solid #666666;}
	.sub_back{background: #A04CFF;color: #ffffff;}
	.pt28{padding-top: 94rpx;}
	
</style>
