SilenceLeo 2 år sedan
förälder
incheckning
8dbc0ddce6
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/pages/index/index.vue

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

@@ -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,立即加入享受多种优惠活动!",