<template>
    <view class="content">
        <view class="examine">
            <image src="https://lifetest.ysd-bs.com/storage/materials/2022/09/26/pxdn3_03.png" mode="widthFix"></image>
            <view class="text">
                <view class="title">兑换成功</view>
                <view class="time">管理员审核后,尽快给你发货,请您耐心等待</view>
            </view>
            <view @click="orderClick" class="return">我的订单</view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {}
        },
        // 生命周期函数--监听页面显示
        onShow() {
            // 存储环境-用户抽奖活动
            getApp().globalData.envType = 'drawEnv'
        },
        methods: {
            orderClick() {
                uni.redirectTo({
                    url: 'order?type=paid'
                })
            }
        }
    }
</script>

<style lang="scss">
    page {
        background-color: #ffffff;
    }
    
    .examine {
        padding: 240rpx 0 30rpx;
        box-sizing: border-box;
        text-align: center;
    }
    
    .examine image {
        width: 80%;
        margin: 0 auto 30rpx;
    }
    
    .title {
        font-weight: 600;
        font-size: 42rpx;
        margin-bottom: 30rpx;
        color: #f33111;
    }
    
    .time {
        color: #999999;
        line-height: 50rpx;
    }
    
    .return {
        font-size: 34rpx;
        display: inline-block;
        margin-top: 80rpx;
        background-color: #f33111;
        padding: 0 180rpx;
        height: 90rpx;
        line-height: 90rpx;
        border-radius: 10rpx;
        box-shadow: 0 3rpx 6rpx 4rpx rgba(214, 6, 6, .6);
        color: #FFFFFF;
    }
</style>
