Browse Source

qrcode scanner

Mike 3 years ago
parent
commit
468327568a
1 changed files with 7 additions and 8 deletions
  1. 7 8
      ArkCard-web/collect.html

+ 7 - 8
ArkCard-web/collect.html

@@ -389,17 +389,16 @@ $(document).ready(function () {
             liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId });  // test
         } else {
             console.log("您已登入");
-            collection(context.userId); // 收藏頁面
+        }
 
-            // 收藏頁面
-            collection(context.userId);
+        // 收藏頁面
+        collection(context.userId);
 
-            // 購買頁面
-            shop(context.userId);
+        // 購買頁面
+        shop(context.userId);
 
-            // Qrcode頁面
-            get_data(context.userId);
-        }       
+        // Qrcode頁面
+        get_data(context.userId);
     })
     .catch((err) => {
         console.log('初始化失敗: ' + err.code + ", " + err.message);