<template>
	<view class="app-content">
		<view class="billing_box_bg">
			<view class="top-view"> </view>
			<view class="result-view">
				<view :class="['iconfont', icon]"></view>
				<slot name="title">
					<view class="result-title">{{ title }}</view>
				</slot>
				<slot></slot>
			</view>
		</view>
		<slot name="content"></slot>
	</view>
</template>

<script>
export default {
    name: "AppResult",
    props:{
        title:{
            type:String,
            default: '开单成功'
        },
        icon:{
           type:String,
            default: 'iconchenggong' 
        }
    }
};
</script>

<style lang="scss" scoped>
.billing_box_bg {
	position: relative;
	padding: 60px 30px;
	display: flex;
	flex-direction: column;
    background-color: #f5f5f5;
	.top-view {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 299px;
		background: #3385ff;
		border-radius: 0px 0px 83px 83px;
	}
	.result-view {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 70px;
		width: 100%;
		background: #ffffff;
		border-radius: 20px;
		z-index: 1;
		.iconchenggong {
			font-size: 170px;
			color: $mainColor1;
		}
    .icondaizhifu {
			font-size: 170px;
			color: #ffa92e;
		}
		.result-title {
			margin: 50px 0 70px;
			font-size: 32px;
		}
	}
	
}
</style>
