dever 6 years ago
parent
commit
d50dca0951

+ 1 - 0
kissy/public/login.js

@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('2 t(0,r){5 u=y.A;5 6=1;5 o=u.z(\'n\')>-1;5 e=!!u.B(/\\(i[^;]+;( U;)? q.+C F X/);4(e){2 f(a){4(g.b){a(b)}k{G.D(\'E\',2(){a(b)},s)}}f(2(8){8.w(2(9,7){v(\'x 9: \'+9)4(7){7("V W T")}});8.d({"0":0,"j":6});8.d(\'R S Y 11\',2 7(h){12.10("Z K L J",h)})});2 p(){g.H.I.O.M({"0":0,"j":6})}p()}4(o){2 c(){4(0.N(/\\?/)===-1){0+=\'?m=l\'}k{0+=\'&m=l\'}Q:n.P("3",0,6)}c()}}',62,65,'url||function||if|var|typId|responseCallback|bridge|message|callback|WebViewJavascriptBridge|showAndroidToast|send|isdiOS|connectWebViewJavascriptBridge|window|responseData||typeid|else|NOHEADJWD|headCode|Android|isAndroid|iosLogin|CPU|istokeid|false|istoken||alert|init|Received|navigator|indexOf|userAgent|match|Mac|addEventListener|WebViewJavascriptBridgeReady|OS|document|webkit|messageHandlers|response|got|its|postMessage|search|JS_Call_OC_login|login|javascript|Please|respond|atcha||Right|back||to|Javascript|log|this|console'.split('|'),0,{}))

+ 4 - 1
tm/compile_dir/%%71^714^714F4B17%%header.html.php

@@ -1,4 +1,4 @@
-<?php /* Smarty version 2.6.17, created on 2018-05-28 11:00:29
+<?php /* Smarty version 2.6.17, created on 2018-05-28 15:44:31
          compiled from header.html */ ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
@@ -26,6 +26,9 @@
 <script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
 /public/static/js/sidebar.js?v=0.2" charset="utf-8"></script>
 
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/login.js" charset="utf-8"></script>
+
 <link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
 /public/static/css/base.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>

+ 1 - 1
tm/lib/Controller/EventsController.class.php

@@ -138,7 +138,7 @@ class EventsController extends Controller {
 		$authorize = $info['authorize'];
 		if ($authorize) {
 				if($ckLogin==true){
-					//$info['login'] = 2;//需要登录
+					$info['login'] = 2;//需要登录
 					//self::redirect($loginUrl);
 				}
 		}

+ 15 - 2
tm/template_dir/events_infos.html

@@ -325,7 +325,8 @@ $(body).addClass("bg_white");
     </section>
 </section>
 
-<section class="layer" <{if $info.end == 1 && $info.login == 2}>style="display:block"<{/if}>>
+<{if $info.end == 1 && $info.login == 2}>
+<section class="layer" id="loginbox" style="display:none;">
     <section class="loginbox">
         <h3>您还没有登录</h3>
         <p>请登录后再参与福利活动</p>
@@ -334,4 +335,16 @@ $(body).addClass("bg_white");
             <a class="button" href="<{$loginUrl}>">马上登录</a>
         </section>
     </section>
-</section>
+</section>
+<script>
+$(function()
+{
+    app = checkApp();
+    if (app) {
+        istoken('<{$info.thisUrl}>');
+    } else {
+        $('#loginbox').show();
+    }
+})
+</script>
+<{/if}>

+ 2 - 0
tm/template_dir/header.html

@@ -17,6 +17,8 @@
 <script src="<{$web_cfg.cdn}>/public/static/js/jquery-1.8.3.min.js?v=0.2" charset="utf-8"></script>
 <script src="<{$web_cfg.cdn}>/public/static/js/sidebar.js?v=0.2" charset="utf-8"></script>
 
+<script src="<{$web_cfg.cdn}>/public/login.js" charset="utf-8"></script>
+
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/static/css/base.css" />
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/static/css/style.css" />
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/bootstrap/font-awesome-4.3.0/css/font-awesome.css" />