喻文俊 3 年 前
コミット
f714b06663

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

@@ -470,7 +470,7 @@ var productDetail = new Vue({
         },
         // 是否显示vip标签价格
         showVipPriceTag(product){
-            return product.priceFlag !== 1 && product.userIdentity === 4 || product.userIdentity === 2
+            return (product.priceFlag !== 1 && product.svipProductFlag === 1 && ((GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG === 1) || GLOBAL_USER_IDENTITY === 2));
         }
     },
     created: function () {

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

@@ -71,15 +71,15 @@
                             <!--用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构-->
                             <em v-if="priceObj.priceFlag==1" v-text="'¥价格未公开'"></em>
                             <!--SVIP时的划线价格-->
-                            <!--满足条件:公开价格 && (个人机构 || 资质机构) && 开通SVIP && SVIP优惠商品-->
-                            <em v-else-if="priceObj.priceFlag != 1 && GLOBAL_VIP_FLAG === 1">
+                            <!--满足条件:只有开通会员才显示划线价格-->
+                            <em v-else-if="GLOBAL_VIP_FLAG === 1">
                                 <del v-text="'¥'+parseFloat(priceObj.originalPrice).toFixed(2)"></del>
                             </em>
                             <!--仅会员可见 -->
                             <em v-else-if="priceObj.priceFlag==2 && priceObj.userIdentity==4" v-text="'¥会员可见'"></em>
                             <!--可见价格 -->
                             <template v-else-if="(priceObj.priceFlag==0 && priceObj.userIdentity!=3) || priceObj.userIdentity==2 || (priceObj.userIdentity==3 && priceObj.shopId==GLOBAL_SHOP_ID)">
-                                <em v-if="priceObj.actStatus==1 && promotions && promotions.type==1 && promotions.mode==1"class="p">
+                                <em v-if="priceObj.actStatus==1 && promotions && promotions.type==1 && promotions.mode==1" class="p">
                                     <del v-text="'¥'+parseFloat(priceObj.originalPrice).toFixed(2)"></del>
                                 </em>
                                 <em v-else class="p" v-text="'¥'+parseFloat(priceObj.price).toFixed(2)"></em>