1
PC-20250623MANY\Administrator
2025-07-06 580572e6a215291e6bc10faed249d6e13a00e8d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<template>
    <div class="success">
        <fx-header :back="false" @back="$router.push('/trade/index')">
        </fx-header>
        <img class="success-img" src="../../assets/image/order/success-bg.png" />
        <p class="title mt-5">{{ currentType == 'recharge' ? $t('recharge') : $t('withdraw') }} {{
            $t('successfulApplication')
        }}</p>
        <ul class="pl-10 pr-10 mt-20">
            <li class="mt-8">
                <div>{{ currentType == 'recharge' ? $t('recharge') : $t('withdraw') }} {{ $t('applicationSubmitted') }}
                </div>
                <p class="mt-2">{{ getCurrentTime() }}</p>
            </li>
            <li class="mt-8">
                <div>{{ currentType == 'recharge' ? $t('recharge') : $t('withdraw') }} {{ $t('applicationSubmitted') }}
                </div>
                <p class="mt-2">{{ currentType == 'recharge' ? $t('recharge') : $t('withdraw') }}{{
                    $t('ContactCustomerService')
                }}</p>
            </li>
            <li class="mt-8">
                <div>{{ currentType == 'recharge' ? $t('recharge') : $t('withdraw') }} {{ $t('succeeded') }}</div>
                <p class="mt-2">{{ $t('Youinformation') }}</p>
            </li>
        </ul>
        <div class="px-10 mt-20 w-but">
            <van-button class="w-full" type="primary" @click="toHistory">{{ $t('Check') }} {{ currentType == 'recharge' ?
                $t('recharge') : $t('withdraw')
            }}{{ $t('history') }}</van-button>
        </div>
    </div>
</template>
 
<script setup>
import { ref, onMounted } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { setStorage } from '@/utils/index'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const route = useRoute()
const router = useRouter()
const currentType = ref('')
const id = ref(2)
const type = ref('bank')
 
onMounted(() => {
    currentType.value = route.query.currentType
    type.value = route.query.type
 
})
const toHistory = () => {
    if (type.value == 'bank') {
        id.value = 3
    } else {
        if (currentType.value == 'withdraw') {
            id.value = 4
        } else {
            id.value = 2
        }
    }
    setStorage('recordId', id.value)
    router.push('/Record/DepositAndWithdrawal')
}
const getCurrentTime = () => {
    var date = new Date();//当前时间
    var year = date.getFullYear() //返回指定日期的年份
    var month = repair(date.getMonth() + 1);//月
    var day = repair(date.getDate());//日
    var hour = repair(date.getHours());//时
    var minute = repair(date.getMinutes());//分
    var second = repair(date.getSeconds());//秒
 
    //当前时间 
    var curTime = year + "-" + month + "-" + day
        + " " + hour + ":" + minute + ":" + second;
    return curTime;
}
const repair = (i) => {
    if (i >= 0 && i <= 9) {
        return "0" + i;
    } else {
        return i;
    }
}
</script>
<style lang="scss" scoped>
.success {
 
    .success-img {
        width: 73px;
        height: 73px;
        display: block;
        margin: 0 auto;
        margin-top: 50px;
    }
 
    .title {
        font-size: 22px;
        font-weight: bold;
        text-align: center;
    }
 
    .assets {
        color:  $active_line;
    }
 
    .w-but {
        position: fixed;
        bottom: 20px;
        width: 100%;
    }
 
    ul {
        li {
            div {
                font-size: 16px;
                color: $text_color;
            }
 
            p {
                color: $dark-grey;
            }
        }
    }
}
</style>