compute.vue
5.28 KB
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
136
<template>
<div class="slac-box" id="slacBox">
<div class="top-nav">
<div v-for="(item, index) in navList" :key="index" class="nav-item">
<h2
:class="[selNavIndex === index ? 'item-context-sel' : 'item-context']"
@click="selNavIndex = index"
>
{{ item }}
</h2>
</div>
</div>
<EnergyDensityCalculator v-if="selNavIndex == 0"></EnergyDensityCalculator>
<TheoreticalDataCalculator
v-if="selNavIndex == 1"
></TheoreticalDataCalculator>
</div>
<SideBar></SideBar>
</template>
<script setup>
import EnergyDensityCalculator from "~/components/EnergyDensityCalculator.vue";
import TheoreticalDataCalculator from "~/components/TheoreticalDataCalculator.vue";
const navList = ["Energy Density Calculator", "Theoretical Data Calculator"];
const selNavIndex = ref(0);
useHead({
title: `${navList[selNavIndex.value]} - Canrd`,
meta: [
{
hid: "description",
name: "description",
content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
},
{
hid: "keywords",
name: "keywords",
content: `Canrd, Canrd official website, Canrd mall, Canrd lithium sheet, Canrd electrolyte, Canrd battery shell`,
},
{
hid: "og:title",
property: "og:title",
content: `${navList[selNavIndex.value]} - Canrd`,
},
{
hid: "og:description",
property: "og:description",
content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
},
],
});
watch(
() => selNavIndex.value,
(newValue) => {
useHead({
title: `${navList[selNavIndex.value]} - Canrd`,
meta: [
{
hid: "description",
name: "description",
content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
},
{
hid: "keywords",
name: "keywords",
content: `Canrd, Canrd official website, Canrd mall, Canrd lithium sheet, Canrd electrolyte, Canrd battery shell`,
},
{
hid: "og:title",
property: "og:title",
content: `${navList[selNavIndex.value]} - Canrd`,
},
{
hid: "og:description",
property: "og:description",
content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
},
],
});
}
);
</script>
<style scoped>
.top-nav {
height: 72px;
background-color: #ffffff;
margin-top: 10px;
border-radius: 5px;
display: flex;
align-items: flex-end;
}
.nav-item {
display: flex;
justify-content: center;
height: 35px;
padding: 0px 45px;
font-size: 17px;
color: #222222;
font-weight: 600;
/* border: 2px solid transparent #4f9fdd; */
}
.nav-item:last-child {
padding: 0px 0px;
}
.item-context {
border-bottom: 2px solid transparent;
color: #646464;
}
.item-context-sel {
border-bottom: 3px solid #4f9fdd;
}
.item-context:hover {
cursor: pointer;
}
.item-context-sel:hover {
cursor: pointer;
}
@media screen and (min-width: 0px) {
.slac-box {
margin-bottom: 10px;
/* min-width: 1258.67px; */
margin: 0 auto;
min-width: 1200px;
max-width: 1200px;
}
}
</style>