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 16:13:30 4 + * @LastEditTime: 2024-10-22 11:26:47
5 * @FilePath: /hager/src/views/about/product.vue 5 * @FilePath: /hager/src/views/about/product.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
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 1rem;"> 19 <el-row style="margin: 3rem 0 1rem;">
20 <el-col :span="8"> 20 <el-col :span="8">
21 <div class="about-box"> 21 <div class="about-box">
...@@ -35,7 +35,21 @@ ...@@ -35,7 +35,21 @@
35 </el-col> 35 </el-col>
36 </el-row> 36 </el-row>
37 </hager-box> 37 </hager-box>
38 - <hager-box class="box-n"> 38 + <div v-else style="margin-top: 1rem;">
39 + <div class="about-img xs"></div>
40 + <div class="about-box xs">
41 + <div>
42 + <!-- <div class="title">
43 + <p class="c">生产研发</p>
44 + <p class="e">Production and R&D</p>
45 + </div> -->
46 + <div class="introduce" v-clamp="6">
47 + <p>为配合海格集团在全球的业务扩展计划,目前中国有2个生产基地,分别位于惠州和东莞,主要为亚太乃至全球市场提供优质的配电及相关产品。海格集团在全球拥有22家生产基地,主要分布于欧洲。</p>
48 + </div>
49 + </div>
50 + </div>
51 + </div>
52 + <hager-box v-if="!is_xs" class="box-n">
39 <el-row> 53 <el-row>
40 <el-col :span="12"> 54 <el-col :span="12">
41 <div class="about-img" :style="{ 'background-image': 'url(https://cdn.ipadbiz.cn/hager/img/about/g15@2x.png)' }"></div> 55 <div class="about-img" :style="{ 'background-image': 'url(https://cdn.ipadbiz.cn/hager/img/about/g15@2x.png)' }"></div>
...@@ -87,7 +101,41 @@ ...@@ -87,7 +101,41 @@
87 </el-col> 101 </el-col>
88 </el-row> 102 </el-row>
89 </hager-box> 103 </hager-box>
90 - <hager-box style="margin-top: 2rem;"> 104 + <div v-else class="box-2n" style="padding: 1rem;">
105 + <div class="about-img xs" :style="{ 'background-image': 'url(https://cdn.ipadbiz.cn/hager/img/about/g15@2x.png)' }"></div>
106 + <div class="about-box xs" style="background-color: #FFF; margin-bottom: 1rem;">
107 + <div class="title" style="">
108 + <p class="c xs">追求卓越的匠心品质</p>
109 + <p class="e xs">Originality Quality</p>
110 + </div>
111 + <div class="introduce" style="line-height: 2;">
112 + <p style="margin-bottom: 1rem;">从模具到外壳,到主要塑料、金属和电子部件,95%的产品元器件均由海格电气自主生产;先进的生产工艺及100%高于国际的自动化全检,在缩短产品交货周期的同时,确保每一个产品均符合海格品质。</p>
113 + <p>符合CNAS17025国家标准的惠州工厂实验室总面积达600平方米,测试能力满足IEC、GB、BS、AS标准的所有标准要求。</p>
114 + </div>
115 + </div>
116 + <div class="about-img xs" :style="{ 'background-image': 'url(https://cdn.ipadbiz.cn/hager/img/about/g16@2x.png)' }"></div>
117 + <div class="about-box xs" style="background-color: #FFF; height: auto; margin-bottom: 1rem;">
118 + <div class="title">
119 + <p class="c xs">专注为你的匠心服务</p>
120 + <p class="e xs">Creative Service</p>
121 + </div>
122 + <div class="introduce" style="line-height: 2;">
123 + <p style="margin-bottom: 1rem;">位于惠州工厂的亚太定制化中心,传承德国百年匠心的开关面板定制服务,为酒店、住宅等行业提供涵盖颜色定制、UV打印、质感选择、激光雕刻等开关面板定制化服务及工序检测,让客户在激烈竞争中实现差异化与个性化。</p>
124 + <p>产品预设与东莞工厂配电箱增值服务全面满足客户需求,柔性生产线和灵活生产解决方案帮助客户应对紧急交付需求。海格中国工厂RFID射频标签技术及质量追踪系统可随时了解订单生产状态,确保交货速度。广泛应用在塑壳、漏保等制造环节中的二维码技术自动调取产品工艺参数,为客户实现快速换型生产。 </p>
125 + </div>
126 + </div>
127 + <div class="about-img xs" :style="{ 'background-image': 'url(https://cdn.ipadbiz.cn/hager/img/about/g17@2x.png)' }"></div>
128 + <div class="about-box xs" style="background-color: #FFF;">
129 + <div class="title">
130 + <p class="c xs">绿色制造的匠心承诺</p>
131 + <p class="e xs">Ingenuity Commitment</p>
132 + </div>
133 + <div class="introduce" style="line-height: 2;">
134 + <p>秉持着可持续发展观的友好生产制造理念,海格电气全球工厂严格执行ISO14001生产标准及RoHS,杜绝在生产过程中使用环境有害材料,并在容易被忽视的包装、运输环节中充分践行对环保的承诺。</p>
135 + </div>
136 + </div>
137 + </div>
138 + <hager-box v-if="!is_xs" style="margin-top: 2rem;">
91 <div class="product-sum"> 139 <div class="product-sum">
92 <el-row :gutter="10"> 140 <el-row :gutter="10">
93 <el-col :span="6" class="box"> 141 <el-col :span="6" class="box">
...@@ -121,7 +169,41 @@ ...@@ -121,7 +169,41 @@
121 </el-row> 169 </el-row>
122 </div> 170 </div>
123 </hager-box> 171 </hager-box>
124 - <hager-box style="margin: 2rem 0;"> 172 + <div v-else class="product-sum xs">
173 + <el-row :gutter="0">
174 + <el-col :span="12" class="box">
175 + <div>
176 + <img src="https://cdn.ipadbiz.cn/hager/img/about/icon/%E4%B8%93%E5%88%A9@2x.png" alt="">
177 + </div>
178 + <div class="num">3,000</div>
179 + <div class="text">研发员工有效专利</div>
180 + </el-col>
181 + <el-col :span="12" class="box">
182 + <div>
183 + <img src="https://cdn.ipadbiz.cn/hager/img/about/icon/%E5%91%98%E5%B7%A5@2x.png" alt="">
184 + </div>
185 + <div class="num">800</div>
186 + <div class="text">研发员工</div>
187 + </el-col>
188 + </el-row>
189 + <el-row :gutter="0">
190 + <el-col :span="12" class="box">
191 + <div>
192 + <img src="https://cdn.ipadbiz.cn/hager/img/about/icon/%E6%97%B6%E9%97%B4@2x-1.png" alt="">
193 + </div>
194 + <div class="num">3,0000</div>
195 + <div class="text">培训时长<br/>(面对面以及网络培训)</div>
196 + </el-col>
197 + <el-col :span="12" class="box">
198 + <div>
199 + <img src="https://cdn.ipadbiz.cn/hager/img/about/icon/%E7%A0%94%E5%8F%91@2x.png" alt="">
200 + </div>
201 + <div class="num">>6%</div>
202 + <div class="text">销售额投入研发</div>
203 + </el-col>
204 + </el-row>
205 + </div>
206 + <hager-box v-if="!is_xs" style="margin: 2rem 0;">
125 <el-row style="margin: 2rem 0;background-color: #F7F7F7;"> 207 <el-row style="margin: 2rem 0;background-color: #F7F7F7;">
126 <el-col :span="12"> 208 <el-col :span="12">
127 <div class="about-box big"> 209 <div class="about-box big">
...@@ -144,6 +226,23 @@ ...@@ -144,6 +226,23 @@
144 </el-col> 226 </el-col>
145 </el-row> 227 </el-row>
146 </hager-box> 228 </hager-box>
229 + <div v-else style="padding: 1rem;">
230 + <div class="about-box xs">
231 + <div>
232 + <div class="title">
233 + <p class="c xs">我们就在身边</p>
234 + <p class="e xs">We Are Right Here</p>
235 + </div>
236 + <div class="introduce big">
237 + <p>由厂家技术人员做现场服务</p>
238 + <p>产品交付速度迅速</p>
239 + <p><span>32</span>个城市办事处在你身边</p>
240 + <p><span>7X24</span>小时实时在线为你服务</p>
241 + </div>
242 + </div>
243 + </div>
244 + <div class="about-img big"></div>
245 + </div>
147 </div> 246 </div>
148 </template> 247 </template>
149 248
...@@ -200,6 +299,10 @@ export default { ...@@ -200,6 +299,10 @@ export default {
200 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g18@2x.png); 299 background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g18@2x.png);
201 background-size: cover; 300 background-size: cover;
202 } 301 }
302 + &.xs {
303 + background-position: center;
304 + height: 18rem;
305 + }
203 } 306 }
204 .about-box { 307 .about-box {
205 background-color: #F7F7F7; 308 background-color: #F7F7F7;
...@@ -207,6 +310,14 @@ export default { ...@@ -207,6 +310,14 @@ export default {
207 padding: 2rem; 310 padding: 2rem;
208 height: 30rem; /* 让 .about-box 撑满父容器 */ 311 height: 30rem; /* 让 .about-box 撑满父容器 */
209 box-sizing: border-box; 312 box-sizing: border-box;
313 + &.xs {
314 + height: auto;
315 + }
316 + &.xs {
317 + height: auto;
318 + padding-top: 1rem;
319 + padding-bottom: 1rem;
320 + }
210 &.big { 321 &.big {
211 height: 35rem; 322 height: 35rem;
212 padding-left: 6rem; 323 padding-left: 6rem;
...@@ -216,10 +327,16 @@ export default { ...@@ -216,10 +327,16 @@ export default {
216 .c { 327 .c {
217 font-size: 2rem; 328 font-size: 2rem;
218 color: @secondary-color; 329 color: @secondary-color;
330 + &.xs {
331 + font-size: 1.5rem;
332 + }
219 } 333 }
220 .e { 334 .e {
221 font-size: 1.5rem; 335 font-size: 1.5rem;
222 color: @primary-color; 336 color: @primary-color;
337 + &.xs {
338 + font-size: 1.1rem;
339 + }
223 } 340 }
224 } 341 }
225 .introduce { 342 .introduce {
...@@ -242,7 +359,12 @@ export default { ...@@ -242,7 +359,12 @@ export default {
242 background-position: center; 359 background-position: center;
243 height: 12rem; 360 height: 12rem;
244 color: #FFF; 361 color: #FFF;
245 - // margin-bottom: 2rem; 362 + &.xs {
363 + background-color: @secondary-color;
364 + background-image: none;
365 + height: auto;
366 + padding-bottom: 2rem;
367 + }
246 .box { 368 .box {
247 text-align: center; 369 text-align: center;
248 padding-top: 2.5rem; 370 padding-top: 2.5rem;
......