diff --git a/pages/mine/deposit/operation.vue b/pages/mine/deposit/operation.vue index 693ecba..9e53816 100644 --- a/pages/mine/deposit/operation.vue +++ b/pages/mine/deposit/operation.vue @@ -27,8 +27,19 @@ export default { }; }, async mounted() { - let result = await getUserWallet(); //预存款 - this.walletNum = result.data.result.memberWallet; + if (this.$options.filters.isLogin("auth")) { + let result = await getUserWallet(); //预存款 + this.walletNum = result.data.result.memberWallet; + } else { + uni.showToast({ + icon: "none", + duration: 3000, + title: "请先登录!", + }); + uni.redirectTo({ + url: "/pages/passport/login", + }); + } }, methods: { back() { diff --git a/pages/promotion/joinGroup.vue b/pages/promotion/joinGroup.vue index 8e3267b..95bde10 100644 --- a/pages/promotion/joinGroup.vue +++ b/pages/promotion/joinGroup.vue @@ -23,7 +23,7 @@