quanyawei
2024-06-18 15fb2702039aae1a297b8f1584e24f228ae1994d
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<template>
  <div>
    <div class="bannerin">
      <img src="../assets/image/contactbanner.png" alt="" />
    </div>
    <div class="menu_sild">
      <div class="container">
        <ul class="clearfix">
          <li @click="changeClickIndex(item)" v-for="item in menuList" :key="item.id">
            <span class="current" :class="{ clickCurrent: clickIndex.id === item.id }">{{
              item.name
            }}</span>
          </li>
        </ul>
      </div>
    </div>
    <div style="text-align: center">
      <p class="brandStory_title">联系方式</p>
      <p class="case_t1">CONTACT US</p>
    </div>
    <div class="addresslist">
      <el-card class="box-card">
        <p class="con_tit con_tit1">昆山公司地址</p>
        <p class="con_tit3">址址:江苏省昆山市东辉路105号</p>
        <p class="con_tit3">电话:0512--36871300</p>
      </el-card>
      <el-card class="box-card">
        <p class="con_tit con_tit1">苏州公司地址</p>
        <p class="con_tit3">址址:江苏省苏州市相城区聚金路38号</p>
        <p class="con_tit3">电话:0512--36871300</p>
      </el-card>
      <el-card class="box-card">
        <p class="con_tit con_tit1">张家港总部地址(在建)</p>
        <p class="con_tit3">址址:江苏省张家港市塘桥镇妙桥商城路</p>
        <p class="con_tit3">电话:0512--36871300</p>
      </el-card>
    </div>
    <onlineContact></onlineContact>
  </div>
</template>
 
<script setup lang="ts">
import { onMounted, reactive, ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import { useRouter } from 'vue-router'
import onlineContact from '@/components/onlineContact.vue'
// import require from '@/utils/require'
const route = useRoute()
const router = useRouter()
onMounted(() => {
  console.log('router', route)
})
const menuList = reactive([
  {
    id: 0,
    name: '联系方式'
  }
])
const clickIndex = ref(menuList[0])
 
let changeClickIndex = (item: any) => {
  clickIndex.value = item
}
watch(
  () => router.currentRoute.value.name,
  (newValue: any) => {
    console.log('newValue', newValue)
    // if (newValue === 'product') {
    // }
  },
  { immediate: true }
)
</script>
 
<style scoped lang="scss">
.bannerin {
  position: relative;
  overflow: hidden;
  img {
    height: 588px;
    object-fit: cover;
    width: 100%;
  }
}
.menu_sild {
  border-bottom: 1px solid #ebebeb;
  .container {
    width: 1270px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    .clearfix {
      li {
        cursor: pointer;
        display: inline-block;
        .current {
          display: block;
          padding: 0 30px;
          height: 50px;
          line-height: 50px;
          color: #555;
          &:hover {
            color: #ff575a;
            border-bottom: 2px solid #ff575a;
          }
        }
        .clickCurrent {
          color: #ff575a;
          border-bottom: 2px solid #ff575a;
        }
      }
    }
  }
}
 
.brandStory_title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  display: inline-block;
  border-bottom: 1px solid #cccccc;
  margin: 0 auto 10px;
  padding: 1rem 0 20px;
}
 
.case_t1 {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}
.con_tit {
  padding-top: 28px;
  font-size: 20px;
  color: #333;
  line-height: 30px;
  padding-left: 40px;
  margin-left: 50px;
}
.con_tit1 {
  background: url('../assets/image/con_icon1.png') left bottom no-repeat;
}
.con_tit3 {
  font-size: 12px;
  line-height: 24px;
  margin-bottom: 0;
  padding: 0 50px;
}
.addresslist {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 50px;
}
.box-card {
  width: 375px;
  height: 271px;
}
</style>