1
PC-20250623MANY\Administrator
2025-07-22 9ec3bd6e8d7357927533d8966f882cb5d28b3e0f
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
<template>
  <div class="fundHome">
    <assets-head :title="$t('基金理财')"></assets-head>
    <div class="box-border px-30 mt-42">
      <div class="flex justify-between text-grey relative">
        <div class="flex flex-col">
          <span class="text-grey font-30">{{ $t('托管金额') }}(USDT)</span>
          <span class="font-66 mt-20 font-700 textColor">{{ statiscis.amount_sum }}</span>
        </div>
      </div>
      <div class="flex mt-44 justify-between font-26 lh-32 mb-35">
        <div class="flex flex-col ">
          <div class="text-grey font-26">{{ $t('预计日收益') }}(USDT)</div>
          <div class="font-40 mt-17 mb-9  font-36 textColor">{{ statiscis.today_profit }}</div>
        </div>
        <div class="flex flex-col">
          <div class="text-grey font-26">{{ $t('累计收益') }}(USDT)</div>
          <div class="font-40 mt-17 mb-9 font-36 textColor">{{ statiscis.aready_profit }}</div>
        </div>
        <div class="flex flex-col">
          <div class="text-grey font-26">{{ $t('托管订单') }}(USDT)</div>
          <div class="font-40 mt-17 mb-9 font-36 textColor">{{ statiscis.order_sum }}</div>
        </div>
      </div>
    </div>
    <div class="flex justify-between box-border px-30 mt-43">
      <div @click="$router.push('/funds?tab=3&index=0')"
        class="greyBg text-grey w-370 h-75 lh-75 rounded-lg font-27 text-center mr-20 active">{{ $t('托管订单') }}</div>
      <div @click="$router.push('/fund-rule')" class="greyBg text-grey w-370 h-75 lh-75 rounded-lg font-27 text-center">
        {{ $t('规则') }}</div>
    </div>
    <div class="px-30 mt-40 pb-80">
      <div v-for="(item, index) in list" :key="index"
        class="card flex justify-between items-center relative rounded-lg borderColor contBackground">
        <div class="title absolute px-16 py-8 font-26 text-white bg-green top-0 left-22">{{ $t('日收益率')
        }} <span class="ml-8">{{ item.daily_rate }}%</span></div>
        <div class="flex justify-center items-center">
          <img class="w-120 h-130 mr-20" :src="item.img" alt="">
          <div class="flex flex-col items-start">
            <span class="font-35 font-600 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="font-26 mt-24 mb-16 textColor">{{ $t('限额') }} {{ item.investment_min + ' ~ ' +
              item.investment_max }}
              USDT</span>
            <span class="font-26 textColor">{{ $t('周期') }} {{ item.cycle }} {{ $t('天') }}</span>
          </div>
        </div>
        <div @click="$router.push({
          path: '/fund-buy',
          query: {
            ...item
          }
        })" class="active py-16 px-30 font-30 font-600 rounded-lg">{{ $t('立即买入') }}</div>
      </div>
    </div>
  </div>
</template>
 
<script>
import assetsHead from "@/components/assets-head";
import { financeStatics, getfinacialProductsList } from "@/API/financialManagement";
 
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 {
  width: 100%;
  box-sizing: border-box;
}
 
.active {
  color: #FFFFFF;
 
  @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;
}
</style>