|
@@ -95,8 +95,91 @@
|
|
|
<!-- <span class="cm-tag color3">单品满减</span> -->
|
|
|
<span class="cm-tag color2" v-if="pros.listType == 2">{{ pros.label }}</span>
|
|
|
</div>
|
|
|
- <div class="cm-prodcut-price h24"><span>¥</span><span
|
|
|
- class="p-icon i3"></span></div>
|
|
|
+ <div class="cm-prodcut-price h24">
|
|
|
+ <div class="pro-price" v-if="pros.listType == 1">
|
|
|
+ <template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0">
|
|
|
+ <template v-if="pros.product.productCategory==1">
|
|
|
+ <!-- 样式1 价格未公开-->
|
|
|
+ <template v-if="pros.product.priceFlag==1">
|
|
|
+ <div class="price-tag">
|
|
|
+ <span class="tag"
|
|
|
+ v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price">¥价格未公开</div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <!-- 样式2-->
|
|
|
+ <template
|
|
|
+ v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
|
|
|
+ <div class="price-tag">
|
|
|
+ <span class="tag" v-if="pros.product.actStatus==1">
|
|
|
+ {{pros.product.promotions.name}}
|
|
|
+ <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="price"
|
|
|
+ :class="PromotionsFormat(pros.product.promotions) ? 'none' : ''">
|
|
|
+ <span>
|
|
|
+ ¥{{(PromotionsFormat(pros.product.promotions) ? pros.product.originalPrice
|
|
|
+ : pros.product.price) | NumFormat }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式3 -->
|
|
|
+ <template
|
|
|
+ v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
|
|
|
+ <div class="price-tag"
|
|
|
+ v-if="pros.product.actStatus==1">
|
|
|
+ <span class="tag">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price"><span>¥会员可见</span></div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式4 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"
|
|
|
+ v-if="pros.product.actStatus==1">
|
|
|
+ <span class="tag">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price"><span>¥</span>
|
|
|
+ <span class="p-icon"
|
|
|
+ :class="'i'+pros.product.priceGrade"></span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <!-- 样式5 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"></div>
|
|
|
+ <div class="price"
|
|
|
+ v-if="pros.product.detailTalkFlag == '2'">¥价格详聊
|
|
|
+ </div>
|
|
|
+ <div class="price" v-else>
|
|
|
+ <span>¥{{ pros.product.price | NumFormat }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <!-- 样式6 -->
|
|
|
+ <template v-if="pros.product.productCategory == 1">
|
|
|
+ <div class="price-tag" v-if="params.userId>0">
|
|
|
+ <span class="tag"
|
|
|
+ v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price ">
|
|
|
+ <span>¥</span>
|
|
|
+ <span class="p-icon"
|
|
|
+ :class="'i'+pros.product.priceGrade"></span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式7 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"></div>
|
|
|
+ <div class="price "><span>¥登录可见</span></div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
@@ -123,7 +206,8 @@
|
|
|
>
|
|
|
<div class="aspect"
|
|
|
:data-scalc="getProductScalcMap(floorData.floorContent.templateType).scalc[index]">
|
|
|
- <a target="_blank" :href="reallink(floorData.floorContent['adsLink' + (index + 1)])">
|
|
|
+ <a target="_blank"
|
|
|
+ :href="reallink(floorData.floorContent['adsLink' + (index + 1)])">
|
|
|
<img
|
|
|
width="100%"
|
|
|
height="100%"
|
|
@@ -164,8 +248,91 @@
|
|
|
<!-- <span class="cm-tag color3">单品满减</span> -->
|
|
|
<span class="cm-tag color2" v-if="pros.listType == 2">{{ pros.label }}</span>
|
|
|
</div>
|
|
|
- <div class="cm-prodcut-price h24"><span>¥</span><span
|
|
|
- class="p-icon i3"></span></div>
|
|
|
+ <div class="cm-prodcut-price h24">
|
|
|
+ <div class="pro-price" v-if="pros.listType == 1">
|
|
|
+ <template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0">
|
|
|
+ <template v-if="pros.product.productCategory==1">
|
|
|
+ <!-- 样式1 价格未公开-->
|
|
|
+ <template v-if="pros.product.priceFlag==1">
|
|
|
+ <div class="price-tag">
|
|
|
+ <span class="tag"
|
|
|
+ v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price">¥价格未公开</div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <!-- 样式2-->
|
|
|
+ <template
|
|
|
+ v-if="(pros.product.priceFlag==0 && pros.product.userIdentity!=3) || pros.product.userIdentity==2 || (pros.product.userIdentity==3 && pros.product.shopID==GLOBAL_SHOP_ID)">
|
|
|
+ <div class="price-tag">
|
|
|
+ <span class="tag" v-if="pros.product.actStatus==1">
|
|
|
+ {{pros.product.promotions.name}}
|
|
|
+ <span v-if="pros.priceFlag != 1 && PromotionsFormat(pros.product.promotions)">:¥{{pros.product.price | NumFormat}}</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="price"
|
|
|
+ :class="PromotionsFormat(pros.product.promotions) ? 'none' : ''">
|
|
|
+ <span>
|
|
|
+ ¥{{(PromotionsFormat(pros.product.promotions) ? pros.product.originalPrice
|
|
|
+ : pros.product.price) | NumFormat }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式3 -->
|
|
|
+ <template
|
|
|
+ v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
|
|
|
+ <div class="price-tag"
|
|
|
+ v-if="pros.product.actStatus==1">
|
|
|
+ <span class="tag">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price"><span>¥会员可见</span></div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式4 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"
|
|
|
+ v-if="pros.product.actStatus==1">
|
|
|
+ <span class="tag">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price"><span>¥</span>
|
|
|
+ <span class="p-icon"
|
|
|
+ :class="'i'+pros.product.priceGrade"></span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <!-- 样式5 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"></div>
|
|
|
+ <div class="price"
|
|
|
+ v-if="pros.product.detailTalkFlag == '2'">¥价格详聊
|
|
|
+ </div>
|
|
|
+ <div class="price" v-else>
|
|
|
+ <span>¥{{ pros.product.price | NumFormat }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <!-- 样式6 -->
|
|
|
+ <template v-if="pros.product.productCategory == 1">
|
|
|
+ <div class="price-tag" v-if="params.userId>0">
|
|
|
+ <span class="tag"
|
|
|
+ v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price ">
|
|
|
+ <span>¥</span>
|
|
|
+ <span class="p-icon"
|
|
|
+ :class="'i'+pros.product.priceGrade"></span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 样式7 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="price-tag"></div>
|
|
|
+ <div class="price "><span>¥登录可见</span></div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
@@ -179,7 +346,8 @@
|
|
|
>
|
|
|
<div class="aspect"
|
|
|
:data-scalc="getProductScalcMap(floorData.floorContent.templateType).scalc[index]">
|
|
|
- <a target="_blank" :href="reallink(floorData.floorContent['adsLink' + (index + 1)])">
|
|
|
+ <a target="_blank"
|
|
|
+ :href="reallink(floorData.floorContent['adsLink' + (index + 1)])">
|
|
|
<img
|
|
|
width="100%"
|
|
|
height="100%"
|