10.10综合交易所原始源码_移动端
admin
2026-01-06 42faef34194c466f03e29d75a63ae502e4213044
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
<template>
  <div id="fundHome">
    <div class="fundHome">
      <assets-head :title="$t('基金理财')"></assets-head>
      <div class="box-border px-8 mt-10">
        <div class="flex justify-between text-grey relative">
          <div class="flex flex-col">
            <span class="text-grey text-30">{{ $t('托管金额') }}(USDT)</span>
            <span class="text-66 mt-5 font-bold textColor">{{ statiscis.amount_sum }}</span>
          </div>
        </div>
        <div class="flex mt-11 justify-between text-26 mb-2">
          <div class="flex flex-col ">
            <div class="text-grey text-26">{{ $t('预计日收益') }}(USDT)</div>
            <div class="mt-4 mb-2  text-36 textColor">{{ statiscis.today_profit }}</div>
          </div>
          <div class="flex flex-col">
            <div class="text-grey text-26">{{ $t('累计收益') }}(USDT)</div>
            <div class="mt-4 mb-2 text-36 textColor">{{ statiscis.aready_profit }}</div>
          </div>
          <div class="flex flex-col">
            <div class="text-grey text-26">{{ $t('托管订单') }}(USDT)</div>
            <div class="mt-4 mb-2 text-36 textColor">{{ statiscis.order_sum }}</div>
          </div>
        </div>
      </div>
      <div class="flex justify-between box-border px-8 mt-10">
        <div @click="$router.push('/cryptos/funds?tab=3&index=0&type=cryptos')"
          class="greyBg textColor w-96 py-3 rounded-md text-center text-28 mr-5 active">{{ $t('托管订单') }}
        </div>
        <div @click="$router.push('/cryptos/fund-rule')"
          class="greyBg text-grey w-96 py-3 rounded-md text-center text-28">
          {{ $t('规则') }}</div>
      </div>
      <div class="px-8 mt-10 pb-20">
        <div v-for="(item, index) in list" :key="index"
          class="card flex justify-between items-center relative rounded-md borderColor financialBackground ">
          <div class="title absolute px-4 py-2 text-26 text-white bg-green top-0 left-22">{{ $t('日收益率')
          }} <span class="ml-2">{{ item.daily_rate }}%</span></div>
          <div class="flex justify-center items-center">
            <img class="w-32 h-32 mr-5" :src="item.img" alt="">
            <div class="flex flex-col items-start">
              <span class="text-36 font-semibold textColor">
                <template v-if="$i18n.locale === 'CN'">
                  {{ item.name_cn }}
                </template>
                <template v-else-if="$i18n.locale === 'zh-CN'">
                  {{ item.name }}
                </template>
                <template v-else>
                  {{ item.name_en }}
                </template>
              </span>
              <span class="text-26 mt-6 mb-4 textColor">{{ $t('限额') }} {{ item.investment_min + ' ~ ' +
                item.investment_max }}
                USDT</span>
              <span class="text-26 textColor">{{ $t('周期') }} {{ item.cycle }} {{ $t('天') }}</span>
            </div>
          </div>
          <div @click="$router.push({
            path: '/cryptos/fund-buy',
            query: {
              ...item
            }
          })" class="active py-4 px-8 text-30 font-semibold rounded-md">{{ $t('立即买入') }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
import assetsHead from '@/components/Transform/assets-head/index.vue';
import { financeStatics, getfinacialProductsList } from "@/service/financialManagement.api.js";
 
export default {
  name: "fundHome",
  components: {
    assetsHead,
  },
  data() {
    return {
      statiscis: {},
      list: []
    }
  },
  methods: {
  },
  activated() {
    getfinacialProductsList().then(res => {
      //console.log('理财列表', res)
      this.list = res
    })
    financeStatics().then(res => {
      //console.log('理财统计', res)
      this.statiscis = res
    })
  },
  created() {
    getfinacialProductsList().then(res => {
      //console.log('理财列表',res)
      this.list = res
    })
    financeStatics().then(res => {
      //console.log('理财统计',res)
      this.statiscis = res
    })
  }
}
</script>
 
<style lang="scss" scoped>
#fundHome {
 
  .fundHome {
    width: 100%;
    box-sizing: border-box;
  }
 
  .active {
    color: $text_color;
 
    // @include themify() {
    //   background: themed("btn_main") !important;
    // }
 
    // @include themify() {
    //   border-color: themed("btn_main") !important;
    // }
 
  }
 
  .title {
    border-radius: 0 0 8px 8px;
  }
 
  .card {
    padding: 80px 22px 22px 22px;
    margin-bottom: 32px;
  }
 
  .active {
    color: $white;
    background: $btn_main;
    border-color: $btn_main;
  }
}
</style>