<template>
	<view style="padding: 30rpx 0px 0rpx 0px;">
		<view v-if="bool == true">
			<view class="invoiced_box">
				<view class="text-center"><icon type="success" size="120rpx" color="#05c160" /></view>
				<view class="text-center title">提交成功</view>
				<view class="text-center title1">开发票成功后，请留意!</view>
			</view>
			<view style="margin: 140rpx 80rpx 0px 80rpx;font-weight: bold;">
				<button class="button" type="primary" @click="toindex">查看申请</button>
			</view>
		</view>
		<view v-else>
			<view class="text-center" style="padding-top: 100rpx;"><image src="../../static/11.png" mode="widthFix" style="width: 400rpx;"></image></view>
			<view class="text-center title1" style="color: #878787;">发票已开具，请扫描二维码获取发票!</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bool:false
			}
		},
		onLoad(option) { //option为object类型，会序列化上个页面传递的参数
			this.bool = option.bool === 'true';
		},
		methods: {
			toindex(){
				uni.redirectTo({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.invoiced_box{
	padding: 60rpx;
	margin: 0px 30rpx;
	background-color: #fff;
}
.text-center{
	text-align: center;
}
.title{
	margin-top: 40rpx;
	font-size: 34rpx;
	font-weight: bold;
}
.title1{
	margin-top: 40rpx;
	font-size: 32rpx;
	color: #acacac;
}
</style>
