components/footer/customer-footer.vue
@@ -84,19 +84,26 @@ if (this.flg == index) { return } if (index===1||index===2) { //交易大厅和购物车,这2个可以用跳转方式 uni.navigateTo({ url:item.pagePath }) }else{ uni.redirectTo({ url: item.pagePath }); if (index === 1 || index === 2) { //交易大厅和购物车,这2个可以用跳转方式 if (index === 2) { if (!this.currentInfo.id) { this.$message.showToast('请先登录') return } } uni.navigateTo({ url: item.pagePath }) } else { uni.redirectTo({ url: item.pagePath }); } }, } }