فهرست منبع

修复 仪器页楼层显示bug

zhengjinyi 3 سال پیش
والد
کامیت
6ce5d943e8
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      src/main/resources/static/js/product/instruement.js
  2. 2 2
      src/main/resources/templates/product/instrument.html

+ 2 - 2
src/main/resources/static/js/product/instruement.js

@@ -60,7 +60,7 @@
                         span += '<span></span>';
                     }
                     cell.html(span);
-                    $('#recommendBox').slide({
+                    $('.mySwiperSlide').slide({
                         mainCell:".recommendBox-wrapper",
                         titCell:".swiper-pagination-floor span",
                         effect: "leftLoop",
@@ -69,7 +69,7 @@
                         vis:5
                     });
                 } else {
-                    var swiper = new Swiper('#recommendBox', {
+                    var swiper = new Swiper('.mySwiperSlide', {
                         slidesPerView: 2,
                         slidesPerColumn: 2,
                         spaceBetween:0,

+ 2 - 2
src/main/resources/templates/product/instrument.html

@@ -60,7 +60,7 @@
                             <h1 :data-id="index+1">{{ floor.title }}</h1>
                             <p>{{ floor.detail }}</p>
                         </div>
-                        <div :class="floor.floorContent.templateType == 8 ? 'hotList swiper-container-floor' : ''"
+                        <div :class="floor.floorContent.templateType == 8 ? 'swiper-container-floor mySwiperSlide' : ''"
                              :id="floor.floorContent.templateType == 8 ? 'recommendBox' : ''"
                         >
                             <div :class="floor.floorContent.templateType == 8 ?
@@ -219,7 +219,7 @@
                             <p th:text="${floor.get('detail')}"></p>
                         </div>
                         <th:block th:object="${floor.get('floorContent')}">
-                            <div th:class="*{templateType}==8? 'hotList swiper-container-floor' : ''" th:id="*{templateType}==8? 'recommendBox' : ''">
+                            <div th:class="*{templateType}==8? 'swiper-container-floor mySwiperSlide' : ''" th:id="*{templateType}==8? 'recommendBox' : ''">
                                 <div th:class="*{templateType}==8? *{'section_page_main type_08 swiper-wrapper recommendBox-wrapper clear mfw section_'+templateType} : *{'section_page_main clear mfw section_'+templateType}">
                                     <!-- 广告图 -->
                                     <th:block th:if="*{templateType}==1 or *{templateType}==2 or *{templateType}==3 or *{templateType}==4 or *{templateType}==5">