dcc
2024-06-13 24e2c4a6983d3ed1c67080b460f7e28f5e2e55f9
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
<template>
  <div id="TradeSuccessBuyerPage">
    <div class="w-full">
      <trade-success>
        <template #price>
          <div class="w-full text-center">
            <div class="info-title">
              <span>{{ detail.symbol == 'usdt' ? Math.floor(detail.amountUsdt * 100) / 100 :
                Math.floor(detail.coinAmount * 10000) / 10000 }}</span>
              <span class="ml-4 text-36">{{ detail.symbol && detail.symbol.toUpperCase() }}</span>
            </div>
            <div class="mt-3 font-normal text-28 text-grey">{{ $t('已存入您的资金账户') }}</div>
          </div>
        </template>
        <template #desc>
          <span>{{ $t('请您对买家进行评价') }}</span>
        </template>
      </trade-success>
    </div>
  </div>
</template>
 
<script>
import TradeSuccess from "@/views/cryptos/c2c-trade/components/TradeSuccess.vue";
import otcApi from "@/service/otc.api";
 
export default {
  name: "TradeSuccessBuyer",
  components: {
    TradeSuccess,
  },
  data() {
    return {
      detail: {}
    }
  },
  created() {
    const order_no = this.$store.state.c2c.order_no
    otcApi.ctcOrderGetDetail({ order_no, language: this.$i18n.locale }).then(res => {
      this.detail = res
    })
  }
}
</script>
 
<style lang="scss" scoped>
#TradeSuccessBuyerPage {
  font-size: 30px;
 
  .info-title {
    color: $text_color;
  }
}
</style>