新增拼团活动为空时优化提示

This commit is contained in:
lemon橪
2021-07-07 10:56:57 +08:00
parent b8e0ddcb5a
commit 346eb13d50
4 changed files with 20 additions and 9 deletions

View File

@@ -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() {