hookehuyr

关于海格自适应调整

1 <!-- 1 <!--
2 * @Date: 2024-10-17 11:13:44 2 * @Date: 2024-10-17 11:13:44
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-17 13:21:40 4 + * @LastEditTime: 2024-10-21 17:17:55
5 * @FilePath: /hager/src/views/about/china.vue 5 * @FilePath: /hager/src/views/about/china.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 </el-breadcrumb> 15 </el-breadcrumb>
16 </div> 16 </div>
17 </hager-box> 17 </hager-box>
18 - <hager-box> 18 + <hager-box v-if="!is_xs">
19 <el-row style="margin: 3rem 0;"> 19 <el-row style="margin: 3rem 0;">
20 <el-col :span="8"> 20 <el-col :span="8">
21 + <div class="about-box-wrapper">
21 <div class="about-box"> 22 <div class="about-box">
22 - <div style="top: 50%; transform: translateY(50%);">
23 <div class="title"> 23 <div class="title">
24 <p class="c">海格电气在中国</p> 24 <p class="c">海格电气在中国</p>
25 <p class="e">Hager in China</p> 25 <p class="e">Hager in China</p>
...@@ -40,6 +40,25 @@ ...@@ -40,6 +40,25 @@
40 <p>海格电气于1997 年进入中国市场,至今已在中国设立了3家工厂和32个销售办事处,通过覆盖全国的营销网络及高资质合作伙伴,为中国客户提供全球领先的解决方案和高效服务。</p> 40 <p>海格电气于1997 年进入中国市场,至今已在中国设立了3家工厂和32个销售办事处,通过覆盖全国的营销网络及高资质合作伙伴,为中国客户提供全球领先的解决方案和高效服务。</p>
41 </div> 41 </div>
42 </hager-box> 42 </hager-box>
43 + <div v-else>
44 + <div class="about-img xs"></div>
45 + <div class="about-box-wrapper xs">
46 + <div class="about-box xs">
47 + <div class="title">
48 + <p class="c">海格电气在中国</p>
49 + <p class="e">Hager in China</p>
50 + </div>
51 + <div class="introduce" v-clamp="3">
52 + <p>唯有匠心,不负初心。<br/>专注为你,彼此成就!</p>
53 + </div>
54 + </div>
55 + </div>
56 + <div class="about-content xs">
57 + <p>来自德国的海格电气,延承德系基因的匠心与专业,为全球住宅、酒店、医院、公共建筑、商业建筑、工业及能源领域,提供安全、稳定的电气设施与服务。坚持可持续发展,专注为你,构建更安全、更清洁、更愉悦的未来电气世界。</p>
58 + <p>秉承“以客户为中心”的服务理念,海格电气是你可信赖的合作伙伴。深入洞悉中国市场需求,定制化的电气解决方案,灵动合作、完善支持,助力行业合作伙伴增效发展。</p>
59 + <p>海格电气于1997 年进入中国市场,至今已在中国设立了3家工厂和32个销售办事处,通过覆盖全国的营销网络及高资质合作伙伴,为中国客户提供全球领先的解决方案和高效服务。</p>
60 + </div>
61 + </div>
43 </div> 62 </div>
44 </template> 63 </template>
45 64
...@@ -74,6 +93,10 @@ export default { ...@@ -74,6 +93,10 @@ export default {
74 background-size: cover; 93 background-size: cover;
75 background-position: center; 94 background-position: center;
76 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g08@2x-1.png); 95 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g08@2x-1.png);
96 + &.xs {
97 + height: 15rem;
98 + margin-top: 1rem;
99 + }
77 } 100 }
78 .about-box { 101 .about-box {
79 background-color: #F7F7F7; 102 background-color: #F7F7F7;
...@@ -81,6 +104,18 @@ export default { ...@@ -81,6 +104,18 @@ export default {
81 padding: 2rem; 104 padding: 2rem;
82 height: 30rem; /* 让 .about-box 撑满父容器 */ 105 height: 30rem; /* 让 .about-box 撑满父容器 */
83 box-sizing: border-box; 106 box-sizing: border-box;
107 + &.xs {
108 + height: auto;
109 + padding: 2rem;
110 + background-color: #FFF;
111 + }
112 + .about-box {
113 + top: 50%;
114 + transform: translateY(50%);
115 + &.xs {
116 + transform: none;
117 + }
118 + }
84 .title { 119 .title {
85 font-weight: bold; 120 font-weight: bold;
86 .c { 121 .c {
...@@ -100,6 +135,10 @@ export default { ...@@ -100,6 +135,10 @@ export default {
100 135
101 .about-content { 136 .about-content {
102 padding: 0 2rem 2rem; 137 padding: 0 2rem 2rem;
138 + &.xs {
139 + background-color: #F7F7F7;
140 + padding-top: 2rem;
141 + }
103 p { 142 p {
104 line-height: 2; 143 line-height: 2;
105 margin-bottom: 1.5rem; 144 margin-bottom: 1.5rem;
......
1 <!-- 1 <!--
2 * @Date: 2024-10-17 11:13:44 2 * @Date: 2024-10-17 11:13:44
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-17 11:48:43 4 + * @LastEditTime: 2024-10-21 17:16:51
5 * @FilePath: /hager/src/views/about/global.vue 5 * @FilePath: /hager/src/views/about/global.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
15 </el-breadcrumb> 15 </el-breadcrumb>
16 </div> 16 </div>
17 </hager-box> 17 </hager-box>
18 - <hager-box> 18 + <hager-box v-if="!is_xs">
19 <el-row style="margin: 3rem 0;"> 19 <el-row style="margin: 3rem 0;">
20 <el-col :span="8"> 20 <el-col :span="8">
21 + <div class="about-box-wrapper">
21 <div class="about-box"> 22 <div class="about-box">
22 - <div style="top: 50%; transform: translateY(50%);">
23 <div class="title"> 23 <div class="title">
24 <p class="c">海格全球</p> 24 <p class="c">海格全球</p>
25 <p class="e">Hager Group</p> 25 <p class="e">Hager Group</p>
...@@ -38,6 +38,23 @@ ...@@ -38,6 +38,23 @@
38 <p>海格集团于1955年由Hermann Hager、Oswald Hager 博士和他们的父亲Peter Hager 一起创立,集团总部位于德国Blieskastel,直到今天依然是一家独立运营的家族企业。在“真诚、勇气、正直”价值观的指导下,全球13000名员工紧密与客户联系在一起,在2023年创造了约32亿欧元的销售业绩,来自全球22个生产基地的产品和解决方案赢得了100多个国家客户的信任。</p> 38 <p>海格集团于1955年由Hermann Hager、Oswald Hager 博士和他们的父亲Peter Hager 一起创立,集团总部位于德国Blieskastel,直到今天依然是一家独立运营的家族企业。在“真诚、勇气、正直”价值观的指导下,全球13000名员工紧密与客户联系在一起,在2023年创造了约32亿欧元的销售业绩,来自全球22个生产基地的产品和解决方案赢得了100多个国家客户的信任。</p>
39 </div> 39 </div>
40 </hager-box> 40 </hager-box>
41 + <div v-else>
42 + <div class="about-img xs"></div>
43 + <div class="about-box-wrapper xs">
44 + <div class="about-box xs">
45 + <div class="title">
46 + <p class="c">海格全球</p>
47 + <p class="e">Hager Group</p>
48 + </div>
49 + <div class="introduce" v-clamp="3">海格集团是全球领先的电气及智能化解决方案和服务提供商,应用领域涵盖住宅、商业建筑、公共建筑和工业。</div>
50 + </div>
51 + </div>
52 + <div class="about-content xs">
53 + <p>海格电气品牌代表了集团的核心业务,覆盖配电系统、电缆管理系统,KNX 智能控制系统和开关面板、楼宇自动化和安防系统。集团旗下还拥有Berker、Bocchiotti、Elcom 和 E3 / DC 等品牌。这使我们得以整合专能,持续为楼宇自动化领域开发创新产品、系统和服务。</p>
54 + <p>海格集团是行业创新领导者之一,我们与来自工业和电气领域的客户一起致力于引领面向未来的主题,如家庭互联、智能建筑技术、能源效率、生活辅助系统、电动交通、可再生能源。配电系统是这些技术得以实现的中枢,也是伴随我们成长的基础产品。</p>
55 + <p>海格集团于1955年由Hermann Hager、Oswald Hager 博士和他们的父亲Peter Hager 一起创立,集团总部位于德国Blieskastel,直到今天依然是一家独立运营的家族企业。在“真诚、勇气、正直”价值观的指导下,全球13000名员工紧密与客户联系在一起,在2023年创造了约32亿欧元的销售业绩,来自全球22个生产基地的产品和解决方案赢得了100多个国家客户的信任。</p>
56 + </div>
57 + </div>
41 </div> 58 </div>
42 </template> 59 </template>
43 60
...@@ -71,13 +88,29 @@ export default { ...@@ -71,13 +88,29 @@ export default {
71 background-size: cover; 88 background-size: cover;
72 background-position: center; 89 background-position: center;
73 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g07@2x.png); 90 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g07@2x.png);
91 + &.xs {
92 + height: 15rem;
93 + margin-top: 1rem;
74 } 94 }
75 - .about-box { 95 + }
96 + .about-box-wrapper {
76 background-color: #F7F7F7; 97 background-color: #F7F7F7;
77 position: relative; /* 父容器设置为相对定位 */ 98 position: relative; /* 父容器设置为相对定位 */
78 padding: 2rem; 99 padding: 2rem;
79 height: 30rem; /* 让 .about-box 撑满父容器 */ 100 height: 30rem; /* 让 .about-box 撑满父容器 */
80 box-sizing: border-box; 101 box-sizing: border-box;
102 + &.xs {
103 + height: auto;
104 + padding: 2rem;
105 + background-color: #FFF;
106 + }
107 + .about-box {
108 + top: 50%;
109 + transform: translateY(50%);
110 + &.xs {
111 + transform: none;
112 + }
113 + }
81 .title { 114 .title {
82 font-weight: bold; 115 font-weight: bold;
83 .c { 116 .c {
...@@ -97,6 +130,10 @@ export default { ...@@ -97,6 +130,10 @@ export default {
97 130
98 .about-content { 131 .about-content {
99 padding: 0 2rem 2rem; 132 padding: 0 2rem 2rem;
133 + &.xs {
134 + background-color: #F7F7F7;
135 + padding-top: 2rem;
136 + }
100 p { 137 p {
101 line-height: 2; 138 line-height: 2;
102 margin-bottom: 1.5rem; 139 margin-bottom: 1.5rem;
......