|
@@ -25,37 +25,70 @@
|
|
|
<text class="list-details-miniQuantity"
|
|
|
>起订量:{{ item.ladderPriceFlag == '1' ? item.maxBuyNumber : item.minBuyNumber }}</text
|
|
|
>
|
|
|
- <view class="list-details-price" v-if="item.priceFlag == 1">
|
|
|
- <view class="list-none"><view class="price-small">¥未公开价格</view></view>
|
|
|
- </view>
|
|
|
- <view class="list-details-price" v-else-if="item.priceFlag == 2">
|
|
|
- <view class="list-none"><view class="price-small">¥价格仅会员可见</view></view>
|
|
|
- </view>
|
|
|
- <view class="list-details-price" v-else-if="item.priceFlag == 3 && (firstClubType!=1)">
|
|
|
- <view class="list-none"><view class="price-small">¥仅医美机构可见</view></view>
|
|
|
- </view>
|
|
|
- <view class="list-details-price" v-else>
|
|
|
- <view class="list-shop">
|
|
|
- <view class="list-price-none" v-if="item.repurchaseFlag == 1">
|
|
|
- <text class="price-none">¥{{ item.originalPrice }}</text>
|
|
|
- <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
|
|
|
+ <template v-if="item.priceFlag == 1">
|
|
|
+ <view class="list-details-price">
|
|
|
+ <view class="list-none"><view class="price-small">¥未公开价格</view></view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <template v-if="userIdentity == 4 && vipFlag != 1">
|
|
|
+ <view class="list-details-price" v-if="item.priceFlag == 2">
|
|
|
+ <view class="list-none"><view class="price-small">¥价格仅会员可见</view></view>
|
|
|
</view>
|
|
|
- <view class="list-price" v-else>
|
|
|
- <text
|
|
|
- class="price-larger"
|
|
|
- :class="
|
|
|
- PromotionsFormat(item.promotions) || item.svipProductFlag == 1 ? 'none' : ''
|
|
|
- "
|
|
|
- >
|
|
|
- ¥{{
|
|
|
- (PromotionsFormat(item.promotions) ? item.originalPrice : item.price)
|
|
|
- | NumFormat
|
|
|
- }}
|
|
|
- </text>
|
|
|
+ <view class="list-details-price" v-else-if="item.priceFlag == 3 && (firstClubType!=1)">
|
|
|
+ <view class="list-none"><view class="price-small">¥仅医美机构可见</view></view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <button class="add-cart-btn" @click.stop="operationHanld(item)">数量</button>
|
|
|
- </view>
|
|
|
+ <view class="list-details-price" v-else>
|
|
|
+ <view class="list-shop">
|
|
|
+ <view class="list-price-none" v-if="item.repurchaseFlag == 1">
|
|
|
+ <text class="price-none">¥{{ item.originalPrice }}</text>
|
|
|
+ <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
|
|
|
+ </view>
|
|
|
+ <view class="list-price" v-else>
|
|
|
+ <text
|
|
|
+ class="price-larger"
|
|
|
+ :class="
|
|
|
+ PromotionsFormat(item.promotions) || item.svipProductFlag == 1 ? 'none' : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ ¥{{
|
|
|
+ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price)
|
|
|
+ | NumFormat
|
|
|
+ }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <button class="add-cart-btn" @click.stop="operationHanld(item)">数量</button>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template v-if="userIdentity == 2 || (userIdentity == 4 && vipFlag == 1)">
|
|
|
+ <view class="list-details-price" v-if="item.priceFlag == 3 && (firstClubType!=1)">
|
|
|
+ <view class="list-none"><view class="price-small">¥仅医美机构可见</view></view>
|
|
|
+ </view>
|
|
|
+ <view class="list-details-price" v-else>
|
|
|
+ <view class="list-shop">
|
|
|
+ <view class="list-price-none" v-if="item.repurchaseFlag == 1">
|
|
|
+ <text class="price-none">¥{{ item.originalPrice }}</text>
|
|
|
+ <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
|
|
|
+ </view>
|
|
|
+ <view class="list-price" v-else>
|
|
|
+ <text
|
|
|
+ class="price-larger"
|
|
|
+ :class="
|
|
|
+ PromotionsFormat(item.promotions) || item.svipProductFlag == 1 ? 'none' : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ ¥{{
|
|
|
+ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price)
|
|
|
+ | NumFormat
|
|
|
+ }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <button class="add-cart-btn" @click.stop="operationHanld(item)">数量</button>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
<view class="list-details-price">
|
|
|
<view class="floor-item-act">
|
|
|
<view class="coupon-tags" v-if="item.couponsLogo">优惠券</view>
|
|
@@ -150,6 +183,7 @@ export default {
|
|
|
cartQuantity: 0,
|
|
|
showRegularBtn: false,
|
|
|
isPrecedence: false,
|
|
|
+ userIdentity:0,
|
|
|
vipFlag:0,
|
|
|
firstClubType:0
|
|
|
}
|
|
@@ -173,6 +207,7 @@ export default {
|
|
|
const userInfo = await this.$api.getStorage()
|
|
|
this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
|
|
|
this.userId = userInfo.userId ? userInfo.userId : 0
|
|
|
+ this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
|
|
|
this.firstClubType = this.clubType
|
|
|
this.getProductAgainInfo()
|
|
|
this.GetUserCartNumber()
|