|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="about_us_card_container"> |
|
|
|
<HeadLine themeTitle="关于" title="我们" line1="ABOUT US" :theme="theme" /> |
|
|
|
<div :class="theme ? 'theme_color tag' : 'tag'"> |
|
|
|
<div :class="isHard ? 'hard_color tag' : theme ? 'theme_color tag' : 'tag'"> |
|
|
|
<span class="fontscale">专业从事研发13年</span> |
|
|
|
</div> |
|
|
|
<article class="article"> |
|
|
@ -16,6 +16,17 @@ |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import HeadLine from 'cpns/HeadLine' |
|
|
|
import { onMounted, ref } from 'vue' |
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
const route = useRoute() |
|
|
|
const isHard = ref(false) |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
console.log(route) |
|
|
|
if (route.path.indexOf('/hardware') != -1) { |
|
|
|
isHard.value = true |
|
|
|
} |
|
|
|
}) |
|
|
|
const props = defineProps({ |
|
|
|
theme: { |
|
|
|
type: Boolean, |
|
|
@ -48,6 +59,9 @@ const props = defineProps({ |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
} |
|
|
|
.hard_color { |
|
|
|
background: $hardware-theme; |
|
|
|
} |
|
|
|
.theme_color { |
|
|
|
background: $theme-color; |
|
|
|
} |
|
|
|