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, hasSupplier: null,
hasWholesaler: null, hasWholesaler: null,
images: null, images: null,
pageKeyId: Object.freeze('merchantApplyIndex') pageKeyId: Object.freeze('merchantApplyIndex'),
canApplyHotel: false
} }
}, },
onLoad(options) { onLoad(options) {
@@ -63,6 +64,7 @@ export default {
this.hasHotel = data.hasHotel this.hasHotel = data.hasHotel
this.hasSupplier = data.hasSupplier this.hasSupplier = data.hasSupplier
this.hasWholesaler = data.hasWholesaler this.hasWholesaler = data.hasWholesaler
this.canApplyHotel = data.canApplyHotel
}) })
}, },
methods: { methods: {
@@ -83,11 +85,14 @@ export default {
} }
break break
case 'shop': case 'shop':
if (this.hasHotel === 1) { if (!this.canApplyHotel) {
this.$yrouter.push('/pagesInn/inn/innHome?id='+this.hotelId) uni.showToast({ // 使用uni-app官方提示API
} else { title: '您的店铺数量已到达上限,不能继续申请店铺',
this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId) icon: 'none'
})
return
} }
this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId)
break break
case 'wholesaler': case 'wholesaler':
if (this.hasWholesaler === 1) { if (this.hasWholesaler === 1) {