From 226e18254cd36fc1287ec7efbe3b836fc80e7b2c Mon Sep 17 00:00:00 2001 From: "zorro.zhang" Date: Tue, 23 May 2023 23:10:47 +0800 Subject: [PATCH] ENH: Change Close Button of previewDialog to red Change-Id: Id742a0e20affcd6c414e6c27e475ae8ed8c32bdd (cherry picked from commit d080c902d3364a5dbbe9a074117b932acf7c0937) --- resources/web/model/model.css | 4 ++++ resources/web/model/model.js | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/web/model/model.css b/resources/web/model/model.css index 6f7d3b92a..464d71c36 100644 --- a/resources/web/model/model.css +++ b/resources/web/model/model.css @@ -338,4 +338,8 @@ body height: 480px; } +.viewer-button +{ + background-color: rgba(255,0,0,.5)!important; +} diff --git a/resources/web/model/model.js b/resources/web/model/model.js index caa91d29d..d876097e1 100644 --- a/resources/web/model/model.js +++ b/resources/web/model/model.js @@ -2,7 +2,7 @@ var ModelSwiper=null; var ProfileSwiper=null; function OnInit() -{ +{ console.log(" 页面加载完成 "); //翻译页面 TranslatePage(); @@ -156,7 +156,6 @@ function HandleStudio(pVal) } } - function ShowProjectInfo( p3MF ) { if(p3MF==null) @@ -311,7 +310,7 @@ function ShowModelInfo( pModel ) $('#Model_Preview_Image .swiper-pagination').show(); ModelSwiper = new Swiper('#Model_Preview_Image.swiper', { - loop:true, + loop:false, spaceBetween: 8, navigation: { nextEl: '.swiper-button-next', @@ -320,7 +319,6 @@ function ShowModelInfo( pModel ) autoplay: { delay: 3000, stopOnLastSlide: false, - disableOnInteraction: true, disableOnInteraction: false }, pagination: { @@ -529,7 +527,7 @@ function ShowProfilelInfo( pProfile ) $('#Profile_Preview_Image .swiper-pagination').show(); ProfileSwiper = new Swiper('#Profile_Preview_Image.swiper', { - loop:true, + loop:false, spaceBetween: 8, navigation: { nextEl: '.swiper-button-next', @@ -538,7 +536,6 @@ function ShowProfilelInfo( pProfile ) autoplay: { delay: 3000, stopOnLastSlide: false, - disableOnInteraction: true, disableOnInteraction: false }, pagination: {