Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ReactWeb5
CivWeb
Commits
431b9611
Commit
431b9611
authored
Apr 09, 2025
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:'水利集成登录页样式优化'
parent
922ab9db
Pipeline
#96788
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
MySwiper.js
src/pages/bootpage/template/project/SL/MySwiper.js
+5
-5
index.less
src/pages/bootpage/template/project/SL/index.less
+25
-8
No files found.
src/pages/bootpage/template/project/SL/MySwiper.js
View file @
431b9611
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Author: 634665781 634665781@qq.com
* @Date: 2025-04-08 09:12:30
* @Date: 2025-04-08 09:12:30
* @LastEditors: 634665781 634665781@qq.com
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2025-04-0
8 16:12:47
* @LastEditTime: 2025-04-0
9 15:45:00
* @FilePath: \CivWeb\src\pages\bootpage\template\project\SL\MySwiper.js
* @FilePath: \CivWeb\src\pages\bootpage\template\project\SL\MySwiper.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -55,14 +55,14 @@ const MySwiper = props => {
...
@@ -55,14 +55,14 @@ const MySwiper = props => {
effect
=
"coverflow"
effect
=
"coverflow"
slidesPerView
=
{
2
}
// 同时显示3张幻灯片:ml-citation{ref="5" data="citationList"}
slidesPerView
=
{
2
}
// 同时显示3张幻灯片:ml-citation{ref="5" data="citationList"}
loop
=
{
true
}
loop
=
{
true
}
autoplay
=
{{
delay
:
1000
*
8
}}
autoplay
=
{{
delay
:
1000
*
3
}}
slidesPerGroup
=
{
1
}
// 每次滑动移动1张(避免跳跃)
slidesPerGroup
=
{
1
}
// 每次滑动移动1张(避免跳跃)
spaceBetween
=
{
2
}
// 卡片间距固定值
spaceBetween
=
{
0
}
// 卡片间距固定值 -35
centeredSlides
=
{
true
}
// 中心对齐
centeredSlides
=
{
true
}
// 中心对齐
coverflowEffect
=
{{
coverflowEffect
=
{{
rotate
:
-
1
5
,
// 侧边卡片旋转角度:ml-citation{ref="5" data="citationList"}
rotate
:
-
1
6
,
// 侧边卡片旋转角度:ml-citation{ref="5" data="citationList"}
stretch
:
0
,
// 卡片间距拉伸比例:ml-citation{ref="5" data="citationList"}
stretch
:
0
,
// 卡片间距拉伸比例:ml-citation{ref="5" data="citationList"}
depth
:
15
0
,
// 层叠深度(值越大3D效果越明显):ml-citation{ref="5" data="citationList"}
depth
:
20
0
,
// 层叠深度(值越大3D效果越明显):ml-citation{ref="5" data="citationList"}
modifier
:
2
,
// 效果强度系数:ml-citation{ref="5" data="citationList"}
modifier
:
2
,
// 效果强度系数:ml-citation{ref="5" data="citationList"}
slideShadows
:
false
,
// 启用投影效果:ml-citation{ref="5" data="citationList"}
slideShadows
:
false
,
// 启用投影效果:ml-citation{ref="5" data="citationList"}
}}
}}
...
...
src/pages/bootpage/template/project/SL/index.less
View file @
431b9611
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
/* 容器尺寸与透视 */
/* 容器尺寸与透视 */
:global {.swiper-container {
:global {.swiper-container {
width: 100%;
width: 100%;
padding: 50px 0; /* 预留阴影空间:ml-citation{ref="5" data="citationList"} */
//
padding: 50px 0; /* 预留阴影空间:ml-citation{ref="5" data="citationList"} */
}
}
/*.swiper-slide.swiper-slide-active::after {
/*.swiper-slide.swiper-slide-active::after {
content: '';
content: '';
...
@@ -24,6 +24,15 @@
...
@@ -24,6 +24,15 @@
transform-style: preserve-3d; /* 启用3D变换:ml-citation{ref="7" data="citationList"} */
transform-style: preserve-3d; /* 启用3D变换:ml-citation{ref="7" data="citationList"} */
box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* 增强立体感:ml-citation{ref="5" data="citationList"} */
box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* 增强立体感:ml-citation{ref="5" data="citationList"} */
}
}
.swiper-slide-prev{
transform: translate3d(0px, 0px, -500px) rotateX(0deg) rotateY(-40deg) scale(1) !important
}
.swiper-slide-next{
transform: translate3d(0px, 0px, -500px) rotateX(0deg) rotateY(40deg) scale(1)!important
}
.swiper-slide{
width: 980px!important
}
.swiper-slide{
.swiper-slide{
img{
img{
...
@@ -33,13 +42,13 @@
...
@@ -33,13 +42,13 @@
.swiper-slide-active{
.swiper-slide-active{
span{
span{
display: block;
display: block;
width:
774
px;
width:
957
px;
height: 3
3
7px;
height: 3
9
7px;
background: transparent;
background: transparent;
position: absolute;
position: absolute;
left: 7px;
left: 7px;
z-index: 99;
z-index: 99;
top:
19
px;
top:
27
px;
pointer-events: none;
pointer-events: none;
}
}
...
@@ -63,7 +72,8 @@
...
@@ -63,7 +72,8 @@
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
margin-top: 56px;
margin-top: 71px;
margin-bottom: 19px;
>img:nth-child(2){
>img:nth-child(2){
margin-left: 54px;
margin-left: 54px;
margin-right: 90px;
margin-right: 90px;
...
@@ -74,6 +84,7 @@
...
@@ -74,6 +84,7 @@
}
}
}
}
.con_{
.con_{
position: relative;
img{
img{
cursor: pointer;
cursor: pointer;
}
}
...
@@ -82,11 +93,11 @@
...
@@ -82,11 +93,11 @@
justify-content: center;
justify-content: center;
.轮播图 {
.轮播图 {
width: 1600px;
width:
1960px; //
1600px;
perspective: 1000px; /* 添加透视效果 */
perspective: 1000px; /* 添加透视效果 */
position: relative;
position: relative;
overflow: hidden;
overflow: hidden;
height: 5
1
7px;
height: 5
4
7px;
}
}
.轮播图__container {
.轮播图__container {
...
@@ -125,6 +136,9 @@
...
@@ -125,6 +136,9 @@
}
}
>div:nth-child(1){
>div:nth-child(1){
position: absolute;
z-index: 9999;
left: 46px;
img{
img{
width: 48px;
width: 48px;
height: 46px;
height: 46px;
...
@@ -137,6 +151,9 @@
...
@@ -137,6 +151,9 @@
background: url('./img/轮播图左.png') center/100% 100% no-repeat;
background: url('./img/轮播图左.png') center/100% 100% no-repeat;
}
}
>div:nth-child(3){
>div:nth-child(3){
position: absolute;
z-index: 9999;
right: 46px;
img{
img{
width: 48px;
width: 48px;
height: 46px;
height: 46px;
...
@@ -158,7 +175,7 @@ font-size: 26px;
...
@@ -158,7 +175,7 @@ font-size: 26px;
color: #00FFF6;
color: #00FFF6;
display: flex;
display: flex;
align-items: center;
align-items: center;
margin-top:
80
px;
margin-top:
68
px;
img{
img{
margin-left: 17px;
margin-left: 17px;
}
}
...
...
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