hookehuyr

✨ feat: 新增关于海格-创新设计页面

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:27:27 4 + * @LastEditTime: 2024-10-17 14:50:29
5 - * @FilePath: /hager/src/views/about/global.vue 5 + * @FilePath: /hager/src/views/about/design.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
8 <template> 8 <template>
...@@ -15,6 +15,61 @@ ...@@ -15,6 +15,61 @@
15 </el-breadcrumb> 15 </el-breadcrumb>
16 </div> 16 </div>
17 </hager-box> 17 </hager-box>
18 + <hager-box>
19 + <el-row style="margin: 3rem 0;">
20 + <el-col :span="8">
21 + <div class="about-box">
22 + <div style="top: 50%; transform: translateY(50%);">
23 + <div class="title">
24 + <p class="c">创新设计</p>
25 + <p class="e">Innovative Design</p>
26 + </div>
27 + <div class="introduce" v-clamp="3">
28 + <p>海格电气一直致力于创新,<br/>我们与客户共同着手面向未来的主题。</p>
29 + </div>
30 + </div>
31 + </div>
32 + </el-col>
33 + <el-col :span="15">
34 + <div class="about-img"></div>
35 + </el-col>
36 + </el-row>
37 + </hager-box>
38 + <hager-box class="box-2n">
39 + <hager-h1 title="从产品到解决方案" sub="From Products to Solutions" style="margin: 2rem 0;"></hager-h1>
40 + <el-row :gutter="20" style="margin-bottom: 2rem;">
41 + <el-col :span="8" v-for="(item, index) in list" :key="index" class="products-solutions">
42 + <div class="img-box" :style="{ backgroundImage: 'url('+item.cover+')' }"></div>
43 + <div class="text-box" style="background-color: #FFF;">
44 + <div class="title">{{ item.title }}</div>
45 + <div class="sub">{{ item.sub }}</div>
46 + <div class="content" v-clamp="2">{{ item.content }}</div>
47 + </div>
48 + </el-col>
49 + </el-row>
50 + </hager-box>
51 + <hager-box class="box-n">
52 + <el-row :gutter="30" style="margin-top: 2rem;margin-bottom: 2rem;">
53 + <el-col :span="12">
54 + <div class="left-box">
55 + <div class="title">
56 + <hager-h1 title="从用户体验到设计" sub="From User Experience to Design"></hager-h1>
57 + <div style="margin-top: 2rem; line-height: 1.75;" v-clamp="4">
58 + <p>海格电气仔细倾听客户的声音,以使我们的设计语言能够被普遍理解。为了提供更加国际化的产品组合,我们调研了不同国家的习俗、个人的不同愿望和客户关注点。客户的声音促成了符合人体工学的设计方案,确保来自海格电气的产品兼具优雅品味的外观设计与方便易用、以人为本的功能性。</p>
59 + </div>
60 + </div>
61 + </div>
62 + </el-col>
63 + <el-col :span="12">
64 + <div class="right-box">
65 + <p class="title">“倾听客户的声音,打造一流设计”</p>
66 + <div>
67 + <img style="width: 100%; height: 10rem;" src="https://cdn.ipadbiz.cn/hager/img/about/g13@2x.png" alt="">
68 + </div>
69 + </div>
70 + </el-col>
71 + </el-row>
72 + </hager-box>
18 </div> 73 </div>
19 </template> 74 </template>
20 75
...@@ -27,7 +82,22 @@ export default { ...@@ -27,7 +82,22 @@ export default {
27 mixins: [mixin.init], 82 mixins: [mixin.init],
28 data () { 83 data () {
29 return { 84 return {
30 - 85 + list: [{
86 + cover: 'https://cdn.ipadbiz.cn/hager/img/about/g10@2x-1.png',
87 + title: '电动交通',
88 + sub: 'Electric Transportation',
89 + content: '供电网络为开启电动交通的未来保驾护航,公关和私人场所均提供智能充电站。'
90 + }, {
91 + cover: 'https://cdn.ipadbiz.cn/hager/img/about/g11@2x-1.png',
92 + title: '楼宇自动化',
93 + sub: 'Building Automation',
94 + content: '楼宇自动化将会同时带来高效节能及优质舒适的生活。'
95 + }, {
96 + cover: 'https://cdn.ipadbiz.cn/hager/img/about/g12@2x-1.png',
97 + title: '能源效率',
98 + sub: 'Energy Efficiency',
99 + content: '节能产品有助于优化和降低能源消耗。'
100 + }]
31 } 101 }
32 }, 102 },
33 mounted () { 103 mounted () {
...@@ -41,6 +111,83 @@ export default { ...@@ -41,6 +111,83 @@ export default {
41 111
42 <style lang="less" scoped> 112 <style lang="less" scoped>
43 .hager-about-global-page { 113 .hager-about-global-page {
114 + .about-img {
115 + width: 100%;
116 + height: 30rem;
117 + background-repeat: no-repeat;
118 + background-size: cover;
119 + background-position: center;
120 + background-image: url(https://cdn.ipadbiz.cn/hager/img/about/g09@2x.png);
121 + }
122 + .about-box {
123 + background-color: #F7F7F7;
124 + position: relative; /* 父容器设置为相对定位 */
125 + padding: 2rem;
126 + height: 30rem; /* 让 .about-box 撑满父容器 */
127 + box-sizing: border-box;
128 + .title {
129 + font-weight: bold;
130 + .c {
131 + font-size: 2rem;
132 + color: @secondary-color;
133 + }
134 + .e {
135 + font-size: 1.5rem;
136 + color: @primary-color;
137 + }
138 + }
139 + .introduce {
140 + line-height: 1.75;
141 + margin-top: 1rem;
142 + }
143 + }
144 +
145 + .products-solutions {
146 + border: 1px solid #eee;
147 + .img-box {
148 + width: 100%;
149 + height: 15rem; /* 根据需要设置高度 */
150 + background-size: 100% 100%; /* 强制背景图填满整个容器 */
151 + background-position: center;
152 + background-repeat: no-repeat; /* 防止图片重复 */
153 + }
154 + .text-box {
155 + padding: 1rem;
156 + height: 8rem;
157 + .title {
158 + color: @secondary-color;
159 + font-weight: bold;
160 + font-size: 1.25rem;
161 + }
162 + .sub {
163 + color: @primary-color;
164 + font-weight: bold;
165 + margin: 0.5rem 0;
166 + }
167 + .content {
168 + line-height: 1.7;
169 + }
170 + }
171 + }
44 172
173 + .left-box {
174 + background-color: #E3F1F7;
175 + height: 25rem;
176 + padding: 2rem;
177 + .title {
178 + top: 30%;
179 + transform: translateY(30%);
180 + }
181 + }
182 + .right-box {
183 + top: 30%; transform: translateY(30%); padding: 2rem;
184 + .title {
185 + text-align: center;
186 + font-size: 1.55rem;
187 + font-weight: bold;
188 + margin-bottom: 2rem;
189 + color: @secondary-color;
190 + }
191 + }
45 } 192 }
46 </style> 193 </style>
......