<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: 20upx 30upx;
	display: flex;
	background: white;
	flex-direction: column;
    background-color: #f5f5f5;
	.top-view {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 299upx;
		background: #3385ff;
		border-radius: 0upx 0upx 83upx 83upx;
	}
	.result-view {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 30upx 70upx 70upx 70upx;
		width: 100%;
		background: #ffffff;
		border-radius: 20upx;
		z-index: 1;
		.iconchenggong {
			font-size: 120upx;
			color: $mainColor1;
		}
    	.icondaizhifu {
			font-size: 150upx;
			color: #ffa92e;
		}
		.result-title {
			margin: 25upx 0 40upx;
			font-size: 30upx;
		}
	}
}
</style>
