Task:多店铺选择

This commit is contained in:
linxi
2025-03-25 18:32:28 +08:00
parent a74f94a061
commit 36914c10b0
+10 -5
View File
@@ -51,7 +51,8 @@ export default {
hasSupplier: null,
hasWholesaler: null,
images: null,
pageKeyId: Object.freeze('merchantApplyIndex')
pageKeyId: Object.freeze('merchantApplyIndex'),
canApplyHotel: false
}
},
onLoad(options) {
@@ -63,6 +64,7 @@ export default {
this.hasHotel = data.hasHotel
this.hasSupplier = data.hasSupplier
this.hasWholesaler = data.hasWholesaler
this.canApplyHotel = data.canApplyHotel
})
},
methods: {
@@ -83,11 +85,14 @@ export default {
}
break
case 'shop':
if (this.hasHotel === 1) {
this.$yrouter.push('/pagesInn/inn/innHome?id='+this.hotelId)
} else {
this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId)
if (!this.canApplyHotel) {
uni.showToast({ // 使用uni-app官方提示API
title: '您的店铺数量已到达上限,不能继续申请店铺',
icon: 'none'
})
return
}
this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId)
break
case 'wholesaler':
if (this.hasWholesaler === 1) {