|
@@ -90,11 +90,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-else class="no-price">
|
|
|
- <text class="p-no">价格:</text>
|
|
|
<view class="p-stars">
|
|
|
- <uni-stars :stars="parseInt(item.price1Grade)"></uni-stars>
|
|
|
+ <text class="p-no">¥</text>
|
|
|
+ <uni-stars :stars="parseInt(item.price1Grade)" :fontSize="36" :widthInfo="180"></uni-stars>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="" v-if="item.actStatus==1">
|
|
|
+
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -178,7 +181,7 @@
|
|
|
textColor:'#FFFFFF'
|
|
|
},
|
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
|
- userID:'',
|
|
|
+ userID:0,
|
|
|
clubStatus:'',
|
|
|
current:0,
|
|
|
mode:'round',
|
|
@@ -266,12 +269,38 @@
|
|
|
})
|
|
|
},
|
|
|
getOrganizeProducts(){//获取模块三商品
|
|
|
- queryPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:6}).then(res =>{
|
|
|
+ this.ProductService.queryProductPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:6}).then(res =>{
|
|
|
this.organizeProducts = res.data.results
|
|
|
+ this.getProductPrice()
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getProductPrice(){//获取商品或者活动价格
|
|
|
+ let productIdArr = [];
|
|
|
+ let productIds ='';
|
|
|
+ this.organizeProducts.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
|
|
|
+ productIdArr.push(item.productID)
|
|
|
+ })
|
|
|
+ productIds = productIdArr.join(",");
|
|
|
+ this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
|
|
|
+ this.organizeProducts = this.ReturnNewProducts(this.organizeProducts,response.data);
|
|
|
+ console.log(this.organizeProducts);
|
|
|
}).catch(error =>{
|
|
|
this.$util.msg(error.msg,2000)
|
|
|
})
|
|
|
},
|
|
|
+ ReturnNewProducts(Array,list){
|
|
|
+ let NewArray = []
|
|
|
+ Array.map(item=>{
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ if( item.productID == list[i].productId ){
|
|
|
+ NewArray.push(Object.assign(item,list[i]))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return NewArray
|
|
|
+ },
|
|
|
//轮播图切换修改背景色
|
|
|
swiperChange(e) {
|
|
|
const index = e.detail.current;
|
|
@@ -585,6 +614,7 @@
|
|
|
border-radius: 20rpx;
|
|
|
.floor-item{
|
|
|
width: 341rpx;
|
|
|
+ height: 590rpx;
|
|
|
margin-right: 20rpx;
|
|
|
font-size: $font-size-24;
|
|
|
color: $text-color;
|
|
@@ -646,13 +676,16 @@
|
|
|
height: 76rpx;
|
|
|
line-height: 76rpx;
|
|
|
display: flex;
|
|
|
+ box-sizing: border-box;
|
|
|
.p-no{
|
|
|
- font-size: $font-size-24;
|
|
|
- color: $color-system;
|
|
|
- margin-right: 5rpx;
|
|
|
+ font-size: $font-size-30;
|
|
|
+ color: $text-color;
|
|
|
+ display: block;
|
|
|
+ float: left;
|
|
|
}
|
|
|
.p-stars{
|
|
|
- margin-top: 3rpx;
|
|
|
+ width: 230rpx;
|
|
|
+ margin: 0 auto;
|
|
|
}
|
|
|
}
|
|
|
.price{
|