|
@@ -18,7 +18,7 @@
|
|
|
</div>
|
|
|
<template v-else>
|
|
|
<!--banner图-->
|
|
|
- <div class="coupon-banner">
|
|
|
+ <div class="coupon-banner" v-if="appletsBanner">
|
|
|
<a href='javascript:void(0)'>
|
|
|
<img :src="pcBanner" v-if="isPC">
|
|
|
<img :src="appletsBanner" v-else>
|
|
@@ -35,45 +35,49 @@
|
|
|
<div class="price">
|
|
|
<template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0">
|
|
|
<!--用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构-->
|
|
|
- <template v-if="p.priceFlag==1">
|
|
|
- <div class="price_text_tag">
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
- </div>
|
|
|
- <div class="main_price_unde">¥价格未公开</div>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <template v-if="(p.priceFlag==0 && p.userIdentity!=3) || p.userIdentity==2 || p.userIdentity==3">
|
|
|
- <div class="price_text_tag">
|
|
|
-<!-- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>-->
|
|
|
- <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>
|
|
|
- </div>
|
|
|
- <div class="main_price_show" :class="PromotionsFormat(p.promotions) ? 'none' : ''">
|
|
|
- ¥{{ (PromotionsFormat(p.promotions) ? p.originalPrice : p.price ) | NumFormat }}
|
|
|
+ <div class="price_text_tag clear">
|
|
|
+ <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
+ <template v-if="p.svipProductFlag === 1">
|
|
|
+ <div class="svip-tag">
|
|
|
+ <div class="svip-icon">SVIP</div>
|
|
|
+ <template v-if="showVipPriceTag(p)">
|
|
|
+ <div class="svip-price">
|
|
|
+ <span v-html="p.svipPriceTag"></span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-else-if="p.priceFlag==2 && p.userIdentity==4">
|
|
|
- <div class="price_text_tag">
|
|
|
-<!-- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>-->
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
- </div>
|
|
|
- <div class="main_price_unde">¥会员可见</div>
|
|
|
- </template>
|
|
|
<template v-else>
|
|
|
- <div class="price_text_tag">
|
|
|
-<!-- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>-->
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
- </div>
|
|
|
- <div class="price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+p.priceGrade"></i></div>
|
|
|
+ <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仅对会员机构公开-->
|
|
|
+ <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) || showVipPriceTag(p) ? p.originalPrice : p.price ) | NumFormat }}
|
|
|
+ </div>
|
|
|
</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 v-else>
|
|
|
- <div class="price_text_tag ">
|
|
|
-<!-- <p class="couponTag" v-if="p.couponsLogo">优惠券</p>-->
|
|
|
- <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
|
|
|
+ <div class="price_text_tag">
|
|
|
+ <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
|
|
|
+ <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>
|