<template>
	<view class="page">

		<view class="result">
			<view class="image">
				<image src="https://i.ringzle.com/file/20240225/1667bc4cf6fa41b48a0ad18ffe1aa7c2.png" mode="aspectFill">
				</image>
			</view>
			<text>核销成功</text>
			<view>￥<span>{{list.totalPrice}}</span></view>
		</view>
		<view class="btns">
			<view @tap="toDetails">查看账单 </view>
			<view @tap="toReturnHome">返回首页</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'payResult',
		data() {
			return {
				list: {}

			}
		},
		onLoad(option) {
			// 从本地缓存中获取数据
			this.list = uni.getStorageSync('list');
		},
		methods: {
			toDetails() {
				uni.redirectTo({
					url: '/pagesHouse/home/bill'
				})
			},
			toReturnHome() {
				uni.reLaunch({
					url: '/pagesHouse/home/index'
				})

			}
		}
	}
</script>

<style scoped lang="less">
	.page {
		padding: 64rpx 40rpx;

		.result {
			padding-top: 50rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			.image {
				width: 320rpx;
				height: 200rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			&>text {
				font-size: 32rpx;
				font-family: PingFang-SC-Bold, PingFang-SC;
				font-weight: bold;
				color: #111111;
				margin-top: 20rpx;
			}

			&>view {
				font-size: 36rpx;
				font-family: ArialMT;
				color: #333333;
				margin-top: 20rpx;

				span {
					font-size: 48rpx;
					font-family: Arial-BoldMT, Arial;
					font-weight: BoldMT;
					color: #333333;
				}
			}
		}

		.btns {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 268rpx;

			&>view {


				&:last-child {}
			}

			:nth-child(1) {
				width: calc(50% - 22rpx);
				height: 88rpx;
				border-radius: 46rpx;
				line-height: 88rpx;
				text-align: center;
				font-size: 32rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				color: #fff;
				background-color: #007A69;
			}

			:nth-child(2) {
				width: calc(50% - 22rpx);
				height: 88rpx;
				border-radius: 46rpx;
				border: 2rpx solid #007A69;
				line-height: 88rpx;
				text-align: center;
				font-size: 32rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;

				color: #007A69;
			}
		}
	}
</style>