|
@@ -1,5 +1,18 @@
|
|
|
+function getParameterByName(name, url = window.location.href) {
|
|
|
+ name = name.replace(/[\[\]]/g, '\\$&');
|
|
|
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
|
|
|
+ results = regex.exec(url);
|
|
|
+ if (!results) return null;
|
|
|
+ if (!results[2]) return '';
|
|
|
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
|
+}
|
|
|
+function getSource() {
|
|
|
+ let id = getParameterByName('utm_source');
|
|
|
+ $('#utm_source').val(id);
|
|
|
+ }
|
|
|
+ getSource();
|
|
|
$('.owl-carousel-pc').owlCarousel({
|
|
|
- loop:true,
|
|
|
+ loop: true,
|
|
|
margin: 0,
|
|
|
nav:true,
|
|
|
autoWidth:true,
|
|
@@ -30,7 +43,55 @@ $('.owl-carousel-mb').owlCarousel({
|
|
|
touchDrag: true,
|
|
|
smartSpeed: 0,
|
|
|
autoplay: true,
|
|
|
- autoplayTimeout: 9000,
|
|
|
+ autoplayTimeout: 10000,
|
|
|
+ autoplayHoverPause: false,
|
|
|
+ responsive:{
|
|
|
+ 0:{
|
|
|
+ items:1
|
|
|
+ },
|
|
|
+ 600:{
|
|
|
+ items:1
|
|
|
+ },
|
|
|
+ 1000:{
|
|
|
+ items:2
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+$('.owl-carousel-mb2').owlCarousel({
|
|
|
+ loop:true,
|
|
|
+ margin: 0,
|
|
|
+ nav:true,
|
|
|
+ mouseDrag: true,
|
|
|
+ touchDrag: true,
|
|
|
+ smartSpeed: 0,
|
|
|
+ autoplay: true,
|
|
|
+ autoplayTimeout: 10000,
|
|
|
+ autoplayHoverPause: false,
|
|
|
+ responsive:{
|
|
|
+ 0:{
|
|
|
+ items:1
|
|
|
+ },
|
|
|
+ 600:{
|
|
|
+ items:1
|
|
|
+ },
|
|
|
+ 1000:{
|
|
|
+ items:2
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+$('.owl-carousel-mb3').owlCarousel({
|
|
|
+ loop:true,
|
|
|
+ margin: 0,
|
|
|
+ nav:true,
|
|
|
+ mouseDrag: true,
|
|
|
+ touchDrag: true,
|
|
|
+ smartSpeed: 0,
|
|
|
+ autoplay: true,
|
|
|
+ autoplayTimeout: 10000,
|
|
|
autoplayHoverPause: false,
|
|
|
responsive:{
|
|
|
0:{
|
|
@@ -248,3 +309,12 @@ function validate() {
|
|
|
|
|
|
return q2_validate() && q3_validate();
|
|
|
}
|
|
|
+
|
|
|
+function getJson() {
|
|
|
+ $.getJSON("js/json.txt", function(data){
|
|
|
+ data.forEach((item, idx) => {
|
|
|
+ console.log(item);
|
|
|
+ })
|
|
|
+ })
|
|
|
+}
|
|
|
+getJson();
|