1
PC-20250623MANY\Administrator
2025-07-22 beff59e6065d3283cc9fb10fe7151f2b757cd154
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
<template>
  <menu-layout :collapseList="menu5List">
    <template v-slot:content>
      <div class="grid grid-cols-2 gap-x-5">
        <div
          class="border-top"
          :style="{ 'border-top-color': `${getColor(i)[1]}` }"
          v-for="(_, i) in list7"
          :key="i"
          @click="gotoPage(_.url)"
        >
          <div class="mt-4 mb-8 text-left">
            <span :class="getColor(i)[0]" class="tag">{{
              t(`m5-tg-${i + 1}-b1`)
            }}</span>
          </div>
          <h5 class="font-normal mb-4">{{ t(`m5-tg-${i + 1}-t1`) }}</h5>
          <h5>{{ t(`m5-tg-${i + 1}-d1`) }}</h5>
        </div>
      </div>
    </template>
  </menu-layout>
</template>
 
<script setup>
import { useRoute, useRouter } from "vue-router";
import { menu5List } from "@/utils/path";
import { useI18n } from "vue-i18n";
import { computed } from "vue";
 
const router = useRouter();
const { t } = useI18n();
const list7 = [
  {
    url: "/education/11-tips-improving-performance-expert-advisor",
  },
  {
    url: "/education/extreme-volatility",
  },
  {
    url: "/education/why-spread",
  },
  {
    url: "/education/down-up",
  },
  {
    url: "/education/VIX",
  },
  {
    url: "/education/what-trader-type-are-you",
  },
  {
    url: "/education/how-trade-gold",
  },
];
const getColor = computed(() => (i) => {
  if (i == 0) {
    return ["yellow", "#EACD37"];
  }
  if (i == 1 || i == 6) {
    return ["green", "#06AF85"];
  }
 
  return ["purple", "#5E54C7"];
});
const gotoPage = (path) => {
  router.push(path);
};
</script>
<style lang="scss" scoped>
.tag {
  background: #e7ebee;
  border-radius: 2px;
  padding: 10px 16px;
}
 
.yellow {
  background: #f7ebaf;
}
.green {
  background: #9bdfce;
}
.purple {
  background: #bfbbe9;
}
 
.border-top {
  box-shadow: 0px 2px 8px 10px rgba(0, 0, 0, 0.05);
  padding: 36px 32px;
  border-top-width: 4px;
  border-top-style: solid;
}
</style>