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-10-24 18:13:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af0476e5701f99c7ed2b8abb7a080d68e0e8165b
af0476e5
1 parent
c5279638
首页产品中心hover效果调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
src/views/index.vue
src/views/index.vue
View file @
af0476e
<!--
* @Date: 2024-08-27 10:06:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-24 1
6:34:09
* @LastEditTime: 2024-10-24 1
7:35:08
* @FilePath: /hager/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -257,7 +257,8 @@ export default {
// 高度监听
this.$nextTick(() => {
this.product_box_height = $('.product-item').outerWidth() - $('.product-title').outerHeight() + 'px';
})
});
window.addEventListener('resize', this.handleHeightResize);
},
beforeDestroy() {
// 在组件销毁前移除监听器,防止内存泄漏
...
...
@@ -564,10 +565,11 @@ export default {
color: #333;
border-radius: 8px;
background-color: #f3f3f3;
transition: transform 0.3s ease-in-out
;
overflow: hidden
;
&:hover {
color: #F56400;
cursor: pointer;
transform: scale(1.05);
//
transform: scale(1.05);
// box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
&.xs {
...
...
@@ -585,6 +587,12 @@ export default {
background-repeat: no-repeat;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
transition: transform 0.3s ease-in-out;
&:hover {
// cursor: pointer;
transform: scale(1.05);
// box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
}
}
...
...
Please
register
or
login
to post a comment