|
@@ -160,6 +160,9 @@
|
|
|
<view class="title-none" v-if="prop.priceFlag === 2">
|
|
|
<text class="p big">¥价格仅会员可见</text>
|
|
|
</view>
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 3">
|
|
|
+ <text class="p big">¥仅医美机构可见</text>
|
|
|
+ </view>
|
|
|
<view
|
|
|
class="price tui-skeleton-rect"
|
|
|
v-if="prop.priceFlag === 0"
|
|
@@ -172,6 +175,25 @@
|
|
|
}}</text>
|
|
|
</view>
|
|
|
</template>
|
|
|
+ <template v-else-if="userIdentity === 2">
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 1">
|
|
|
+ <text class="p big">¥未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 3">
|
|
|
+ <text class="p big">¥仅医美机构可见</text>
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ class="price tui-skeleton-rect"
|
|
|
+ v-else
|
|
|
+ :class="PromotionsFormat(prop.promotions) || prop.svipProductFlag == 1 ? 'none' : ''"
|
|
|
+ >
|
|
|
+ <text class="p sm">¥</text>
|
|
|
+ <text class="p big">{{
|
|
|
+ (PromotionsFormat(prop.promotions) || prop.svipProductFlag == 1 ? prop.originalPrice : prop.price)
|
|
|
+ | NumFormat
|
|
|
+ }}</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<template v-else>
|
|
|
<view class="title-none" v-if="prop.priceFlag === 1">
|
|
|
<text class="p big">¥未公开价格</text>
|
|
@@ -311,6 +333,9 @@
|
|
|
<view class="title-none" v-if="prop.priceFlag === 2">
|
|
|
<text class="p big">¥价格仅会员可见</text>
|
|
|
</view>
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 3">
|
|
|
+ <text class="p big">¥仅医美机构可见</text>
|
|
|
+ </view>
|
|
|
<view
|
|
|
class="price tui-skeleton-rect"
|
|
|
v-if="prop.priceFlag === 0"
|
|
@@ -323,6 +348,25 @@
|
|
|
}}</text>
|
|
|
</view>
|
|
|
</template>
|
|
|
+ <template v-else-if="userIdentity === 2">
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 1">
|
|
|
+ <text class="p big">¥未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <view class="title-none" v-if="prop.priceFlag === 3">
|
|
|
+ <text class="p big">¥仅医美机构可见</text>
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ class="price tui-skeleton-rect"
|
|
|
+ v-else
|
|
|
+ :class="PromotionsFormat(prop.promotions) || prop.svipProductFlag == 1 ? 'none' : ''"
|
|
|
+ >
|
|
|
+ <text class="p sm">¥</text>
|
|
|
+ <text class="p big">{{
|
|
|
+ (PromotionsFormat(prop.promotions) || prop.svipProductFlag == 1 ? prop.originalPrice : prop.price)
|
|
|
+ | NumFormat
|
|
|
+ }}</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<template v-else>
|
|
|
<view class="title-none" v-if="prop.priceFlag === 1">
|
|
|
<text class="p big">¥未公开价格</text>
|
|
@@ -389,12 +433,12 @@ export default {
|
|
|
recommendList: [],
|
|
|
productList: [],
|
|
|
userIdentity: 0,
|
|
|
- actasFlag:2,
|
|
|
listQuery: {
|
|
|
keyword: '',
|
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
|
- id: 0
|
|
|
+ id: 0,
|
|
|
+ identity:0
|
|
|
},
|
|
|
isHomeProduct: false,
|
|
|
total: 0
|
|
@@ -422,13 +466,9 @@ export default {
|
|
|
const userInfo = await this.$api.getStorage()
|
|
|
this.shopId = userInfo.shopId ? userInfo.shopId : 0
|
|
|
this.userId = userInfo.userId ? userInfo.userId : 0
|
|
|
+ this.listQuery.identity = this.identity
|
|
|
this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
|
|
|
this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
|
|
|
- if(this.userIdentity == 1){
|
|
|
- this.actasFlag = this.userIdentity
|
|
|
- }else{
|
|
|
- this.actasFlag = 2
|
|
|
- }
|
|
|
//初始化请求数据
|
|
|
this.GetSupplierHomeBanner()
|
|
|
this.GetSupplierHomeDeatils()
|
|
@@ -520,7 +560,6 @@ export default {
|
|
|
})
|
|
|
productIds = productIdArr.join(',')
|
|
|
this.ProductService.querySearchProductPrice({
|
|
|
- flag:this.actasFlag, //查询促销标记 1协销 2机构 3供应商
|
|
|
userId: this.userId,
|
|
|
productIds: productIds,
|
|
|
source: 2
|