xuxueyang
2024-07-31 af2a86dbbe05d74b00a6e7bdc426e26bb0453654
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
               });
            }
         },
      }
   }