소스 검색

统计收集

zhengjinyi 2 년 전
부모
커밋
127410b9c9
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/main/resources/static/js/mixins/cmsMixins.js
  2. 2 2
      src/main/resources/templates/index.html

+ 1 - 1
src/main/resources/static/js/mixins/cmsMixins.js

@@ -21,7 +21,7 @@ var cmsMixins = function () {
                 window.open($eventHref)
             },
             handleHotStatistics:function($event,type){// 新品橱窗
-                const $eventHref  = $event[0].attributes[1].value;
+                const $eventHref  = $event[0].attributes[2].value;
                 console.log('新品橱窗',$eventHref)
                 this.cmsSysStatistics(5)
                 window.open($eventHref)

+ 2 - 2
src/main/resources/templates/index.html

@@ -143,7 +143,7 @@
                         <div class="swiper-container-floor hotList mySwiper" id="recommendBox">
                             <div class="swiper-wrapper section_page_main type_08  recommendBox-wrapperHot clear mfw section_8 max">
                                 <!-- 商品/图片 列表 -->
-                                <a href="javascript:void(0)" :data-href="pros.link"  onclick="handleHotStatistics($(this))" class="swiper-slide page_main_item hot ad_04" v-for="pros in floor.floorImageList4">
+                                <a href="javascript:void(0)" onclick="handleHotStatistics($(this))" :data-href="pros.link"  class="swiper-slide page_main_item hot ad_04" v-for="pros in floor.floorImageList4">
                                     <img class="page_main_image" src="/img/base/placeholder.png" :data-original="pros.product.image" :alt="pros.product && pros.product.name">
                                     <div class="page_main_type" v-if="pros.product && pros.product.productType === 2">医疗器械</div>
                                     <div class="page_main_text">
@@ -391,7 +391,7 @@
                             <div class="section_page_main type_08 swiper-wrapper  recommendBox-wrapperHot clear mfw section_8">
                                 <!-- 商品/图片 列表 -->
                                 <th:block th:each="pros : ${floor.get('floorImageList4')}"  th:object="${pros}">
-                                    <a href="javascript:void(0)"  th:attr="data-href=*{link}" onclick="handleHotStatistics($(this))" class="swiper-slide page_main_item hot ad_04">
+                                    <a href="javascript:void(0)"  onclick="handleHotStatistics($(this))" th:attr="data-href=*{link}"  class="swiper-slide page_main_item hot ad_04">
                                         <th:block th:if="${pros.get('product')}!=null" th:object="${pros.get('product')}">
                                             <img class="page_main_image" src="/img/base/placeholder.png" th:attr="data-original=*{image}" th:alt="*{name}">
                                         </th:block>