瀏覽代碼

add storage

zhashaonan 6 年之前
父節點
當前提交
e785b73a89

+ 1 - 0
data/resource/mobile/festival/double11/css/style.css

@@ -260,6 +260,7 @@ img {
 }
 .slef-ranking {
     margin-top: 26px;
+    padding-right: 16px;
     color: #e4cb80;
 }
 .slef-ranking .crown-box {

+ 2 - 2
mobile/control/control.php

@@ -331,9 +331,9 @@ class mbMemberControl extends mobileControl
 
 function bonus_version()
 {
-    return "v=2018112901";
+    return "v=2018113001";
 }
 function shop_version()
 {
-    return "v=2018112901";
+    return "v=2018113001";
 }

+ 17 - 2
mobile/templates/default/festival/double11/steps.php

@@ -145,11 +145,26 @@
                             return;
                         }
                         else {
-                            window.location.href = "<?php echo $output['steps_url']; ?>";
+                            sessionStorage.setItem('stepLogin', true);
+                            setTimeout(function () {
+                                window.location.href = "<?php echo $output['steps_url']; ?>";
+                            }, 0);
+
                         }
                     });
                 }
-            })
+            });
+
+        });
+
+        $(window).on('pageshow',function(){
+            var islogin = <?php echo $output['mine_steps']['is_login']? 'true' : 'false'; ?>;
+            var stepLogin = sessionStorage.getItem('stepLogin');
+            if (stepLogin) {
+                if (!islogin) {
+                    location.reload();
+                }
+            }
         });
     </script>
 </body>