Procházet zdrojové kódy

商品详情增加配套商品区域显示判断

zhengjinyi před 3 roky
rodič
revize
e87e946280

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -235,7 +235,7 @@ var productDetail = new Vue({
                         _self.promotions = response.data.promotions;
                         _self.promotionsId = response.data.promotions.id;
                     }
-                    if(_self.priceObj.userIdentity == 2 || _self.priceObj.userIdentity == 4){
+                    if(_self.userId == 0 || _self.priceObj.userIdentity == 2 || _self.priceObj.userIdentity == 4){
                         _self.isShowSupportingList = true;
                     }
                 }

+ 1 - 1
src/main/resources/templates/product/detail.html

@@ -259,7 +259,7 @@
             </div>
         </div>
         <!--配套商品区域-->
-        <div class="wrap" v-if="defaultSupportingList.length>0">
+        <div class="wrap" v-if=" isShowSupportingList">
             <div class="product-supporting">
                 <!--PC-->
                 <template v-if="isPC">