diff --git a/pkg_join/views/index.vue b/pkg_join/views/index.vue index a14d938..6cfc395 100644 --- a/pkg_join/views/index.vue +++ b/pkg_join/views/index.vue @@ -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) {