<template>
	<view class="content">
		<view class="content-result">
			<u-image src="/static/def_pay_success.png" width="250" height="180"></u-image>
			<view class="result-yuyue">服务完成</view>
			<view class="money">
				交易金额：{{money}}元
			</view>
			<view class="result-yuyueDetail" @click="backHome">返回首页</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				money: 0
			}
		},
		onLoad(option) {
			this.money = option.money
		},
		methods:{
			backHome(){
				uni.switchTab({
				    url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="less">
	.content{
		width: 100%;
		height: 100vh;
		display: flex;
		text-align: center;
		justify-content: center;
		align-items: center;
		padding: 0;
		.content-result{
			.result-yuyue{
				margin: 40upx 0 20upx;
				font-size: 40upx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #222222;
			}
			.money{
				font-size: 28rpx;
				color: #666E75;
				margin-bottom: 200rpx;
			}
			.result-yuyueDetail{
				height: 80upx;
				line-height: 80upx;
				background: #4F88F7;
				border-radius: 30px;
				color: #fff;
			}
		}
	}
</style>
