PageSourceSearch

https://peacetshop.com/V3/common/assets/js/require/detail/detail-old.js

js peacetshop.com collected 2026-10-08 18:39:02 UTC 2,213 bytes, 64 lines download raw bytes

1require(['aes'], function () {
2  try {
3    if (location.href.indexOf('gienor.com') == -1) {
4      new SliderVirify({
5        title: sliderVirifyTitle,
6        tryagain: sliderVirifyTryagain
7      });
8    }
9  } catch (error) {
10    console.log(error);
11  }
12
13  //当支付成功时,跳转推荐商品,再进入详情时,返回时返回到推荐页面。
14  let goodsId = $.cookie('_goodsId');
15  let urlText = window.location;
16  if (urlText.pathname.indexOf('detail') > 0 && urlText.href.indexOf('ignore_doamin=true') > 0) {
17    setTimeout(() => {
18      var href = `/index/saleRecommend?sno=${Base64.encode(goodsId)}`;
19      if ($('.sgk-carousel, .video-carousel').find('.back-home').length > 0) {
20        $('.sgk-carousel, .video-carousel')
21          .find('.back-home')
22          .attr('href', 'javascript:;');
23      } else {
24        $('.sgk-carousel, .video-carousel').prepend(
25          `<a href="javascript:;" class="back-home text-center"><i class="iconfont iconNEW_04-jiantou"></i></a>`
26        );
27      }
28      var notFromRecommendPage = store.get('not_form_recommmend_page');//成功页\失败页的推荐商品的,则返回上一页面
29      store.remove('not_form_recommmend_page');
30      $('body').on('click', '.sgk-carousel .back-home, .video-carousel .back-home', function () {
31        if (notFromRecommendPage) {
32          history.back();
33        } else {
34          window.location.href = href;
35        }
36      });
37    }, 3000);
38  }
39  
40  $(function () {
41    let hiddenProperty =
42      'hidden' in document
43        ? 'hidden'
44        : 'webkitHidden' in document
45        ? 'webkitHidden'
46        : 'mozHidden' in document
47        ? 'mozHidden'
48        : null;
49
50    let visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
51    let onVisibilityChange = function () {
52      if (
53        !document[hiddenProperty] &&
54        (($('#buyNow').hasClass('btn-disabled') || $('#buyNow').find('.loader-box').length > 0) ||
55         $('.buynow-btn, .addcart-bar-buynow').hasClass('loading'))
56      ) {
57        location.reload();
58      } else {
59        console.log('页面非激活');
60      }
61    };
62    document.addEventListener(visibilityChangeEvent, onVisibilityChange);
63  });
64});

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.