PageSourceSearch

https://www.qianxin.com/static/js_dist/product_and_service/activity.js?v=1790851178

js qianxin.com collected 2026-10-01 10:41:37 UTC 2,149 bytes, 81 lines download raw bytes

1"use strict";
2
3(function () {
4  var timeAxisEvent = timeAxisActive();
5  var productSwiper = new Swiper('.product-dynamic .left-pic', {
6    autoplay: {
7      disableOnInteraction: false
8    },
9    on: {
10      slideChange: function slideChange() {
11        timeAxisEvent(this.activeIndex);
12      }
13    }
14  }); //时间轴激活效果
15
16  function timeAxisActive() {
17    var axis = $('.product-dynamic .time-axis .axis-item');
18    var axisMap = new Map();
19    var preActive = null;
20    $(axis).each(function (index) {
21      if (index == 0) {
22        preActive = this;
23        $(this).addClass('axis-active');
24      }
25
26      axisMap.set(index, this);
27    });
28    return function () {
29      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
30
31      if ($(axisMap.get(index)) != preActive) {
32        $(axisMap.get(index)).addClass('axis-active');
33        $(preActive).removeClass('axis-active');
34        preActive = $(axisMap.get(index));
35      }
36    };
37  } //右侧鼠标hover事件
38
39
40  function rightHoverEvent() {
41    var lists = $('.product-dynamic .list-wrap .list-item');
42    $(lists).each(function (index) {
43      $(this).hover(function () {
44        productSwiper.slideTo(index, 1000, false);
45      });
46    });
47    var timeLists = $('.product-dynamic .time-line .time-item');
48    $(timeLists).each(function (index) {
49      $(this).hover(function () {
50        productSwiper.slideTo(index, 1000, false);
51      });
52    });
53  } //鼠标悬停,暂停轮播
54
55
56  function swiperHoverFocus() {
57    var stopPlay = false;
58    $('.product-dynamic .list-wrap-js').mouseover(function () {
59      if (stopPlay) return false;
60      stopPlay = true;
61      productSwiper.autoplay.stop();
62    });
63    $('.product-dynamic .list-wrap-js').mouseout(function () {
64      if (stopPlay) {
65        stopPlay = false;
66        productSwiper.autoplay.start();
67      }
68    });
69  }
70
71  rightHoverEvent();
72  swiperHoverFocus(); //统计
73
74  $('.product-dynamic .statistics-js').on('click', function (e) {
75    var id = $(this).attr('data-id');
76    var url = "/news/count?id=".concat(id);
77    window.statistics.addLog({
78      url: url
79    });
80  });
81})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.