瀏覽代碼

feat: update

SilenceLeo 2 年之前
父節點
當前提交
8dbc0ddce6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/pages/index/index.vue

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