<template>
	<view class="content">
		<!-- <text class="success-icon iconfont iconroundcheck"></text> -->
		<image src="../../static/img/payok.png" mode="" class="okimg"></image>
		<text class="tit" v-if="isshow">订单支付成功: <text>￥{{ money }}</text></text>
		<text class="tit" v-if="!isshow">支付成功</text></text>
<!-- 		<view class="btn-group">
			<navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="mix-btn">查看订单</navigator>
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
		</view> -->
		<view class="btn-wrapper" >
			<navigator url="/pages/index/index" open-type="switchTab" class="bank">返回首页</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId:'',
				money: '',
				isshow: true
			}
		},
		onLoad(opt) {
			// 保存订单号
			this.orderId = opt.orderid;
			// 保存金额
			this.money = opt.mun
			if(opt.isshow) {
				this.isshow = false
			}
		},
		methods: {
			
		}
	}
</script>

<style lang='scss'>
	.content{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.success-icon{
		font-size: 160upx;
		color: #5dbc7c;
		margin-top: 100upx;
	}
	.tit{
		padding-top: 40rpx;
		padding-bottom: 130rpx;
		font-size: 32rpx;
		color: #303133;
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
		line-height: 1;
		text {
			font-size: 36rpx;
			font-weight: bold;
			color: #333333;
			line-height: 1;
		}
	}
	.btn-group{
		padding-top: 100upx;
	}
	.mix-btn {
		margin-top: 30upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 600upx;
		height: 80upx;
		font-size: $font-lg;
		color: #fff;
		background-color: $base-color;
		border-radius: 10upx;
		&.hollow{
			background: #fff;
			color: #303133;
			border: 1px solid #ccc;
		}
	}
	.okimg {
		margin-top: 100rpx;
		width: 302rpx;
		height: 302rpx;
	}
	.btn-wrapper {
		display: flex;
		.look-btn {
			width: 301rpx;
			height: 78rpx;
			background: #ee2f72;
			text-align: center;
			line-height: 78rpx;
			border-radius: 10rpx;
			color: #fff;
			margin-right: 37rpx;
		}
		.bank {
			width: 301rpx;
			height: 78rpx;
			text-align: center;
			line-height: 78rpx;
			background: #FFFFFF;
			border: 2px solid #ee2f72;
			border-radius: 10rpx;
			color: #901b21;
		}
	}
</style>
