10.10综合交易所原始源码_移动端
admin
2026-01-06 04d8c6bfd48267c7b2eaccaa03170618d83e4cbd
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<template>
    <div class="rechargeDetail">
        <van-nav-bar :title="type2 + $t('详情')" left-arrow @click-left="onClickLeft" />
        <div class="flex flex-col items-center justify-center">
            <div class="text-grey text-32 num-text">{{ $t('数量') }}</div>
            <div class="text-50 textColor">
                <span class="font-bold">{{ info.amount }}</span>
                <span class="text-44 ml10">{{ info.coin }}</span>
            </div>
            <div class="flex items-center justify-center mt53 mb16">
 
 
                <div class="status-icon status-bg3" v-if="info.state == 0"></div>
                <div class="status-icon status-bg1" v-if="info.state == 3"></div>
                <div class="status-icon status-bg4" v-if="info.state == 4"></div>
                <span class="ml10 text-32 textColor">{{ type2 }}{{ status[info.state] && status[info.state].split('_')[0]
                }}</span>
            </div>
            <div class="text-grey text-26 pl-30 pr-30">
                {{ $t('数字币已经') }}{{ $t(type2) }}{{ status[info.state] &&
                    status[info.state].split('_')[0] }}{{ $t('。您可以在钱包账户中查看详情。') }}
            </div>
        </div>
        <div class="border-light-grey mt42"></div>
        <div class="text-30 pl-30 pr-30 mt53">
            <!-- <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('确认数') }}</div>
                <div class="textColor">12/12</div>
            </div> -->
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ type2 }}{{ $t('account') }}</div>
                <div class="textColor">{{ $t('钱包账户') }}</div>
            </div>
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('转账网络') }}</div>
                <div class="textColor">{{ info.coin_blockchain }}</div>
            </div>
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('订单号') }}</div>
                <div class="textColor">{{ info.order_no }}</div>
            </div>
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('地址') }}</div>
                <div class="flex items-center">
                    <div class="text-30 text-underline textColor">{{ info.from || info.to }}</div>
                    <img src="../../../assets/image/assets-center/copy.png" width="15" height="15" class="ml10 ml-20"
                        @click="copy(info.from || info.to)" />
                </div>
            </div>
            <!--             <div class="flex justify-between mb74">-->
            <!--                <div class="text-grey">{{ $t('交易哈希') }}</div>-->
            <!--                <div class="flex">-->
            <!--                    <div class="text-30 text-underline">{{info.tx || '-'}}</div>-->
            <!--                    <img src="../../assets/image/assets-center/copy.png" width="15" height="15" class="ml10 ml-20" @click="copy(info.tx)"/>-->
            <!--                </div>-->
            <!--             </div>-->
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('日期') }}</div>
                <div class="textColor">{{ info.create_time }}</div>
            </div>
            <div class="flex justify-between mb74">
                <div class="text-grey">{{ $t('备注') }}</div>
                <div class="textColor">{{ info.failure_msg || '-' }}</div>
            </div>
        </div>
 
    </div>
</template>
 
<script>
import { _rechargeDetail, _withdrawDetail } from '@/service/fund.api'
import { showSuccessToast } from 'vant';
export default {
    name: "rechargeDetail",
    props: {
        type: {
            type: String,
            default: '充值'
        }
    },
    computed: {
        type2() {
            let res
            if (this.type === '充值') {
                res = this.$t('充值') + ' '
            } else {
                res = this.$t('提现') + ' '
            }
            return res
        },
    },
    data() {
        return {
            order_no: '',
            info: {
                state: 0
            },
            status: [this.$t('确定中') + '_identifing', this.$t('成功') + '_small-success', this.$t('失败') + '_icon-close']
        }
    },
    created() {
        this.order_no = this.$route.query.order_no
        const _api = this.type === '充值' ? _rechargeDetail : _withdrawDetail
        _api(this.order_no).then(data => {
            this.info = data
        })
    },
    methods: {
        copy(val) {
            if (!val) {
                return
            }
            navigator.clipboard.writeText(val).then(() => {
                showSuccessToast(this.$t('已复制'))
            })
        },
        onClickLeft() {
            this.$router.go(-1);
        },
    }
}
</script>
<style lang="scss" scoped>
.rechargeDetail {
    font-size: 30px;
    width: 100%;
    box-sizing: border-box;
 
    :deep(.van-hairline--bottom) {
        &::after {
            border-color: $border_color;
        }
    }
}
 
.num-text {
    margin-top: 20px;
    margin-bottom: 20px;
}
 
.mb53 {
    margin-bottom: 20px;
}
 
.ml10 {
    margin-left: 10px;
}
 
.mt53 {
    margin-top: 10px;
}
 
.mb16 {
    margin-bottom: 16px;
}
 
.mt42 {
    margin-top: 42px;
}
 
.mb74 {
    margin-bottom: 74px;
}
 
.text-underline {
    text-decoration: underline;
}
 
.status-icon {
    width: 40px;
    height: 40px;
}
 
.status-bg1 {
    background: url('@/assets/image/Record/icon1.png') no-repeat center;
    background-size: 100% 100%;
}
 
.status-bg2 {
    background: url('@/assets/image/Record/icon2.png') no-repeat center;
    background-size: 100% 100%;
}
 
.status-bg3 {
    background: url('@/assets/image/Record/icon3.png') no-repeat center;
    background-size: 100% 100%;
}
 
.status-bg4 {
    background: url('@/assets/image/Record/icon4.png') no-repeat center;
    background-size: 100% 100%;
}
 
.text-underline {
    width: 400px;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
    text-align: right;
}
</style>