|
@@ -304,7 +304,9 @@ export default {
|
|
|
submitIds: [],
|
|
|
depositIds: [6060, 6061, 6062, 6063, 6064], //定金商品ID
|
|
|
rechargeIds: [6065, 6066, 6067, 6068, 6069], //充值余额商品ID
|
|
|
- isIphoneX: this.$store.state.isIphoneX
|
|
|
+ isIphoneX: this.$store.state.isIphoneX,
|
|
|
+ vipFlag:0,
|
|
|
+ userIdentity:0
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -334,16 +336,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- initData() {
|
|
|
+ async initGetStotage() {
|
|
|
+ const clubInfo = await this.$api.getComStorage('orderUserInfo')
|
|
|
+ const userInfo = await this.$api.getStorage()
|
|
|
this.isModallayer = false //遮罩层 防止多次点击
|
|
|
this.skeletonShow = true //预加载圆圈
|
|
|
this.isCheckAll = false //是否全选
|
|
|
this.submitIds = []
|
|
|
- this.$api.getStorage().then(resolve => {
|
|
|
- this.listQuery.serviceProviderId = resolve.serviceProviderId ? resolve.serviceProviderId : 0
|
|
|
- this.initGetCartGoodsList()
|
|
|
- this.getClubProductNum()
|
|
|
- })
|
|
|
+ this.vipFlag = clubInfo.vipFlag ? clubInfo.vipFlag : 0
|
|
|
+ this.userIdentity = clubInfo.userIdentity ? clubInfo.userIdentity : 0
|
|
|
+ console.log('userIdentity',this.userIdentity)
|
|
|
+ console.log('vipFlag',this.vipFlag)
|
|
|
+ this.listQuery.clubId = clubInfo.clubId ? clubInfo.clubId : 0
|
|
|
+ this.listQuery.againBuyProductIds = clubInfo.againBuyProductIds ? clubInfo.againBuyProductIds : ''
|
|
|
+ this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
|
+ this.initGetCartGoodsList()
|
|
|
+ this.getClubProductNum()
|
|
|
},
|
|
|
initLogin() {
|
|
|
this.$api.redirectTo('/pages/login/login?type=4')
|
|
@@ -962,7 +970,16 @@ export default {
|
|
|
navToListPage(id) {
|
|
|
this.isModallayer = true
|
|
|
this.$api.navigateTo(`/pages/goods/product?id=${id}`)
|
|
|
- }
|
|
|
+ },
|
|
|
+ isShowVipFlag(pros){
|
|
|
+ if(pros.priceFlag!=1){
|
|
|
+ if(this.userIdentity == 4 && this.vipFlag == 1){
|
|
|
+ return true
|
|
|
+ }else if(this.userIdentity == 2){
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (this.hasNextPage) {
|
|
@@ -977,12 +994,7 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.$api.getComStorage('orderUserInfo').then(resolve => {
|
|
|
- console.log(resolve)
|
|
|
- this.listQuery.clubId = resolve.clubID ? resolve.clubID : 0
|
|
|
- this.listQuery.againBuyProductIds = resolve.againBuyProductIds ? resolve.againBuyProductIds : ''
|
|
|
- this.initData()
|
|
|
- })
|
|
|
+ this.initGetStotage()
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -1139,7 +1151,7 @@ page {
|
|
|
color: $color-system;
|
|
|
text-align: center;
|
|
|
display: inline-block;
|
|
|
- padding: 0 16rpx;
|
|
|
+ padding: 0 6rpx;
|
|
|
font-size: $font-size-20;
|
|
|
border: 1px solid #e15616;
|
|
|
float: right;
|
|
@@ -1389,19 +1401,6 @@ page {
|
|
|
float: left;
|
|
|
padding: 0 0 10rpx 0;
|
|
|
margin-left: 10rpx;
|
|
|
- .floor-tags {
|
|
|
- height: 28rpx;
|
|
|
- border-radius: 6rpx;
|
|
|
- background-color: #ffffff;
|
|
|
- line-height: 28rpx;
|
|
|
- color: $color-system;
|
|
|
- text-align: center;
|
|
|
- display: inline-block;
|
|
|
- padding: 0 16rpx;
|
|
|
- font-size: $font-size-20;
|
|
|
- border: 1px solid #e15616;
|
|
|
- float: left;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|