<!--
 * @Author: zxh
 * @Date: 2024-04-23 14:45:22
 * @LastEditors: zxh
 * @LastEditTime: 2024-08-23 11:31:53
 * @Description: 请填写简介
-->
<template>
	<view class="buyThree">
		<view class="buyThree-con">
			<image :src="staticUrl('/static/pay-success.png')"></image>
			<view>支付成功</view>
		</view>
		<view class="buyThree-btn">
			<view class="btn" @click="openPage()">
				我的订单
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onLoad() {
			this.getUserInfo();
		},
		methods: {
			//获取用户信息
			async getUserInfo() {
				const { code, data, msg } = await this.$api.loginInfo({})
				if (code == 200) {
					uni.setStorageSync("userInfo", data)
				} else {
					uni.showToast({
						icon: "none",
						title: msg
					})
				}
			},
			openPage() {
				uni.navigateTo({
					url: "/pages/question/list"
				})
			}
		}
	}
</script>


<style lang="scss" scoped>
	.buyThree{
		width: 100%;
		min-height: calc(100vh - 44px);
		background-color: #f6f6f6;
		padding: 0 25rpx 25rpx;
		overflow: hidden;
		box-sizing: border-box;
		&-con {
			margin-top: 20rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			box-sizing: border-box;
			padding: 50rpx;
			font-size: 30rpx;
			line-height: 1.8;
			color: #222;
			text-align: center;
			image{
				width:144rpx;
				height:144rpx;
			}
		}
		&-btn {
			.btn {
				width: 100%;
				line-height: 98rpx;
				margin: 40rpx auto;
				font-size: 30rpx;
				color: #ffffff;
				text-align: center;
				background: linear-gradient(-90deg, #3399EA, #38BCFF);
				border-radius: 49rpx;
			}
		}
	}
</style>