From 7a68f7e13913f8d4f86962979fd1e79c18f57fb6 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期六, 03 八月 2024 10:44:25 +0800
Subject: [PATCH] update 登录和其他部分信息
---
components/footer/customer-footer.vue | 31 +++++++++++++++++++------------
1 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/components/footer/customer-footer.vue b/components/footer/customer-footer.vue
index 1ddd505..3cc049b 100644
--- a/components/footer/customer-footer.vue
+++ b/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
+
+ });
}
-
+
},
}
}
--
Gitblit v1.9.3