|
@@ -23,9 +23,9 @@
|
|
<!-- 协销 -->
|
|
<!-- 协销 -->
|
|
<template v-if="userIdentity == 1">
|
|
<template v-if="userIdentity == 1">
|
|
<view class="wrap-main-item">
|
|
<view class="wrap-main-item">
|
|
- <view class="p-price tui-skeleton-fillet" :class="product.promotions.type == 1 && product.promotions.mode == 1 ? 'none' : ''">
|
|
|
|
|
|
+ <view class="p-price tui-skeleton-fillet" :class="PromotionsFormat(product.promotions) ? 'none' : ''">
|
|
<text class="txt sm">¥</text>
|
|
<text class="txt sm">¥</text>
|
|
- <text class="txt big">{{product.retailPrice | NumFormat}}</text>
|
|
|
|
|
|
+ <text class="txt big">{{ (PromotionsFormat(product.promotions) ? product.price1 : product.retailPrice) | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
@@ -40,17 +40,15 @@
|
|
</template>
|
|
</template>
|
|
<!-- 会员机构 -->
|
|
<!-- 会员机构 -->
|
|
<template v-if="userIdentity == 2">
|
|
<template v-if="userIdentity == 2">
|
|
- <view v-if="product.price1TextFlag == '1'" class="wrap-main-pricenone">
|
|
|
|
- <view class="wrap-main-text">¥未公开价格</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="wrap-main-item">
|
|
|
|
- <view class="p-price tui-skeleton-fillet" :class="product.promotions.type == 1 && product.promotions.mode==1 ? 'none' : ''">
|
|
|
|
|
|
+ <view class="wrap-main-item">
|
|
|
|
+ <view v-if="product.price1TextFlag == '1'" class="wrap-main-text">¥未公开价格</view>
|
|
|
|
+ <view v-else class="p-price tui-skeleton-fillet" :class="PromotionsFormat(product.promotions) ? 'none' : ''">
|
|
<text class="txt sm">¥</text>
|
|
<text class="txt sm">¥</text>
|
|
- <text class="txt big">{{product.retailPrice | NumFormat}}</text>
|
|
|
|
|
|
+ <text class="txt big">{{ (PromotionsFormat(product.promotions) ? product.price1 : product.retailPrice) | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
- {{product.promotions.name}}<text v-if="hasLogin">:¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>
|
|
|
|
|
|
+ {{product.promotions.name}}<text v-if="hasLogin && product.price1TextFlag != '1'">:¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view v-else class="floor-tags" @click.stop="clickPopupShow()">{{product.promotions.name}}</view>
|
|
<view v-else class="floor-tags" @click.stop="clickPopupShow()">{{product.promotions.name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -72,13 +70,13 @@
|
|
</template>
|
|
</template>
|
|
<template v-if="product.price1TextFlag == '0'">
|
|
<template v-if="product.price1TextFlag == '0'">
|
|
<view class="wrap-main-item">
|
|
<view class="wrap-main-item">
|
|
- <view class="p-price tui-skeleton-fillet" :class="product.promotions.type == 1 && product.promotions.mode == 1 ? 'none' : ''">
|
|
|
|
|
|
+ <view class="p-price tui-skeleton-fillet" :class="PromotionsFormat(product.promotions) ? 'none' : ''">
|
|
<text class="txt sm">¥</text>
|
|
<text class="txt sm">¥</text>
|
|
- <text class="txt big">{{product.retailPrice | NumFormat}}</text>
|
|
|
|
|
|
+ <text class="txt big">{{ (PromotionsFormat(product.promotions) ? product.price1 : product.retailPrice) | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.actStatus==1" class="floor-item-act">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
<view v-if="product.promotions.type == 1 && product.promotions.mode == 1" class="floor-tags" @click.stop="clickPopupShow(1)">
|
|
- {{product.promotions.name}}<text v-if="hasLogin">:¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>
|
|
|
|
|
|
+ {{product.promotions.name}}<text v-if="hasLogin && product.price1TextFlag != '1'">:¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view v-else class="floor-tags" @click.stop="clickPopupShow()">{{product.promotions.name}}</view>
|
|
<view v-else class="floor-tags" @click.stop="clickPopupShow()">{{product.promotions.name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -113,12 +111,12 @@
|
|
<text class="txt" v-else>{{ product.promotions.beginTime }} ~ {{ product.promotions.endTime }}</text>
|
|
<text class="txt" v-else>{{ product.promotions.beginTime }} ~ {{ product.promotions.endTime }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="box-title" v-show="product.promotions.mode ==2">
|
|
<view class="box-title" v-show="product.promotions.mode ==2">
|
|
- <text>购买凑单商品,满</text>
|
|
|
|
|
|
+ <text>购买{{ product.promotions.name }}商品,满</text>
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>减
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>减
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.reducedPrice | NumFormat }}</text>
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.reducedPrice | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="box-title" v-show="product.promotions.mode==3">
|
|
<view class="box-title" v-show="product.promotions.mode==3">
|
|
- <text>购买购买凑单商品,满</text>
|
|
|
|
|
|
+ <text>购买{{ product.promotions.name }}商品,满</text>
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>赠送商品
|
|
<text class="txt">¥{{ product.promotions == null ? '0.00' : product.promotions.touchPrice | NumFormat }}</text>赠送商品
|
|
</view>
|
|
</view>
|
|
<view class="box-product" v-show="product.promotions.mode==3">
|
|
<view class="box-product" v-show="product.promotions.mode==3">
|
|
@@ -189,6 +187,16 @@
|
|
hidePopup(){
|
|
hidePopup(){
|
|
this.popupShow = false
|
|
this.popupShow = false
|
|
},
|
|
},
|
|
|
|
+ PromotionsFormat(promo){//促销活动类型数据处理
|
|
|
|
+ if(promo!=null){
|
|
|
|
+ if(promo.type == 1 && promo.mode == 1){
|
|
|
|
+ return true
|
|
|
|
+ }else{
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ },
|
|
goUpgradeApply(){
|
|
goUpgradeApply(){
|
|
this.$api.navigateTo('/pages/login/apply')
|
|
this.$api.navigateTo('/pages/login/apply')
|
|
},
|
|
},
|