秦杰 3 rokov pred
rodič
commit
c37a2d1607

+ 8 - 6
main/assets/xuniren/activity.html

@@ -294,12 +294,14 @@
 			nextButton:'.activity-module .arrow-r',
 		})
 	}
-	new Swiper('.ad-swiper .swiper-container', {
-		autoplay: 3000,
-		// pagination : '.ad-swiper .pagination',
-		paginationClickable :true,
-		loop: true
-	})
+	if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+		new Swiper('.ad-swiper .swiper-container', {
+			autoplay: 3000,
+			// pagination : '.ad-swiper .pagination',
+			paginationClickable :true,
+			loop: true
+		})
+	}
 </script>
 
 </html>

+ 8 - 6
main/assets/xuniren/article.html

@@ -353,12 +353,14 @@
 
 	<script>
 
-		new Swiper('.ad-swiper .swiper-container', {
-			autoplay: 3000,
-			pagination : '.ad-swiper .pagination',
-			paginationClickable :true,
-			loop: true
-		})
+		if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+			new Swiper('.ad-swiper .swiper-container', {
+				autoplay: 3000,
+				// pagination : '.ad-swiper .pagination',
+				paginationClickable :true,
+				loop: true
+			})
+		}
 		window.wbshare = {
 			title: '',
 			url: '',

+ 8 - 6
main/assets/xuniren/contact.html

@@ -239,12 +239,14 @@
 	<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
 	<script src="./static/swiper.min.js"></script>
 	<script>
-		new Swiper('.ad-swiper .swiper-container', {
-			autoplay: 3000,
-			// pagination : '.ad-swiper .pagination',
-			paginationClickable :true,
-			loop: true
-		})
+		if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+			new Swiper('.ad-swiper .swiper-container', {
+				autoplay: 3000,
+				// pagination : '.ad-swiper .pagination',
+				paginationClickable :true,
+				loop: true
+			})
+		}
 	</script>
 	
 <script>

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
main/assets/xuniren/css/index.css


+ 8 - 6
main/assets/xuniren/feature.html

@@ -285,12 +285,14 @@
 <script src="./static/swiper.min.js"></script>
 <script>
 
-	new Swiper('.ad-swiper .swiper-container', {
-		autoplay: 3000,
-		// pagination : '.ad-swiper .pagination',
-		paginationClickable :true,
-		loop: true
-	})
+	if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+		new Swiper('.ad-swiper .swiper-container', {
+			autoplay: 3000,
+			// pagination : '.ad-swiper .pagination',
+			paginationClickable :true,
+			loop: true
+		})
+	}
 
 	new Swiper('.features-module .swiper-container', {
 		// autoplay: 3000,

+ 11 - 9
main/assets/xuniren/index.html

@@ -487,11 +487,11 @@
 			<ol>
 				<dt>
 					<h3><a href="http://8.131.66.239/cms/main/?l=article&amp;type=3&amp;id=57">翎<br>ling</a></h3>
-					<p>今年推出原创国风虚拟KOL“翎-LING”,以超写实的画风和具有中国特色的审美形象在一众虚拟KOL中脱颖而出,目前翎已和VOGUE、特斯拉、奈雪的茶等品牌...</p>
+					<!-- <p>今年推出原创国风虚拟KOL“翎-LING”,以超写实的画风和具有中国特色的审美形象在一众虚拟KOL中脱颖而出,目前翎已和VOGUE、特斯拉、奈雪的茶等品牌...</p> -->
 				</dt>
-				<dd>
+				<!-- <dd>
 					<span>Apr 02, 2021 by zoe</span>
-				</dd>
+				</dd> -->
 			</ol>
 		</div>
 		<dl>
@@ -614,12 +614,14 @@
 		loop: true
 	})
 
-	new Swiper('.ad-swiper .swiper-container', {
-		autoplay: 3000,
-		// pagination : '.ad-swiper .pagination',
-		paginationClickable :true,
-		loop: true
-	})
+	if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+		new Swiper('.ad-swiper .swiper-container', {
+			autoplay: 3000,
+			// pagination : '.ad-swiper .pagination',
+			paginationClickable :true,
+			loop: true
+		})
+	}
 
 	new Swiper('.features-module .swiper-container', {
 		// autoplay: 3000,

+ 8 - 6
main/assets/xuniren/news.html

@@ -310,12 +310,14 @@
 		loop: true
 	})
 
-	new Swiper('.ad-swiper .swiper-container', {
-		autoplay: 3000,
-		// pagination : '.ad-swiper .pagination',
-		paginationClickable :true,
-		loop: true
-	})
+	if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+		new Swiper('.ad-swiper .swiper-container', {
+			autoplay: 3000,
+			// pagination : '.ad-swiper .pagination',
+			paginationClickable :true,
+			loop: true
+		})
+	}
 
 </script>
 <script>

+ 8 - 6
main/assets/xuniren/video.html

@@ -380,12 +380,14 @@
 		})
 	}
 
-	new Swiper('.ad-swiper .swiper-container', {
-		autoplay: 3000,
-		// pagination : '.ad-swiper .pagination',
-		paginationClickable :true,
-		loop: true
-	})
+	if($('.ad-swiper .swiper-container .swiper-slide').length > 1) {
+		new Swiper('.ad-swiper .swiper-container', {
+			autoplay: 3000,
+			// pagination : '.ad-swiper .pagination',
+			paginationClickable :true,
+			loop: true
+		})
+	}
 	
 </script>
 

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov