|
@@ -942,7 +942,6 @@ export default {
|
|
|
// }, 2000)
|
|
|
if(this.product.productType === 2 && (this.userIdentity != 1 || this.userIdentity != 3)){
|
|
|
this.handleShowProductType()
|
|
|
- return
|
|
|
}
|
|
|
if ((this.hasLogin && this.userIdentity == 2) || this.userIdentity == 4) {
|
|
|
this.ProductCartNumber()
|
|
@@ -959,8 +958,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleShowProductType(){// 根据用户弹窗提示
|
|
|
- this.modal1 = true
|
|
|
if(!this.hasLogin){//游客
|
|
|
+ this.modal1 = true
|
|
|
this.contentModalText1 = '该商品仅限医美类机构查看,请注册医美机构后继续查看。有采美账号的,请直接登录。'
|
|
|
this.modalButton1 = [
|
|
|
{ text: '关闭', type: 'gray',plain: true },
|
|
@@ -969,8 +968,11 @@ export default {
|
|
|
plain: false
|
|
|
}
|
|
|
]
|
|
|
+ return
|
|
|
}else{
|
|
|
if(this.userIdentity === 4 ){// 普通机构
|
|
|
+ console.log('222222222')
|
|
|
+ this.modal1 = true
|
|
|
this.contentModalText1 = '该商品仅限医美类机构查看,请升级为医美机构后继续查看。'
|
|
|
this.modalButton1 = [
|
|
|
{ text: '关闭', type: 'gray',plain: true },
|
|
@@ -979,8 +981,13 @@ export default {
|
|
|
plain: false
|
|
|
}
|
|
|
]
|
|
|
+ return
|
|
|
}else if( this.userIdentity === 2 ){//会员机构
|
|
|
+ console.log('333333333')
|
|
|
+ console.log('userIdentity',this.userIdentity)
|
|
|
+ console.log('firstClubType',this.firstClubType)
|
|
|
if(this.firstClubType != 1){
|
|
|
+ this.modal1 = true
|
|
|
this.contentModalText1 = '该商品仅限医美类机构查看,您暂无权限。您可去机构资料页面查看机构类型。'
|
|
|
this.modalButton1 = [
|
|
|
{ text: '关闭', type: 'gray',plain: true },
|
|
@@ -989,6 +996,7 @@ export default {
|
|
|
plain: false
|
|
|
}
|
|
|
]
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
}
|