SilenceLeo 3 жил өмнө
parent
commit
8dbc0ddce6

+ 2 - 1
src/pages/index/index.vue

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