Showing
4 changed files
with
10 additions
and
5 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2024-09-26 13:36:06 | 2 | * @Date: 2024-09-26 13:36:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-07 18:08:31 | 4 | + * @LastEditTime: 2024-11-29 10:13:28 |
| 5 | * @FilePath: /hager/src/api/hager.js | 5 | * @FilePath: /hager/src/api/hager.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -17,6 +17,8 @@ const Api = { | ... | @@ -17,6 +17,8 @@ const Api = { |
| 17 | PRODUCT_INFO: '/srv/?a=detail&type=product', | 17 | PRODUCT_INFO: '/srv/?a=detail&type=product', |
| 18 | PRODUCT_SEARCH: '/srv/?a=cate&type=product_search', | 18 | PRODUCT_SEARCH: '/srv/?a=cate&type=product_search', |
| 19 | SOLUTION: '/srv/?a=cate&type=solution', | 19 | SOLUTION: '/srv/?a=cate&type=solution', |
| 20 | + SOLUTION_CASE: '/srv/?a=cate&type=case', | ||
| 21 | + SOLUTION_DETAIL: '/srv/?a=detail&type=case', | ||
| 20 | FOOTER: '/srv/?a=footer', | 22 | FOOTER: '/srv/?a=footer', |
| 21 | REGISTER: '/srv/?a=user&type=register', | 23 | REGISTER: '/srv/?a=user&type=register', |
| 22 | LOGIN: '/srv/?a=user&type=login', | 24 | LOGIN: '/srv/?a=user&type=login', |
| ... | @@ -47,6 +49,10 @@ export const getProductSearchAPI = (params) => fn(fetch.get(Api.PRODUCT_SEARCH, | ... | @@ -47,6 +49,10 @@ export const getProductSearchAPI = (params) => fn(fetch.get(Api.PRODUCT_SEARCH, |
| 47 | 49 | ||
| 48 | export const getSolutionListAPI = (params) => fn(fetch.get(Api.SOLUTION, params)); | 50 | export const getSolutionListAPI = (params) => fn(fetch.get(Api.SOLUTION, params)); |
| 49 | 51 | ||
| 52 | +export const getSolutionCaseAPI = (params) => fn(fetch.get(Api.SOLUTION_CASE, params)); | ||
| 53 | +export const getSolutionDetailAPI = (params) => fn(fetch.get(Api.SOLUTION_DETAIL, params)); | ||
| 54 | + | ||
| 55 | + | ||
| 50 | export const getFooterAPI = (params) => fn(fetch.get(Api.FOOTER, params)); | 56 | export const getFooterAPI = (params) => fn(fetch.get(Api.FOOTER, params)); |
| 51 | 57 | ||
| 52 | export const registerAPI = (params) => fn(fetch.post(Api.REGISTER, params)); | 58 | export const registerAPI = (params) => fn(fetch.post(Api.REGISTER, params)); | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| ... | @@ -126,7 +126,7 @@ export default { | ... | @@ -126,7 +126,7 @@ export default { |
| 126 | } | 126 | } |
| 127 | this.$nextTick(() => { | 127 | this.$nextTick(() => { |
| 128 | // 高度监听 | 128 | // 高度监听 |
| 129 | - this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.4 + 'px'; | 129 | + this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px'; |
| 130 | this.solution_mini_height = $(window).outerWidth() * 0.55 + 'px'; | 130 | this.solution_mini_height = $(window).outerWidth() * 0.55 + 'px'; |
| 131 | // 动态计算图片高度 | 131 | // 动态计算图片高度 |
| 132 | let img_width = $('.card-image').outerWidth(); | 132 | let img_width = $('.card-image').outerWidth(); |
| ... | @@ -141,7 +141,7 @@ export default { | ... | @@ -141,7 +141,7 @@ export default { |
| 141 | methods: { | 141 | methods: { |
| 142 | handleHeightResize () { | 142 | handleHeightResize () { |
| 143 | // 高度监听 | 143 | // 高度监听 |
| 144 | - this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.4 + 'px'; | 144 | + this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px'; |
| 145 | this.solution_mini_height = $('.hager-solution-top').outerWidth() * 0.6 + 'px'; | 145 | this.solution_mini_height = $('.hager-solution-top').outerWidth() * 0.6 + 'px'; |
| 146 | // 动态计算图片高度 | 146 | // 动态计算图片高度 |
| 147 | let img_width = $('.card-image').outerWidth(); | 147 | let img_width = $('.card-image').outerWidth(); |
| ... | @@ -160,7 +160,6 @@ export default { | ... | @@ -160,7 +160,6 @@ export default { |
| 160 | return result; | 160 | return result; |
| 161 | }, | 161 | }, |
| 162 | goToSolution (v) { | 162 | goToSolution (v) { |
| 163 | - console.warn(v); | ||
| 164 | this.$router.push({ | 163 | this.$router.push({ |
| 165 | path: '/solution/detail', | 164 | path: '/solution/detail', |
| 166 | query: { | 165 | query: { |
| ... | @@ -201,7 +200,7 @@ export default { | ... | @@ -201,7 +200,7 @@ export default { |
| 201 | img { | 200 | img { |
| 202 | width: 100%; | 201 | width: 100%; |
| 203 | max-width: 100%; /* 防止宽度超出容器 */ | 202 | max-width: 100%; /* 防止宽度超出容器 */ |
| 204 | - object-fit: fill; /* 保持图片内容的完整性,可以根据需求调整为 cover 或 contain */ | 203 | + object-fit: cover; /* 保持图片内容的完整性,可以根据需求调整为 cover 或 contain */ |
| 205 | } | 204 | } |
| 206 | } | 205 | } |
| 207 | .hager-industry-solutions { | 206 | .hager-industry-solutions { | ... | ... |
-
Please register or login to post a comment