hookehuyr

fix 图片压缩替换

1 <!-- 1 <!--
2 * @Date: 2024-09-26 13:42:22 2 * @Date: 2024-09-26 13:42:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-24 12:51:47 4 + * @LastEditTime: 2024-10-26 14:40:43
5 * @FilePath: /hager/src/components/common/hagerFooter.vue 5 * @FilePath: /hager/src/components/common/hagerFooter.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
150 content: '海格电气一直致力于创新,我们与客户共同着手面向未来的主题。海格电气仔细倾听客户的声音,以使我们的设计语言能够被普遍理解。', 150 content: '海格电气一直致力于创新,我们与客户共同着手面向未来的主题。海格电气仔细倾听客户的声音,以使我们的设计语言能够被普遍理解。',
151 link: '/about/design', 151 link: '/about/design',
152 },{ 152 },{
153 - img: 'https://cdn.ipadbiz.cn/hager/img/about/g04@2x.png', 153 + img: 'https://cdn.ipadbiz.cn/hager/img/tiny/g04@2x.png',
154 c_title: '生产研发', 154 c_title: '生产研发',
155 e_title: 'Production and R&D', 155 e_title: 'Production and R&D',
156 content: '为配合海格集团在全球的业务扩展计划,目前中国有2个生产基地,分别位于惠州和东莞,主要为亚太乃至全球市场提供优质的配电及相关产品。海格集团在全球拥有22家生产基地,主要分布于欧洲。', 156 content: '为配合海格集团在全球的业务扩展计划,目前中国有2个生产基地,分别位于惠州和东莞,主要为亚太乃至全球市场提供优质的配电及相关产品。海格集团在全球拥有22家生产基地,主要分布于欧洲。',
......
1 <!-- 1 <!--
2 * @Date: 2024-10-17 09:22:56 2 * @Date: 2024-10-17 09:22:56
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-24 14:43:28 4 + * @LastEditTime: 2024-10-26 14:42:38
5 * @FilePath: /hager/src/views/about/index.vue 5 * @FilePath: /hager/src/views/about/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
8 <template> 8 <template>
9 <div class="hager-about-page"> 9 <div class="hager-about-page">
10 - <hager-box :class="['top-img', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/banner/banner04@2x.png)' }"> 10 + <hager-box :class="['top-img', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/img/tiny/banner04@2x.png)' }">
11 <div v-if="!is_xs" class="banner-text-wrapper" style="margin-top: 8%;"> 11 <div v-if="!is_xs" class="banner-text-wrapper" style="margin-top: 8%;">
12 <div class="text"> 12 <div class="text">
13 <p class="title">海格E3可持续发展理念</p> 13 <p class="title">海格E3可持续发展理念</p>
...@@ -93,13 +93,13 @@ export default { ...@@ -93,13 +93,13 @@ export default {
93 content: '海格电气一直致力于创新,我们与客户共同着手面向未来的主题。海格电气仔细倾听客户的声音,以使我们的设计语言能够被普遍理解。', 93 content: '海格电气一直致力于创新,我们与客户共同着手面向未来的主题。海格电气仔细倾听客户的声音,以使我们的设计语言能够被普遍理解。',
94 link: '/about/design', 94 link: '/about/design',
95 },{ 95 },{
96 - img: 'https://cdn.ipadbiz.cn/hager/img/about/g04@2x.png', 96 + img: 'https://cdn.ipadbiz.cn/hager/img/tiny/g04@2x.png',
97 c_title: '生产研发', 97 c_title: '生产研发',
98 e_title: 'Production and R&D', 98 e_title: 'Production and R&D',
99 content: '为配合海格集团在全球的业务扩展计划,目前中国有2个生产基地,分别位于惠州和东莞,主要为亚太乃至全球市场提供优质的配电及相关产品。海格集团在全球拥有22家生产基地,主要分布于欧洲。', 99 content: '为配合海格集团在全球的业务扩展计划,目前中国有2个生产基地,分别位于惠州和东莞,主要为亚太乃至全球市场提供优质的配电及相关产品。海格集团在全球拥有22家生产基地,主要分布于欧洲。',
100 link: '/about/product', 100 link: '/about/product',
101 },{ 101 },{
102 - img: 'https://cdn.ipadbiz.cn/hager/img/about/g05@2x.png', 102 + img: 'https://cdn.ipadbiz.cn/hager/img/tiny/g05@2x.png',
103 c_title: '可持续发展', 103 c_title: '可持续发展',
104 e_title: 'Sustainable Development', 104 e_title: 'Sustainable Development',
105 content: '海格集团是全球领先的电气及智能化解决方案和服务提供商,应用领域涵盖住宅、商业建筑、公共建筑和工业。', 105 content: '海格集团是全球领先的电气及智能化解决方案和服务提供商,应用领域涵盖住宅、商业建筑、公共建筑和工业。',
......
1 <!-- 1 <!--
2 * @Date: 2024-10-18 09:31:05 2 * @Date: 2024-10-18 09:31:05
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-25 16:15:12 4 + * @LastEditTime: 2024-10-26 14:40:07
5 * @FilePath: /hager/src/views/concat.vue 5 * @FilePath: /hager/src/views/concat.vue
6 * @Description: 联系我们 6 * @Description: 联系我们
7 --> 7 -->
...@@ -705,7 +705,7 @@ export default { ...@@ -705,7 +705,7 @@ export default {
705 .hager-concat-page { 705 .hager-concat-page {
706 .top-img { 706 .top-img {
707 height: 22rem; 707 height: 22rem;
708 - background-image: url(https://cdn.ipadbiz.cn/hager/banner/banner05.png); 708 + background-image: url('https://cdn.ipadbiz.cn/hager/img/tiny/banner05.png');
709 background-size: cover; 709 background-size: cover;
710 background-position: center; 710 background-position: center;
711 background-repeat: no-repeat; 711 background-repeat: no-repeat;
......
1 <!-- 1 <!--
2 * @Date: 2024-10-18 13:45:53 2 * @Date: 2024-10-18 13:45:53
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-24 17:33:52 4 + * @LastEditTime: 2024-10-26 14:45:50
5 * @FilePath: /hager/src/views/recruit.vue 5 * @FilePath: /hager/src/views/recruit.vue
6 * @Description: 招聘信息 6 * @Description: 招聘信息
7 --> 7 -->
...@@ -540,7 +540,7 @@ export default { ...@@ -540,7 +540,7 @@ export default {
540 background-repeat: no-repeat; 540 background-repeat: no-repeat;
541 background-size: cover; 541 background-size: cover;
542 background-position: center; 542 background-position: center;
543 - background-image: url(https://cdn.ipadbiz.cn/hager/img/recruit/r01@2x.png); 543 + background-image: url('https://cdn.ipadbiz.cn/hager/img/tiny/r01@2x.png');
544 &.xs { 544 &.xs {
545 height: 15rem; 545 height: 15rem;
546 margin-top: 1rem; 546 margin-top: 1rem;
......
1 <!-- 1 <!--
2 * @Date: 2024-10-20 16:57:48 2 * @Date: 2024-10-20 16:57:48
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-26 14:28:58 4 + * @LastEditTime: 2024-10-27 12:01:24
5 * @FilePath: /hager/src/views/search.vue 5 * @FilePath: /hager/src/views/search.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -111,14 +111,17 @@ export default { ...@@ -111,14 +111,17 @@ export default {
111 watch: { 111 watch: {
112 '$route.query.keyword': function(newKeyword, oldKeyword) { 112 '$route.query.keyword': function(newKeyword, oldKeyword) {
113 this.keyword = newKeyword || ''; 113 this.keyword = newKeyword || '';
114 - if (newKeyword !== oldKeyword) { 114 + if (newKeyword !== oldKeyword) { // 关键词变化时,重新搜索
115 this.activeName = 'product'; 115 this.activeName = 'product';
116 + // 获取默认列表
116 this.getList(); 117 this.getList();
117 } 118 }
118 }, 119 },
119 }, 120 },
120 async mounted () { 121 async mounted () {
122 + // 获取默认列表
121 this.getList(); 123 this.getList();
124 + //
122 objectFitImages(this.$el); // 对当前组件的 DOM 元素应用 125 objectFitImages(this.$el); // 对当前组件的 DOM 元素应用
123 if (this.is_xs) { // 自适应模式下,左右箭头的颜色修改 126 if (this.is_xs) { // 自适应模式下,左右箭头的颜色修改
124 this.modifyTabColor(); 127 this.modifyTabColor();
...@@ -131,7 +134,7 @@ export default { ...@@ -131,7 +134,7 @@ export default {
131 window.removeEventListener('resize', this.modifyTabColor); 134 window.removeEventListener('resize', this.modifyTabColor);
132 }, 135 },
133 methods: { 136 methods: {
134 - modifyTabColor () { 137 + modifyTabColor () { // 调整Tab箭头颜色
135 this.$nextTick(() => { 138 this.$nextTick(() => {
136 setTimeout(() => { 139 setTimeout(() => {
137 // next按钮修改颜色 140 // next按钮修改颜色
...@@ -147,25 +150,27 @@ export default { ...@@ -147,25 +150,27 @@ export default {
147 }, 100); 150 }, 100);
148 }) 151 })
149 }, 152 },
150 - async getList () { 153 + async getList () { // 获取默认列表数据
151 const { code, data } = await searchAPI({ keyword: this.keyword }); 154 const { code, data } = await searchAPI({ keyword: this.keyword });
152 if (code) { 155 if (code) {
156 + //
153 this.count_news = data.count_news; 157 this.count_news = data.count_news;
154 this.count_case = data.count_case; 158 this.count_case = data.count_case;
155 this.count_product = data.count_product; 159 this.count_product = data.count_product;
156 this.count_solution = data.count_solution; 160 this.count_solution = data.count_solution;
161 + //
157 this.product_list = data.product; 162 this.product_list = data.product;
158 this.solution_list = data.solution; 163 this.solution_list = data.solution;
159 } 164 }
160 }, 165 },
161 - async getNewsList (type = '', page) { 166 + async getNewsList (type = '', page) { // 获取新闻列表数据
162 const { code, data } = await searchAPI({ keyword: this.keyword, type, page, limit: this.limit }); 167 const { code, data } = await searchAPI({ keyword: this.keyword, type, page, limit: this.limit });
163 if (code) { 168 if (code) {
164 this.news_list = data.list; 169 this.news_list = data.list;
165 this.news_max_page = data.max_page; 170 this.news_max_page = data.max_page;
166 } 171 }
167 }, 172 },
168 - async getCaseList (type = '', page) { 173 + async getCaseList (type = '', page) { // 获取成功案例列表数据
169 const { code, data } = await searchAPI({ keyword: this.keyword, type, page, limit: this.limit }); 174 const { code, data } = await searchAPI({ keyword: this.keyword, type, page, limit: this.limit });
170 if (code) { 175 if (code) {
171 this.case_list = data.list; 176 this.case_list = data.list;
...@@ -189,7 +194,7 @@ export default { ...@@ -189,7 +194,7 @@ export default {
189 case 'product': 194 case 'product':
190 this.getList(); 195 this.getList();
191 break; 196 break;
192 - case 'case': 197 + case 'solution':
193 this.getList(); 198 this.getList();
194 break; 199 break;
195 case 'case': 200 case 'case':
......