Authored by hf

code review by fei.hong: do format huodong girlday codes

  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return ''.'<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="format-detection" content="telephone=no">
  31 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
  32 + <meta name="apple-mobile-web-app-capable" content="yes">
  33 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  34 + <script type="text/javascript">
  35 + (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
  36 + </script>
  37 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/css/style.css">
  38 +</head>
  39 +<body>
  40 +'.' <div class="main-wrap home">
  41 + <div class="header"></div>
  42 + <a class="coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('couponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  43 + <div class="share">
  44 + 快去分享给小伙伴吧 <span class="arrow"></span>
  45 + </div>
  46 + <a class="banner" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','url')), ENT_QUOTES, 'UTF-8').'">
  47 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','img')), ENT_QUOTES, 'UTF-8').'">
  48 + </a>
  49 +'.Plugin\LCRun3::unl($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <div class="download">
  50 + <a class="weixin" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('weixinUrl')), ENT_QUOTES, 'UTF-8').'">
  51 + 关注有货微信 <span class="arrow"></span>
  52 + </a>
  53 + <a class="app" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl')), ENT_QUOTES, 'UTF-8').'">
  54 + 下载YOHO!BUY有货APP <span class="arrow"></span>
  55 + </a>
  56 + </div>
  57 +';}).' <div class="footer">
  58 + </div>
  59 + </div>
  60 + <div class="mask hide">
  61 + <div class="pengyouquan">
  62 + </div>
  63 + <div class="arrow">
  64 + </div>
  65 + <p>
  66 + 点击右上角<br>
  67 + 微信分享至朋友圈
  68 + </p>
  69 + </div>
  70 + <div class="tip-wrap hide">
  71 + <div class="tip hide fail">
  72 + <div class="title">
  73 + 领取失败<br>
  74 + 请刷新重新领取
  75 + </div>
  76 + <div class="desc">
  77 + 如多次领取失败,请联系客服人员<br>
  78 + 带来不便敬请谅解
  79 + </div>
  80 + <a class="button" href="">
  81 + 刷新
  82 + </a>
  83 + </div>
  84 + </div>
  85 +
  86 + <div class="tip-wrap hide">
  87 + <div class="tip hide geted">
  88 + <div class="title">
  89 + 你已领取过优惠券
  90 + </div>
  91 + <div class="sub-title">
  92 + 快去分享给更多<br>
  93 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  94 + </div>
  95 + <a class="button close" href="">
  96 + 返回
  97 + </a>
  98 + </div>
  99 + </div>
  100 +
  101 +'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">
  102 +';}).''.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  103 +<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  104 +<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  105 +<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  106 +<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
  107 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/libs.js"></script>
  108 +'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>
  109 +';}).'</body>
  110 +'.'';
  111 +}
  112 +?>
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.Plugin\LCRun3::debug('[staticTitle]', 'encq', $cx, Plugin\LCRun3::debug('[staticTitle]', 'v', $cx, $in, array('staticTitle'))).'</title>
  30 + <link rel="stylesheet" href="'.Plugin\LCRun3::debug('[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('[staticFile]', 'v', $cx, $in, array('staticFile'))).'/css/style.css">
  31 +</head>
  32 +<body>
  33 + <div class="main-wrap home">
  34 + <div class="header"></div>
  35 + <div class="coupon">
  36 + </div>
  37 + <a class="go" href="'.Plugin\LCRun3::debug('[couponUrl]', 'encq', $cx, Plugin\LCRun3::debug('[couponUrl]', 'v', $cx, $in, array('couponUrl'))).'">
  38 + 去看看 <span class="arrow"></span>
  39 + </a>
  40 + <div class="share">
  41 + </div>
  42 + <a class="banner" href="'.Plugin\LCRun3::debug('[banner].[url]', 'encq', $cx, Plugin\LCRun3::debug('[banner].[url]', 'v', $cx, $in, array('banner','url'))).'">
  43 + <img src="'.Plugin\LCRun3::debug('[banner].[img]', 'encq', $cx, Plugin\LCRun3::debug('[banner].[img]', 'v', $cx, $in, array('banner','img'))).'">
  44 + </a>
  45 + <div class="footer">
  46 + </div>
  47 + </div>
  48 + <div class="tip hide fail">
  49 + <div class="title">
  50 + 领取失败<br>
  51 + 请刷新重新领取
  52 + </div>
  53 + <div class="desc">
  54 + 如多次领取失败,请联系客服人员<br>
  55 + 带来不便敬请谅解
  56 + </div>
  57 + <a class="button" href="">
  58 + 刷新
  59 + </a>
  60 + </div>
  61 + <div class="tip hide geted">
  62 + <div class="title">
  63 + 你已领取过优惠券
  64 + </div>
  65 + <div class="sub-title">
  66 + 快去分享给更多<br>
  67 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  68 + </div>
  69 + <a class="button close" href="">
  70 + 返回
  71 + </a>
  72 + </div>
  73 +<script type="text/javascript" src="'.Plugin\LCRun3::debug('[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('[staticFile]', 'v', $cx, $in, array('staticFile'))).'/js/libs.js"></script>
  74 +'.Plugin\LCRun3::debug('[staticJS]', 'sec', $cx, Plugin\LCRun3::debug('[staticJS]', 'v', $cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.Plugin\LCRun3::debug('../[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('../[staticFile]', 'v', $cx, $cx['scopes'][count($cx['scopes'])-1], array('staticFile'))).'/js/'.Plugin\LCRun3::debug('this', 'encq', $cx, $in).'"></script>
  75 +';}).'</body>
  76 +';
  77 +}
  78 +?>