hookehuyr

✨ feat: 解决方案接口联调

/*
* @Date: 2024-09-26 13:36:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-07 18:08:31
* @LastEditTime: 2024-11-29 10:13:28
* @FilePath: /hager/src/api/hager.js
* @Description: 文件描述
*/
......@@ -17,6 +17,8 @@ const Api = {
PRODUCT_INFO: '/srv/?a=detail&type=product',
PRODUCT_SEARCH: '/srv/?a=cate&type=product_search',
SOLUTION: '/srv/?a=cate&type=solution',
SOLUTION_CASE: '/srv/?a=cate&type=case',
SOLUTION_DETAIL: '/srv/?a=detail&type=case',
FOOTER: '/srv/?a=footer',
REGISTER: '/srv/?a=user&type=register',
LOGIN: '/srv/?a=user&type=login',
......@@ -47,6 +49,10 @@ export const getProductSearchAPI = (params) => fn(fetch.get(Api.PRODUCT_SEARCH,
export const getSolutionListAPI = (params) => fn(fetch.get(Api.SOLUTION, params));
export const getSolutionCaseAPI = (params) => fn(fetch.get(Api.SOLUTION_CASE, params));
export const getSolutionDetailAPI = (params) => fn(fetch.get(Api.SOLUTION_DETAIL, params));
export const getFooterAPI = (params) => fn(fetch.get(Api.FOOTER, params));
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 {
}
this.$nextTick(() => {
// 高度监听
this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.4 + 'px';
this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px';
this.solution_mini_height = $(window).outerWidth() * 0.55 + 'px';
// 动态计算图片高度
let img_width = $('.card-image').outerWidth();
......@@ -141,7 +141,7 @@ export default {
methods: {
handleHeightResize () {
// 高度监听
this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.4 + 'px';
this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px';
this.solution_mini_height = $('.hager-solution-top').outerWidth() * 0.6 + 'px';
// 动态计算图片高度
let img_width = $('.card-image').outerWidth();
......@@ -160,7 +160,6 @@ export default {
return result;
},
goToSolution (v) {
console.warn(v);
this.$router.push({
path: '/solution/detail',
query: {
......@@ -201,7 +200,7 @@ export default {
img {
width: 100%;
max-width: 100%; /* 防止宽度超出容器 */
object-fit: fill; /* 保持图片内容的完整性,可以根据需求调整为 cover 或 contain */
object-fit: cover; /* 保持图片内容的完整性,可以根据需求调整为 cover 或 contain */
}
}
.hager-industry-solutions {
......