Browse Source

二手bugfix

chao 4 years ago
parent
commit
ba13adb367
2 changed files with 9 additions and 2 deletions
  1. 6 1
      src/main/resources/static/js/index.js
  2. 3 1
      src/main/resources/templates/index.html

+ 6 - 1
src/main/resources/static/js/index.js

@@ -234,6 +234,11 @@ var homeData = new Vue({
                             parent.find(".main_price_show").hide();
                             parent.find(".price_grade_shop").show();
                         }
+                        // 二手商品供应商显示等级
+                        // if (priceFlag === 3 && userIdentity===3) {
+                        //     parent.find(".main_price_show").hide();
+                        //     parent.find(".price_grade_shop").show();
+                        // }
                     });
                 }
             });
@@ -288,7 +293,7 @@ var homeData = new Vue({
                         }
                     });
                     // 侧边模块固定 fixed
-                    if($('#fixed-wrap').length>0) {
+                    if($('#fixed-wrap').length>0 && $(window).width()>1400) {
                         var tocWrap = $('#fixed-wrap'),
                             changeSize = $("#globalHead").outerHeight() + $("#swiper-container").outerHeight() + $("#sidebar").outerHeight();
                             //changeSize = document.getElementById("header").offsetHeight + document.getElementById("sidebar").offsetHeight;

+ 3 - 1
src/main/resources/templates/index.html

@@ -174,10 +174,12 @@
                                                             <div class="main_price_none sec">
                                                                 <em class="price_grade"><span>¥</span>登录可见</em>
                                                             </div>
-                                                            <div class="main_price_login" data-id="0">
+                                                            <div class="main_price_login" data-id="3">
                                                                 <div class="price_text_tag"></div>
                                                                 <div th:if="*{detailTalkFlag}==2" class="main_price_show">¥价格祥聊</div>
                                                                 <div th:if="*{detailTalkFlag}!=2" class="main_price_show">¥<span class="price_num"></span></div>
+                                                                <!--供应商显示价格等级-->
+                                                                <em class="price_grade_shop"><span class="bold">¥</span><i th:attr="class=*{'icon mIcon price_grade_'+priceGrade}"></i></em>
                                                             </div>
                                                         </th:block>
                                                     </div>