Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chifengweb2.0
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lichunliang
chifengweb2.0
Commits
7aa1b5c7
Commit
7aa1b5c7
authored
Jul 03, 2025
by
sxl
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:swiper滚动bug修复
parent
45c8d980
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
551 additions
and
378 deletions
+551
-378
_id1.vue
_id1.vue
+22
-61
index.vue
pages/TechnicalDocking/index.vue
+529
-317
No files found.
_id1.vue
View file @
7aa1b5c7
...
@@ -3,19 +3,10 @@
...
@@ -3,19 +3,10 @@
<!-- 头部和对话框部分保持不变 -->
<!-- 头部和对话框部分保持不变 -->
<BackToTopButton
/>
<BackToTopButton
/>
<Header
:activeIndex=
"4"
/>
<Header
:activeIndex=
"4"
/>
<CommonDialog
<CommonDialog
:show=
"dialogVisible"
@
close-dialog=
"handleCloseDialog"
:omDemandName=
"omDemandName"
/>
:show=
"dialogVisible"
@
close-dialog=
"handleCloseDialog"
:omDemandName=
"omDemandName"
/>
<!-- 留言对话框 -->
<!-- 留言对话框 -->
<el-dialog
<el-dialog
:title=
"conDia.lifeCycleName"
:visible.sync=
"showConfirmButton"
width=
"30%"
center
>
:title=
"conDia.lifeCycleName"
:visible.sync=
"showConfirmButton"
width=
"30%"
center
>
<!-- 对话框内容保持不变 -->
<!-- 对话框内容保持不变 -->
</el-dialog>
</el-dialog>
...
@@ -36,27 +27,14 @@
...
@@ -36,27 +27,14 @@
<!-- 主内容轮播 -->
<!-- 主内容轮播 -->
<div
class=
"swiper main-swiper"
>
<div
class=
"swiper main-swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
<div
class=
"swiper-slide"
v-for=
"parentItem in lifeServiceList"
:key=
"parentItem.lifeCycleId"
>
class=
"swiper-slide"
v-for=
"parentItem in lifeServiceList"
:key=
"parentItem.lifeCycleId"
>
<div
class=
"slide-content"
>
<div
class=
"slide-content"
>
<div
<div
v-for=
"childItem in parentItem.children"
:key=
"childItem.lifeCycleId"
class=
"service-item"
v-for=
"childItem in parentItem.children"
@
click=
"showTip(childItem)"
>
:key=
"childItem.lifeCycleId"
<img
src=
"~/static/images/technicalDocking/circle.png"
/>
class=
"service-item"
@
click=
"showTip(childItem)"
>
<img
src=
"~/static/images/technicalDocking/circle.png"
/>
<span>
{{
childItem
.
lifeCycleName
}}
</span>
<span>
{{
childItem
.
lifeCycleName
}}
</span>
</div>
</div>
<div
<div
class=
"placeholder"
v-if=
"parentItem.children.length % 2"
></div>
class=
"placeholder"
v-if=
"parentItem.children.length % 2"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -67,19 +45,12 @@
...
@@ -67,19 +45,12 @@
<!-- 缩略图轮播 -->
<!-- 缩略图轮播 -->
<div
class=
"swiper thumb-swiper"
>
<div
class=
"swiper thumb-swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
<div
class=
"swiper-slide"
v-for=
"(item, index) in lifeServiceList"
:key=
"item.lifeCycleId"
>
class=
"swiper-slide"
v-for=
"(item, index) in lifeServiceList"
:key=
"item.lifeCycleId"
>
<span>
<span>
<img
<img
:src=
"`$
{baseApi}${currentLifeServiceItemIndex === index
:src=
"`$
{baseApi}${
currentLifeServiceItemIndex === index
? item.revealIcon
? item.revealIcon
: item.hiddenIcon
: item.hiddenIcon
}`"
}`" />
/>
{{
item
.
lifeCycleName
}}
{{
item
.
lifeCycleName
}}
</span>
</span>
</div>
</div>
...
@@ -98,17 +69,9 @@
...
@@ -98,17 +69,9 @@
<div
class=
"tec-com"
>
<div
class=
"tec-com"
>
<div
class=
"swiper unit-swiper"
>
<div
class=
"swiper unit-swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
<div
class=
"swiper-slide"
v-for=
"(item, index) in unitList"
:key=
"index"
>
class=
"swiper-slide"
v-for=
"(item, index) in unitList"
:key=
"index"
>
<ul>
<ul>
<li
<li
v-for=
"(subItem, idx) in item"
:key=
"idx"
@
click=
"goto(subItem.id)"
>
v-for=
"(subItem, idx) in item"
:key=
"idx"
@
click=
"goto(subItem.id)"
>
<!-- 单位详情内容保持不变 -->
<!-- 单位详情内容保持不变 -->
</li>
</li>
</ul>
</ul>
...
@@ -467,9 +430,11 @@ export default {
...
@@ -467,9 +430,11 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/* 通用轮播样式 */
/* 通用轮播样式 */
.swiper
{
.swiper
{
&
-button-next
,
&
-button-next
,
&
-button-prev
{
&
-button-prev
{
background-size
:
contain
;
background-size
:
contain
;
&
:
:
after
{
&
:
:
after
{
display
:
none
;
display
:
none
;
}
}
...
@@ -526,8 +491,7 @@ export default {
...
@@ -526,8 +491,7 @@ export default {
}
}
.swiper-button-next
{
.swiper-button-next
{
background
:
url(~/static/images/technicalDocking/zzbl_next.png)
no-repeat
background
:
url(~/static/images/technicalDocking/zzbl_next.png)
no-repeat
center
;
center
;
width
:
85px
;
width
:
85px
;
height
:
44px
;
height
:
44px
;
top
:
390px
;
top
:
390px
;
...
@@ -535,8 +499,7 @@ export default {
...
@@ -535,8 +499,7 @@ export default {
}
}
.swiper-button-prev
{
.swiper-button-prev
{
background
:
url(~/static/images/technicalDocking/zzbl_prev.png)
no-repeat
background
:
url(~/static/images/technicalDocking/zzbl_prev.png)
no-repeat
center
;
center
;
width
:
94px
;
width
:
94px
;
height
:
44px
;
height
:
44px
;
top
:
390px
;
top
:
390px
;
...
@@ -556,8 +519,7 @@ export default {
...
@@ -556,8 +519,7 @@ export default {
.swiper-slide
{
.swiper-slide
{
height
:
60px
!
important
;
height
:
60px
!
important
;
line-height
:
60px
;
line-height
:
60px
;
background
:
url(~/static/images/technicalDocking/zzbl_hd_li.png)
no-repeat
background
:
url(~/static/images/technicalDocking/zzbl_hd_li.png)
no-repeat
left
center
;
left
center
;
span
{
span
{
font-size
:
18px
;
font-size
:
18px
;
...
@@ -575,6 +537,7 @@ export default {
...
@@ -575,6 +537,7 @@ export default {
&
-thumb-active
{
&
-thumb-active
{
background-image
:
url(~/static/images/technicalDocking/zzbl_hd_li_on.png)
;
background-image
:
url(~/static/images/technicalDocking/zzbl_hd_li_on.png)
;
span
{
span
{
color
:
#fff
;
color
:
#fff
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -586,16 +549,14 @@ export default {
...
@@ -586,16 +549,14 @@ export default {
/* 技术服务方轮播 */
/* 技术服务方轮播 */
.mySwiper3
{
.mySwiper3
{
.swiper-button-next
{
.swiper-button-next
{
background
:
url(~/static/images/technicalDocking/swiper3next.png)
no-repeat
background
:
url(~/static/images/technicalDocking/swiper3next.png)
no-repeat
center
;
center
;
top
:
160px
;
top
:
160px
;
right
:
0
;
right
:
0
;
width
:
27px
;
width
:
27px
;
}
}
.swiper-button-prev
{
.swiper-button-prev
{
background
:
url(~/static/images/technicalDocking/swiper3prev.png)
no-repeat
background
:
url(~/static/images/technicalDocking/swiper3prev.png)
no-repeat
center
;
center
;
top
:
160px
;
top
:
160px
;
left
:
0
;
left
:
0
;
width
:
27px
;
width
:
27px
;
...
...
pages/TechnicalDocking/index.vue
View file @
7aa1b5c7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment