1
李凌
2025-09-06 b7eb749eb71ae802f9868e3b099aa362e23d7cc0
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
<template>
<div>
  <trade-success>
    <template #price>
      <div class="w-full text-center">
        <div>
          <span class="relative bottom-2 mr-15 font-36">{{ currencySymbol }}</span>
          <span class="font-60">{{ detail.amount }}</span>
        </div>
        <div class="mt-14 font-400 font-28 text-grey">
          {{$t('您已成功出售')}}
          <span class="mx-8">{{ detail.symbol == 'usdt' ? Math.floor(detail.coinAmount * 100) / 100 : Math.floor(detail.coinAmount * 100000) / 100000 }}</span>
          <span>{{ detail.symbol && detail.symbol.toLocaleUpperCase() }}</span>
        </div>
      </div>
    </template>
    <template #desc>
      <span>{{$t('请您对买家进行评价')}}</span>
    </template>
  </trade-success>
</div>
</template>
 
<script>
import TradeSuccess from "@/page/c2c-trade/components/TradeSuccess";
import otcApi from '@/API/otc';
import { mapGetters } from "vuex";
export default {
  name: "TradeSuccessSell",
  components: {
    TradeSuccess,
  },
  data() {
    return {
      detail: {}
    }
  },
  computed: {
    ...mapGetters("c2c", ['currencySymbol']),
  },
  created() {
    const order_no = this.$store.state.c2c.order_no
    otcApi.ctcOrderGetDetail({ order_no, language: this.$i18n.locale }).then(res => {
      this.detail = res.data
    })
  }
}
</script>
 
<style scoped>
 
</style>