@@ -167,7 +167,8 @@ export default {
},
methods: {
showDialog() {
- if (this.userInfo && this.userInfo.type === "1") return;
+ if (!this.userInfo || (this.userInfo && this.userInfo.type === "1"))
+ return;
uni.showModal({
title: "欢迎来到云果国潮",
content: "您当前还不是VIP,立即加入享受多种优惠活动!",