dcc
2024-07-02 431506e6b44e636f1e1df9ad6cde133b26b9800d
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
<template>
  <pc-section class="pt-8" :class="bg === 'gray' ? 'gray-bg' : 'white-bg'">
    <h2>{{ t(`m3-i-s2-${num}-t1`) }}</h2>
    <div class="flex justify-between">
      <div class="w-480">
        <h5>{{ t(`m3-i-s2-${num}-d1`) }}</h5>
        <card
          v-for="(item, i) in list"
          :key="i"
          :desc="t(`m3-i-s2-${num}-${i + 1}`)"
          :lineWidth="'480px'"
        ></card>
        <el-button v-if="needBtn" class="gray-large-btn my-8 fw-400">{{
          t("learn-more-info")
        }}</el-button>
      </div>
      <div>
        <img
          :src="getImageUrl(`/src/assets/forexImages/menu3/home/h${num}.png`)"
          width="620"
          height="464"
        />
      </div>
    </div>
  </pc-section>
</template>
<script setup>
import { useI18n } from "vue-i18n";
import { getImageUrl } from "@/utils/index";
const { t } = useI18n();
console.log(11, `@/assets/forexImages/menu3/home/h${props.num}.png`);
const props = defineProps({
  list: {
    type: Array,
    default: [],
  },
  bg: {
    type: String,
    default: "gray",
  },
  needBtn: {
    type: Boolean,
    default: true,
  },
  num: {
    type: Number,
    default: 1,
  },
});
</script>
<style lang="scss" scoped>
.white-bg {
  background: #fff;
}
.gray-bg {
  background: #f2f4f6;
}
.w-480 {
  width: 480px;
}
 
.fw-400 {
  font-weight: 400;
}
</style>