Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-11-29 13:54:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
653d14000a942ef279cf6d5aaef88ba29f5ed0a2
653d1400
1 parent
02b4c605
✨ feat: 解决方案接口联调
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
src/api/hager.js
src/views/solution/case.vue
src/views/solution/detail.vue
src/views/solution/index.vue
src/api/hager.js
View file @
653d140
/*
* @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
));
...
...
src/views/solution/case.vue
View file @
653d140
This diff is collapsed. Click to expand it.
src/views/solution/detail.vue
View file @
653d140
This diff is collapsed. Click to expand it.
src/views/solution/index.vue
View file @
653d140
...
...
@@ -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 {
...
...
Please
register
or
login
to post a comment