generated from maochaoying/dreamworks-mobile
9 changed files with 119 additions and 42 deletions
-
8src/components/HeadLine.vue
-
12src/components/SubNavigation.vue
-
67src/components/TabSample.vue
-
32src/components/Top.vue
-
42src/pages/Industry.vue
-
BINsrc/static/img/banner/logl.png
-
BINsrc/static/img/metal/1.png
-
BINsrc/static/img/metal/bottom.png
-
BINsrc/static/img/metal/homebg.png
@ -0,0 +1,67 @@ |
|||||
|
<template> |
||||
|
<div class="tab_sample_container"> |
||||
|
<div class="tabs"> |
||||
|
<div |
||||
|
:class="activeTab == '1' ? 'tab active' : 'tab'" |
||||
|
@click="changeTab('1')" |
||||
|
> |
||||
|
CNC机加工设备展示 |
||||
|
</div> |
||||
|
<div |
||||
|
:class="activeTab == '2' ? 'tab active' : 'tab'" |
||||
|
@click="changeTab('2')" |
||||
|
> |
||||
|
CNC机加工可选材料 |
||||
|
</div> |
||||
|
<div |
||||
|
:class="activeTab == '3' ? 'tab active' : 'tab'" |
||||
|
@click="changeTab('3')" |
||||
|
> |
||||
|
表面处理 |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import { ref } from 'vue' |
||||
|
|
||||
|
const activeTab = ref('1') |
||||
|
|
||||
|
const changeTab = tab => { |
||||
|
activeTab.value = tab |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.tab_sample_container { |
||||
|
.tabs { |
||||
|
width: 100%; |
||||
|
height: 37px; |
||||
|
border-radius: 6px; |
||||
|
background: #ffffff; |
||||
|
display: grid; |
||||
|
align-items: center; |
||||
|
grid-template-columns: repeat(3, 1fr); |
||||
|
.tab { |
||||
|
flex: 1; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 10px; |
||||
|
font-weight: normal; |
||||
|
text-align: center; |
||||
|
letter-spacing: 0.02em; |
||||
|
font-feature-settings: 'kern' on; |
||||
|
color: #7c7c7c; |
||||
|
height: 100%; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
} |
||||
|
.active { |
||||
|
background: linear-gradient(180deg, #0f4bf0 0%, #0f40c8 100%); |
||||
|
color: #ffffff; |
||||
|
border-radius: 6px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
After Width: 258 | Height: 74 | Size: 7.2 KiB |
After Width: 1040 | Height: 131 | Size: 109 KiB |
After Width: 1080 | Height: 1208 | Size: 312 KiB |
After Width: 1100 | Height: 1163 | Size: 776 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue