<template>
	<view class="default_page adffcac" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
		<cus-header title='发送结果' bgColor="transparent"></cus-header>
		<image :src="imgBase+'pay_success.png'" v-if="result==0"></image>
		<image :src="imgBase+'fail_img.png'" v-else></image>
		<view class="title">发送{{result==0?'成功':'失败'}}</view>
		<view class="tip">可以在我的报告“我发送的”查看</view>
		<view class="btn" @click="returnHome">返回首页</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				result:'',
			}
		},
		onLoad(options) {
			this.result = options.result;
		},
		methods:{
			returnHome(){
				uni.reLaunch({
					url:'/pages/home'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.default_page{
		padding: 0 120rpx;
		
		image{
			width: 226rpx;
			height: 142rpx;
			margin-top: 196rpx;
		}
		
		.title{
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			font-size: 40rpx;
			color: #002846;
			line-height: 51rpx;
			margin-top: 42rpx;
		}
		.tip{
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #95A5B1;
			line-height: 51rpx;
			margin-top: 8rpx;
		}
		
		.btn{
			width: 100%;
			height: 88rpx;
			border: 1rpx solid #33A7A7;
			background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
			border-radius: 44rpx;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
			letter-spacing: 2rpx;
			margin-top: 197rpx;
			&.back{
				background: #FFFFFF;
				border: 1rpx solid #E0E4E7;
				color: #667E90;
				margin-top: 40rpx;
			}
		}
	}
</style>