|
@@ -113,89 +113,47 @@
|
|
<p class="name" v-html="addhtml + p.name" v-if="p.beautyActFlag==1"></p>
|
|
<p class="name" v-html="addhtml + p.name" v-if="p.beautyActFlag==1"></p>
|
|
<p class="name" v-html="p.name" v-else></p>
|
|
<p class="name" v-html="p.name" v-else></p>
|
|
<div class="price">
|
|
<div class="price">
|
|
- <template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0">
|
|
|
|
- <!--用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构-->
|
|
|
|
- <!--0公开价格 1不公开价格 2仅对会员机构公开-->
|
|
|
|
- <template v-if="p.priceFlag==1">
|
|
|
|
- <div class="price_text_tag clear">
|
|
|
|
- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
|
- <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
- <template v-if="p.svipProductFlag === 1">
|
|
|
|
- <div class="svip-tag">
|
|
|
|
- <div class="svip-icon">SVIP</div>
|
|
|
|
|
|
+ <div class="price_text_tag clear">
|
|
|
|
+ <!--优惠券-->
|
|
|
|
+ <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
|
+ <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
+ <template v-if="p.svipProductFlag === 1">
|
|
|
|
+ <div class="svip-tag">
|
|
|
|
+ <div class="svip-icon">SVIP</div>
|
|
|
|
+ <!-- !价格未公开 && ((个人机构 + SVIP) || 资质机构 ) 可查看价格 -->
|
|
|
|
+ <template v-if="showVipPriceTag(p)">
|
|
|
|
+ <div class="svip-price">
|
|
|
|
+ <span v-html="p.svipPriceTag"></span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template v-else>
|
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
|
- </template>
|
|
|
|
</div>
|
|
</div>
|
|
- <div class="main_price_unde">¥价格未公开</div>
|
|
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <template v-if="(p.priceFlag==0 && p.userIdentity!=3) || p.userIdentity==2 || (p.userIdentity==3 && p.shopId==GLOBAL_SHOP_ID)">
|
|
|
|
- <div class="price_text_tag clear">
|
|
|
|
- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
|
- <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
- <template v-if="p.svipProductFlag === 1">
|
|
|
|
- <div class="svip-tag">
|
|
|
|
- <div class="svip-icon" :class="{ btr: showVipPriceTag(p) }">SVIP</div>
|
|
|
|
- <!-- !价格未公开 && ((个人机构 + SVIP) || 资质机构 ) 可查看价格 -->
|
|
|
|
- <template v-if="showVipPriceTag(p)">
|
|
|
|
- <div class="svip-price">
|
|
|
|
- <span v-html="p.svipPriceTag"></span>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <p class="listTag" v-if="p.actStatus==1">
|
|
|
|
- {{p.promotions.name}}
|
|
|
|
- <span v-if="p.priceFlag != 1 && PromotionsFormat(p.promotions)">:¥{{p.price | NumFormat}}</span>
|
|
|
|
- </p>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div class="main_price_show"
|
|
|
|
- :class="{none: PromotionsFormat(p.promotions) || ([2, 4].includes(p.userIdentity) && true)}">
|
|
|
|
- ¥{{ (PromotionsFormat(p.promotions) ? p.originalPrice : p.price ) | NumFormat }}
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <template v-else-if="p.priceFlag==2 && p.userIdentity==4">
|
|
|
|
- <div class="price_text_tag clear">
|
|
|
|
- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
|
- <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
- <template v-if="p.svipProductFlag === 1">
|
|
|
|
- <div class="svip-tag">
|
|
|
|
- <div class="svip-icon">SVIP</div>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div class="main_price_unde">¥会员可见</div>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <div class="price_text_tag clear">
|
|
|
|
- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
|
- <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
- <template v-if="p.svipProductFlag === 1">
|
|
|
|
- <div class="svip-tag">
|
|
|
|
- <div class="svip-icon">SVIP</div>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div class="price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+p.priceGrade"></i></div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}
|
|
|
|
+ <span v-if="p.priceFlag != 1 && PromotionsFormat(p.promotions)">:¥{{p.price | NumFormat}}</span>
|
|
|
|
+ </p>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <!--用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构-->
|
|
|
|
+ <!--0公开价格 1不公开价格 2仅对会员机构公开-->
|
|
|
|
+ <template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0">
|
|
|
|
+ <div class="main_price_unde" v-if="p.priceFlag==1">¥价格未公开</div>
|
|
|
|
+ <!-- 资质机构 || (价格全部机构可见 && 普通机构) || (供应商 && 商品为供应商下的商品) || 超级会员用户 -->
|
|
|
|
+ <template v-else-if="GLOBAL_USER_IDENTITY === 2 || (p.priceFlag === 0 && GLOBAL_USER_IDENTITY === 4) || (GLOBAL_USER_IDENTITY === 3 && p.shopId === GLOBAL_SHOP_ID) || GLOBAL_VIP_FLAG === 1">
|
|
|
|
+ <div class="main_price_show"
|
|
|
|
+ :class="{none: PromotionsFormat(p.promotions) || (p.svipProductFlag === 1 && showVipPriceTag(p))}">
|
|
|
|
+ ¥{{ (PromotionsFormat(p.promotions) ? p.originalPrice : p.price ) | NumFormat }}
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!--机构价仅会员可见 && 用户是普通机构-->
|
|
|
|
+ <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">¥会员可见</div>
|
|
|
|
+ <!--供应商除自己的商品外,也显示价格等级-->
|
|
|
|
+ <div class="price_grade" v-else><span class="bold">¥</span><i :class="'icon mIcon i'+p.priceGrade"></i></div>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <div class="price_text_tag clear ">
|
|
|
|
|
|
+ <div class="price_text_tag ">
|
|
<p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
<p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
- <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
- <template v-if="p.svipProductFlag === 1">
|
|
|
|
|
|
+ <template v-if="true">
|
|
<div class="svip-tag">
|
|
<div class="svip-tag">
|
|
<div class="svip-icon">SVIP</div>
|
|
<div class="svip-icon">SVIP</div>
|
|
</div>
|
|
</div>
|
|
@@ -204,7 +162,7 @@
|
|
<p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
<p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- <div class="price_grade "><span class="bold">¥</span><i :class="'icon mIcon i'+p.priceGrade"></i></div>
|
|
|
|
|
|
+ <div class="price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+p.priceGrade"></i></div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</a>
|