1
jhzh
2024-08-12 f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff
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
<!-- 简况 -->
<template>
  <div class="wrapper">
    <div class="baseinfo">{{ t("message.user.jibenxinxi") }}</div>
    <div class="list-item" v-for="(item, index) in data" :key="index">
      <div class="label">{{ t(`message.user.${item.label}`) }}</div>
      <div class="value">{{ item.value }}</div>
    </div>
  </div>
</template>
 
<script setup>
import Axios from "@/api/etf.js";
import { useRoute, useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
import { onMounted } from "vue";
 
const route = useRoute();
const { t } = useI18n();
 
const defaultData = [
  {
    label: "chengliri",
    key: "foundDate",
    value: "2021-08-03",
  },
  {
    label: "shangshiriqi",
    key: "listingDate",
    value: "2021-08-03",
  },
  {
    label: "jijinguimo",
    key: "fundSize",
    value: "2021-08-03",
  },
  {
    label: "jijinfene",
    key: "fundShares",
    value: "2021-08-03",
  },
  {
    label: "genzongzhishu",
    key: "indexTracking",
    value: "2021-08-03",
  },
  {
    label: "hangyegainian",
    key: "belongingConcept",
    value: "2021-08-03",
  },
  {
    label: "jijinjingli",
    key: "managingDirector",
    value: "2021-08-03",
  },
  {
    label: "jijingongsi",
    key: "orgName",
    value: "2021-08-03",
  },
  {
    label: "jijinleixing",
    key: "securityType",
    value: "2021-08-03",
  },
  {
    label: "fengxiandengji",
    key: "riskLevel",
    value: "2021-08-03",
  },
  {
    label: "yejibijiaojizhun",
    key: "performanceBenchmark",
    value: "2021-08-03",
  },
  {
    label: "touzileixing",
    key: "investmentType",
    value: "2021-08-03",
  },
  {
    label: "jiaoyifangshi",
    key: "tradingMethod",
    value: "2021-08-03",
  },
  {
    label: "jiaoyifeiyong",
    key: "transactionFee",
    value: "2021-08-03",
  },
  {
    label: "jiaoyiyongjin",
    key: "tradingCommission",
    value: "2021-08-03",
  },
];
 
const data = ref(defaultData);
onMounted(() => {
  getList();
});
 
const getList = async () => {
  const symbol = route.params?.id || "GlobalETF500";
  let res = await Axios.getSummary({ symbol });
  if (res.code == "0") {
    const showData = defaultData.map((it) => {
      it.value = res.data[it.key] || "--";
      return it;
    });
    data.value = showData;
  }
};
</script>
 
<style scoped>
.wrapper {
  padding: 24px;
}
.baseinfo {
  margin-bottom: 18px;
}
.list-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 12px;
}
.label {
  color: #929aa5;
  font-size: 12px;
  width: 18%;
}
</style>