fix:首页切换图片bug

This commit is contained in:
2025-05-09 11:05:21 +08:00
parent 2575286050
commit 8c838accf9
6 changed files with 748 additions and 406 deletions

View File

@@ -1,6 +1,8 @@
{extend name="public/base" /} {extend name="public/base" /}
{block name="style"} {block name="style"}
<link rel="stylesheet" type="text/css" href="__CSS__/index.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/index.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/before-after.min.css" />
{/block} {/block}
{block name="main"} {block name="main"}
<div class="orico_Page_index"> <div class="orico_Page_index">
@@ -28,7 +30,8 @@
{volist name="product_categorys" id="cate"} {volist name="product_categorys" id="cate"}
<a class="catit" href="{$cate.link}"> <a class="catit" href="{$cate.link}">
<img src="{$cate.image}" src="catIcoImg" /> <img src="{$cate.image}" src="catIcoImg" />
<span class="catName" {notempty name="cate.title_txt_color"}style="color:{$cate.title_txt_color};"{/notempty}>{$cate.title}</span> <span class="catName" {notempty name="cate.title_txt_color" }style="color:{$cate.title_txt_color};"
{/notempty}>{$cate.title}</span>
</a> </a>
{/volist} {/volist}
</div> </div>
@@ -100,7 +103,8 @@
{notempty name="video"} {notempty name="video"}
<div class="hotProduct"> <div class="hotProduct">
<div class="hotvideo"> <div class="hotvideo">
<iframe src="{$video.video}" title="YouTube video player" style="width:100%;height:67rem;z-index:9999;" frameborder="0" <iframe src="{$video.video}" title="YouTube video player" style="width:100%;height:67rem;z-index:9999;"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen id="videoElement"></iframe> allowfullscreen id="videoElement"></iframe>
</div> </div>
@@ -113,8 +117,10 @@
{volist name="scenes" id="scene"} {volist name="scenes" id="scene"}
<div class="sceneitem"> <div class="sceneitem">
<div class="sceneInfo"> <div class="sceneInfo">
<p class="scenetitle" {notempty name="scene.title_txt_color"}style="color:{$scene.title_txt_color};"{/notempty}>{$scene.title}</p> <p class="scenetitle" {notempty name="scene.title_txt_color" }style="color:{$scene.title_txt_color};"
<p class="subtitle" {notempty name="scene.desc_txt_color"}style="color:{$scene.desc_txt_color};"{/notempty}>{$scene.desc|raw}</p> {/notempty}>{$scene.title}</p>
<p class="subtitle" {notempty name="scene.desc_txt_color" }style="color:{$scene.desc_txt_color};" {/notempty}>
{$scene.desc|raw}</p>
<a class="sceneMore" href="{$scene.link}">{:lang('index.learn_more')} ></a> <a class="sceneMore" href="{$scene.link}">{:lang('index.learn_more')} ></a>
</div> </div>
<div style="background-image: url('{$scene.image}');" class="sceneimg"></div> <div style="background-image: url('{$scene.image}');" class="sceneimg"></div>
@@ -126,10 +132,15 @@
<div class="oricoTechnology"> <div class="oricoTechnology">
<p class="ottitle">{:lang('index.orico_technology')}</p> <p class="ottitle">{:lang('index.orico_technology')}</p>
<span class="otsbtitle">{:lang('index.orico_technology_desc')}</span> <span class="otsbtitle">{:lang('index.orico_technology_desc')}</span>
<div class="beforeafter"> <div class="beforeafter ba-slider">
<div id="after"></div> <!-- 对比前的图片 -->
<div id="before"></div> <img src="static/index/images/indeximg1.jpg">
<div class="drag-circle"></div> <div class="resize">
<!-- 对比后的图片 -->
<img src="static/index/images/indeximg2.jpg">
</div>
<!-- 可拖动的分隔条 -->
<span class="handle"></span>
</div> </div>
</div> </div>
<!-- 品牌故事 --> <!-- 品牌故事 -->
@@ -143,8 +154,10 @@
<img src="{$story.image}" class="bsImg" /> <img src="{$story.image}" class="bsImg" />
</div> </div>
<div class="bsinf"> <div class="bsinf">
<div class="bstitle" {notempty name="story.title_txt_color"}style="color:{$story.title_txt_color};"{/notempty}>{$story.title}</div> <div class="bstitle" {notempty name="story.title_txt_color" }style="color:{$story.title_txt_color};"
<div class="bssubtitle" {notempty name="story.desc_txt_color"}style="color:{$story.desc_txt_color};"{/notempty}>{$story.desc|raw}</div> {/notempty}>{$story.title}</div>
<div class="bssubtitle" {notempty name="story.desc_txt_color" }style="color:{$story.desc_txt_color};"
{/notempty}>{$story.desc|raw}</div>
<a class="bsmore" href="{$story.link}">{:lang('index.learn_more')} ></a> <a class="bsmore" href="{$story.link}">{:lang('index.learn_more')} ></a>
</div> </div>
</div> </div>
@@ -242,28 +255,13 @@
{block name="script"} {block name="script"}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
let isDragging = false; // 初始化 beforeafter 插件
let startX; $('.ba-slider').beforeAfter({
let initialLeft; startPercent: 50, // 初始分隔条位置为 50%
$('.drag-circle').mousedown(function(e) { handle: '.handle', // 指定分隔条元素的选择器
isDragging = true; resize: '.resize' // 指定可调整大小部分的选择器
startX = e.pageX;
initialLeft = $('.drag-circle').position().left;
});
$(document).mousemove(function(e) {
if (isDragging) {
const currentX = e.pageX;
const diffX = currentX - startX;
let newLeft = initialLeft + diffX;
const containerWidth = $('.beforeafter').width();
newLeft = Math.max(20, Math.min(containerWidth - 20, newLeft));
$('.drag-circle').css('left', newLeft);
$('#before').width(newLeft);
}
});
$(document).mouseup(function() {
isDragging = false;
}); });
// 底部关闭 // 底部关闭
$(".oficlose").on("click", function () { $(".oficlose").on("click", function () {
$(".oricofixd-info").hide(); $(".oricofixd-info").hide();

View File

@@ -16,6 +16,7 @@
<link rel="stylesheet" href="https://unpkg.com/swiper@9/swiper-bundle.min.css"> <link rel="stylesheet" href="https://unpkg.com/swiper@9/swiper-bundle.min.css">
<script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script> <script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script>
<script type="text/javascript" src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"></script> <script type="text/javascript" src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"></script>
<script type="text/javascript" src="/static/index/js/before-after.min.js"></script>
</head> </head>
<body> <body>
{block name="header"} {block name="header"}

View File

@@ -1,2 +1,2 @@
*
!.gitignore !.gitignore

View File

@@ -0,0 +1 @@
.ba-slider{position:relative;overflow:hidden}.ba-slider img{width:100%;display:block;max-width:none}.ba-slider .resize{position:absolute;top:0;left:0;height:100%;width:50%;overflow:hidden}.ba-slider .handle{position:absolute;left:50%;top:0;bottom:0;width:4px;margin-left:-2px;background:rgba(0,0,0,.5);cursor:ew-resize}.ba-slider .handle:after{position:absolute;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;content:'\21d4';color:#fff;font-weight:700;font-size:36px;text-align:center;line-height:64px;background:#ffb800;border:1px solid #e6a600;border-radius:50%;transition:all .3s ease;box-shadow:0 2px 6px rgba(0,0,0,.3),inset 0 2px 0 rgba(255,255,255,.5),inset 0 60px 50px -30px #ffd466}.ba-slider .handle.ba-draggable:after{width:48px;height:48px;margin:-24px 0 0 -24px;line-height:50px;font-size:30px}

View File

@@ -28,8 +28,15 @@
left: 9%; left: 9%;
top: 53%; top: 53%;
} }
.orico_Page_index .pageMain .bannerswiper .swiper-horizontal > .swiper-pagination-bullets, .orico_Page_index
.orico_Page_index .pageMain .bannerswiper .swiper-pagination-bullets.swiper-pagination-horizontal { .pageMain
.bannerswiper
.swiper-horizontal
> .swiper-pagination-bullets,
.orico_Page_index
.pageMain
.bannerswiper
.swiper-pagination-bullets.swiper-pagination-horizontal {
bottom: 5%; bottom: 5%;
} }
.orico_Page_index .pageMain .bannerswiper .swiper-button-next, .orico_Page_index .pageMain .bannerswiper .swiper-button-next,
@@ -91,7 +98,12 @@
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
overflow: hidden; overflow: hidden;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left {
width: 53%; width: 53%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -99,47 +111,102 @@
text-align: center; text-align: center;
align-items: center; align-items: center;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left p { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left
p {
font-size: 2.625rem; font-size: 2.625rem;
line-height: 2.8125rem; line-height: 2.8125rem;
font-weight: 600; font-weight: 600;
height: 5.9375rem; height: 5.9375rem;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left .subtitle { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left
.subtitle {
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left .subtitle .tpicture { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left
.subtitle
.tpicture {
width: 1.375rem; width: 1.375rem;
height: 1.375rem; height: 1.375rem;
background: url("/static/index/images/more2.png") no-repeat; background: url('/static/index/images/more2.png') no-repeat;
background-position: -26px 0px; background-position: -26px 0px;
margin-left: 1.625rem; margin-left: 1.625rem;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left .subtitle:hover { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left
.subtitle:hover {
color: #004bfa; color: #004bfa;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_left .subtitle:hover .tpicture { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_left
.subtitle:hover
.tpicture {
background-position: 0 0; background-position: 0 0;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_right { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_right {
width: 47%; width: 47%;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_right img { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_right
img {
width: 100%; width: 100%;
transition: transform 0.3s ease-in-out; transition: transform 0.3s ease-in-out;
border-start-end-radius: 1.625rem; border-start-end-radius: 1.625rem;
border-end-end-radius: 1.625rem; border-end-end-radius: 1.625rem;
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme .ftItme_right img:hover { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme
.ftItme_right
img:hover {
transform: scale(1.09); transform: scale(1.09);
} }
.orico_Page_index .pageMain .featuredtopicsMain .ftcontent .ftItme:nth-child(even) .ftItme_right img { .orico_Page_index
.pageMain
.featuredtopicsMain
.ftcontent
.ftItme:nth-child(even)
.ftItme_right
img {
border-start-end-radius: 0; border-start-end-radius: 0;
border-end-end-radius: 0; border-end-end-radius: 0;
border-start-start-radius: 1.625rem; border-start-start-radius: 1.625rem;
@@ -162,7 +229,12 @@
margin-left: 6%; margin-left: 6%;
position: relative; position: relative;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture {
display: block; display: block;
width: 21.875rem; width: 21.875rem;
height: 29.375rem; height: 29.375rem;
@@ -173,7 +245,13 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .primg { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.primg {
width: 13.5rem; width: 13.5rem;
height: 12.875rem; height: 12.875rem;
display: block; display: block;
@@ -185,14 +263,34 @@
background-repeat: no-repeat; background-repeat: no-repeat;
transition: transform 0.3s ease-in-out; transition: transform 0.3s ease-in-out;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .primg img { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.primg
img {
width: 13.5rem; width: 13.5rem;
height: 12.875rem; height: 12.875rem;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .primg img:hover { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.primg
img:hover {
transform: scale(1.1); transform: scale(1.1);
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .fpptitle { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.fpptitle {
font-size: 1.25rem; font-size: 1.25rem;
text-align: center; text-align: center;
line-height: 1.5rem; line-height: 1.5rem;
@@ -206,7 +304,13 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .subtitle { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.subtitle {
text-align: center; text-align: center;
line-height: 1.125rem; line-height: 1.125rem;
font-size: medium; font-size: medium;
@@ -218,7 +322,13 @@
overflow: hidden; overflow: hidden;
font-weight: 600; font-weight: 600;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiper-wrapper .picture .more { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiper-wrapper
.picture
.more {
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; position: absolute;
bottom: 10%; bottom: 10%;
@@ -233,15 +343,33 @@
position: relative; position: relative;
height: 6.25rem; height: 6.25rem;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swiper-container1 { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swiper-container1 {
width: 85%; width: 85%;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swiper-container1 .swiper-pagination-progressbar .swiper-pagination-progressbar-fill { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swiper-container1
.swiper-pagination-progressbar
.swiper-pagination-progressbar-fill {
background-color: #555 !important; background-color: #555 !important;
margin-top: 0px; margin-top: 0px;
height: 2px !important; height: 2px !important;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swiper-container1 .slideshow-pag { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swiper-container1
.slideshow-pag {
width: 86%; width: 86%;
right: 3%; right: 3%;
top: 50%; top: 50%;
@@ -256,18 +384,50 @@
padding: 0; padding: 0;
z-index: 1; z-index: 1;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swi1 .slideshow-btn { .orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swi1
.slideshow-btn {
height: 2.5rem; height: 2.5rem;
width: 2.5rem; width: 2.5rem;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swi1 .swiper-button-next, .orico_Page_index
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swi1 .swiper-rtl .swiper-button-prev { .pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swi1
.swiper-button-next,
.orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swi1
.swiper-rtl
.swiper-button-prev {
position: static !important; position: static !important;
margin-left: 95px; margin-left: 95px;
margin-top: 24px; margin-top: 24px;
} }
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swi1 .swiper-button-prev, .orico_Page_index
.orico_Page_index .pageMain .featuredProducts .fpSwiper .swiperasd .swi1 .swiper-rtl .swiper-button-next { .pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swi1
.swiper-button-prev,
.orico_Page_index
.pageMain
.featuredProducts
.fpSwiper
.swiperasd
.swi1
.swiper-rtl
.swiper-button-next {
position: static !important; position: static !important;
margin-left: 40px; margin-left: 40px;
margin-top: -40px; margin-top: -40px;
@@ -322,7 +482,12 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.orico_Page_index .pageMain .sceneIntroduction .sceneitem .sceneInfo .scenetitle { .orico_Page_index
.pageMain
.sceneIntroduction
.sceneitem
.sceneInfo
.scenetitle {
font-size: 1.875rem; font-size: 1.875rem;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
@@ -330,7 +495,7 @@
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
padding-top: 10%; padding-top: 5%;
z-index: 10; z-index: 10;
} }
.orico_Page_index .pageMain .sceneIntroduction .sceneitem .sceneInfo .subtitle { .orico_Page_index .pageMain .sceneIntroduction .sceneitem .sceneInfo .subtitle {
@@ -347,7 +512,12 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
z-index: 10; z-index: 10;
} }
.orico_Page_index .pageMain .sceneIntroduction .sceneitem .sceneInfo .sceneMore { .orico_Page_index
.pageMain
.sceneIntroduction
.sceneitem
.sceneInfo
.sceneMore {
font-size: 1rem; font-size: 1rem;
color: #004bfa; color: #004bfa;
text-align: center; text-align: center;
@@ -392,7 +562,7 @@
.orico_Page_index .pageMain .oricoTechnology .beforeafter { .orico_Page_index .pageMain .oricoTechnology .beforeafter {
width: 85%; width: 85%;
margin: 0 auto; margin: 0 auto;
height: 53.75rem; max-height: 53.75rem;
position: relative; position: relative;
border-radius: 1.75rem; border-radius: 1.75rem;
} }
@@ -400,7 +570,7 @@
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 0px; left: 0px;
background-image: url("/static/index/images/indeximg1.jpg"); background-image: url('/static/index/images/indeximg1.jpg');
width: 100%; width: 100%;
height: 53.75rem; height: 53.75rem;
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -412,7 +582,7 @@
top: 0px; top: 0px;
left: 0px; left: 0px;
border-right: 0.25rem solid rgba(255, 255, 255, 0.5019607843); border-right: 0.25rem solid rgba(255, 255, 255, 0.5019607843);
background-image: url("/static/index/images/indeximg2.jpg"); background-image: url('/static/index/images/indeximg2.jpg');
width: 50%; width: 50%;
height: 53.75rem; height: 53.75rem;
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -428,11 +598,12 @@
width: 48px; width: 48px;
height: 48px; height: 48px;
margin: -24px 0 0 -24px; margin: -24px 0 0 -24px;
content: ""; content: '';
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #fff url("/static/index/images/ba-arrow.png") center center/22px 22px no-repeat; background: #fff url('/static/index/images/ba-arrow.png') center center/22px
22px no-repeat;
border: 1px solid #fff; border: 1px solid #fff;
border-radius: 50%; border-radius: 50%;
transition: all 0.3s ease; transition: all 0.3s ease;
@@ -479,13 +650,25 @@
margin-left: 10%; margin-left: 10%;
justify-content: center; justify-content: center;
} }
.orico_Page_index .pageMain .brandStory .swiper-wrapper .bsitem .bsinf .bstitle { .orico_Page_index
.pageMain
.brandStory
.swiper-wrapper
.bsitem
.bsinf
.bstitle {
font-size: 3rem; font-size: 3rem;
text-align: left; text-align: left;
line-height: 4rem; line-height: 4rem;
font-weight: bolder; font-weight: bolder;
} }
.orico_Page_index .pageMain .brandStory .swiper-wrapper .bsitem .bsinf .bssubtitle { .orico_Page_index
.pageMain
.brandStory
.swiper-wrapper
.bsitem
.bsinf
.bssubtitle {
font-size: 1.25rem; font-size: 1.25rem;
text-align: left; text-align: left;
line-height: 1.575rem; line-height: 1.575rem;
@@ -518,11 +701,22 @@
color: inherit; color: inherit;
border-top-width: 1px; border-top-width: 1px;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer .bs_pagination { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_swcontainer
.bs_pagination {
bottom: 3rem; bottom: 3rem;
width: 86%; width: 86%;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer .bs_pagination .swiper-pagination-bullet { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_swcontainer
.bs_pagination
.swiper-pagination-bullet {
margin-right: 28%; margin-right: 28%;
width: 1.25rem; width: 1.25rem;
height: 1.25rem; height: 1.25rem;
@@ -533,7 +727,13 @@
border: 1px solid #cccccc; border: 1px solid #cccccc;
float: left; float: left;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer .bs_pagination .swiper-pagination-bullet-active { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_swcontainer
.bs_pagination
.swiper-pagination-bullet-active {
background-color: #000; background-color: #000;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer span { .orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer span {
@@ -557,7 +757,12 @@
left: 51%; left: 51%;
height: 2px; height: 2px;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_swcontainer .swiper-container { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_swcontainer
.swiper-container {
width: 15%; width: 15%;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_bts { .orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_bts {
@@ -568,12 +773,22 @@
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_bts .swiper-button-next { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_bts
.swiper-button-next {
position: static; position: static;
margin-left: 5.9375rem; margin-left: 5.9375rem;
margin-top: 1.5rem; margin-top: 1.5rem;
} }
.orico_Page_index .pageMain .brandStory .bs_swiperasd .bs_bts .swiper-button-prev { .orico_Page_index
.pageMain
.brandStory
.bs_swiperasd
.bs_bts
.swiper-button-prev {
position: static; position: static;
margin-left: 2.5rem; margin-left: 2.5rem;
margin-top: -2.5rem; margin-top: -2.5rem;
@@ -601,10 +816,16 @@
animation: number-scroll 1s ease-in-out forwards; animation: number-scroll 1s ease-in-out forwards;
} }
.orico_Page_index .pageMain .oricoDataStatistics .odsmain .odsItem h3 { .orico_Page_index .pageMain .oricoDataStatistics .odsmain .odsItem h3 {
font-weith
font-size: 1.25rem; font-size: 1.25rem;
padding-top: 0.9375rem; padding-top: 0.5rem;
font-weight: 500;
} }
.orico_Page_index .pageMain .oricoDataStatistics .odsmain .odsItem:nth-child(2) { .orico_Page_index
.pageMain
.oricoDataStatistics
.odsmain
.odsItem:nth-child(2) {
margin: 0 18%; margin: 0 18%;
} }
.orico_Page_index .pageMain .oricoPub { .orico_Page_index .pageMain .oricoPub {
@@ -677,22 +898,60 @@
width: auto; width: auto;
position: absolute; position: absolute;
} }
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .slideshow-btn { .orico_Page_index
.pageMain
.oricoPub
.pubswiperasd
.swiper-container
.slideshow-btn {
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
} }
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-button-next, .orico_Page_index
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-container-rtl .swiper-button-prev { .pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-button-next,
.orico_Page_index
.pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-container-rtl
.swiper-button-prev {
background-image: none; background-image: none;
} }
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-button-next, .orico_Page_index
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-rtl .swiper-button-prev { .pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-button-next,
.orico_Page_index
.pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-rtl
.swiper-button-prev {
margin-left: 4.875rem; margin-left: 4.875rem;
margin-top: 1.5625rem; margin-top: 1.5625rem;
position: static; position: static;
} }
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-button-prev, .orico_Page_index
.orico_Page_index .pageMain .oricoPub .pubswiperasd .swiper-container .swiper-rtl .swiper-button-next { .pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-button-prev,
.orico_Page_index
.pageMain
.oricoPub
.pubswiperasd
.swiper-container
.swiper-rtl
.swiper-button-next {
position: static; position: static;
margin-left: 1.75rem; margin-left: 1.75rem;
margin-top: -2.5rem; margin-top: -2.5rem;
@@ -764,7 +1023,13 @@
margin-bottom: 0.625rem; margin-bottom: 0.625rem;
border-bottom: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6;
} }
.orico_Page_index .pageMain .oricoFQA .fqaright ul.accordion li.fqali .fqa-question { .orico_Page_index
.pageMain
.oricoFQA
.fqaright
ul.accordion
li.fqali
.fqa-question {
font-size: 1rem; font-size: 1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -773,20 +1038,45 @@
cursor: pointer; cursor: pointer;
overflow: hidden; overflow: hidden;
} }
.orico_Page_index .pageMain .oricoFQA .fqaright ul.accordion li.fqali .fqa-question .xiala { .orico_Page_index
.pageMain
.oricoFQA
.fqaright
ul.accordion
li.fqali
.fqa-question
.xiala {
height: 1.875rem; height: 1.875rem;
text-align: center; text-align: center;
} }
.orico_Page_index .pageMain .oricoFQA .fqaright ul.accordion li.fqali .fqa-answer { .orico_Page_index
.pageMain
.oricoFQA
.fqaright
ul.accordion
li.fqali
.fqa-answer {
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
padding: 0.625rem; padding: 0.625rem;
display: none; display: none;
} }
.orico_Page_index .pageMain .oricoFQA .fqaright ul.accordion li.fqali .fqa-answer p { .orico_Page_index
.pageMain
.oricoFQA
.fqaright
ul.accordion
li.fqali
.fqa-answer
p {
line-height: 1.75rem; line-height: 1.75rem;
} }
.orico_Page_index .pageMain .oricoFQA .fqaright ul.accordion li.fqali:last-child { .orico_Page_index
.pageMain
.oricoFQA
.fqaright
ul.accordion
li.fqali:last-child {
border-bottom: none; border-bottom: none;
} }
.orico_Page_index .pageMain .oricofixd-info { .orico_Page_index .pageMain .oricofixd-info {
@@ -833,3 +1123,29 @@
float: right; float: right;
width: 1.25rem; width: 1.25rem;
} }
.orico_Page_index .ba-slider .handle {
background: #dcdbd9;
cursor: pointer;
}
.orico_Page_index .ba-slider .handle:after {
position: absolute;
top: 50%;
width: 48px;
height: 48px;
margin: -24px 0 0 -24px;
content: '';
display: flex;
align-items: center;
justify-content: center;
background: #fff url(../../index/images/ba-arrow.png) center center / 22px 22px
no-repeat;
border: 1px solid #fff;
border-radius: 50%;
transition: all 0.3s ease;
transform: scale(1);
z-index: 5;
box-shadow: none;
}
.orico_Page_index .ba-slider .handle.ba-draggable:after {
transform: scale(.8)
}

View File

@@ -1 +1,27 @@
!function(a){function b(b,c,d){b.on("mousedown.ba-events touchstart.ba-events",function(e){b.addClass("ba-draggable"),c.addClass("ba-resizable");var f=e.pageX?e.pageX:e.originalEvent.touches[0].pageX,g=b.outerWidth(),h=b.offset().left+g-f,i=d.offset().left,j=d.outerWidth();minLeft=i+10,maxLeft=i+j-g-10,b.parents().on("mousemove.ba-events touchmove.ba-events",function(b){var c=b.pageX?b.pageX:b.originalEvent.touches[0].pageX;leftValue=c+h-g,leftValue<minLeft?leftValue=minLeft:leftValue>maxLeft&&(leftValue=maxLeft),widthValue=100*(leftValue+g/2-i)/j+"%",a(".ba-draggable").css("left",widthValue),a(".ba-resizable").css("width",widthValue)}).on("mouseup.ba-events touchend.ba-events touchcancel.ba-events",function(){b.removeClass("ba-draggable"),c.removeClass("ba-resizable"),a(this).off(".ba-events")}),e.preventDefault()})}a.fn.beforeAfter=function(){var c=this,d=c.width()+"px";c.find(".resize img").css("width",d),b(c.find(".handle"),c.find(".resize"),c),a(window).resize(function(){var a=c.width()+"px";c.find(".resize img").css("width",a)})}}(jQuery); ! function (a) {
function b(b, c, d) {
b.on("mousedown.ba-events touchstart.ba-events", function (e) {
b.addClass("ba-draggable"), c.addClass("ba-resizable");
var f = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX,
g = b.outerWidth(),
h = b.offset().left + g - f,
i = d.offset().left,
j = d.outerWidth();
minLeft = i + 10, maxLeft = i + j - g - 10, b.parents().on("mousemove.ba-events touchmove.ba-events", function (b) {
var c = b.pageX ? b.pageX : b.originalEvent.touches[0].pageX;
leftValue = c + h - g, leftValue < minLeft ? leftValue = minLeft : leftValue > maxLeft && (leftValue = maxLeft), widthValue = 100 * (leftValue + g / 2 - i) / j + "%", a(".ba-draggable").css("left", widthValue), a(".ba-resizable").css("width", widthValue)
}).on("mouseup.ba-events touchend.ba-events touchcancel.ba-events", function () {
b.removeClass("ba-draggable"), c.removeClass("ba-resizable"), a(this).off(".ba-events")
}), e.preventDefault()
})
}
a.fn.beforeAfter = function () {
var c = this,
d = c.width() + "px";
c.find(".resize img").css("width", d), b(c.find(".handle"), c.find(".resize"), c), a(window).resize(function () {
var a = c.width() + "px";
c.find(".resize img").css("width", a)
});
return this
}
}(jQuery);