Authored by hf

code review by hf: do modify final sale huodong banner link

  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="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div>
  51 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  52 + <div class="coupon-top">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/top-bg.png" alt="">
  54 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + <a class="share-btn" href="javascript:;"></a>
  56 + </div>
  57 + <div class="coupon-bottom">
  58 + <div class="coupon-banner">
  59 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + </div>
  64 + <div class="bottom-btn">
  65 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  66 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  67 + </div>
  68 + </div>
  69 + <div class="coupon-ft">
  70 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/14.png">
  71 + </div>
  72 +</div>
  73 +<div class="modal"></div>
  74 +<div class="dialog-box geted">
  75 + <div class="dialog-inner">
  76 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/geted.png" alt=""/>
  77 + <span class="dialog-close"></span>
  78 + </div>
  79 +</div>
  80 +
  81 +<div class="dialog-box fail">
  82 + <div class="dialog-inner">
  83 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/fail.png" alt=""/>
  84 + <span class="refresh-btn"></span>
  85 + </div>
  86 +</div>
  87 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  88 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  91 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  92 +<script>
  93 + //提示分享
  94 + $(\'.share-btn\').click(function () {
  95 + $(\'.modal\').fadeIn();
  96 + });
  97 + //关闭提示分享
  98 + $(\'.modal\').click(function () {
  99 + $(this).fadeOut();
  100 + });
  101 +
  102 + //提示已领过券
  103 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  104 + $(\'.dialog-box.geted\').show();
  105 + }
  106 + //提示领券失败
  107 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  108 + $(\'.dialog-box.fail\').show();
  109 + }
  110 +
  111 + //关闭提示
  112 + $(\'.dialog-close\').click(function(){
  113 + $(this).parents(\'.dialog-box\').fadeOut();
  114 + });
  115 + //刷新页面
  116 + $(\'.refresh-btn\').click(function() {
  117 + location.reload();
  118 + });
  119 +</script>
  120 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  121 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  122 +' : '').''.'<!-- Google Tag Manager -->
  123 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  124 +<script>
  125 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  126 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  127 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  128 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  129 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  130 +</script>
  131 +<!-- End Google Tag Manager -->
  132 +<script type="text/javascript">
  133 + var _hmt = _hmt || [];
  134 + (function() {
  135 + var hm = document.createElement("script");
  136 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  137 + var s = document.getElementsByTagName("script")[0];
  138 + s.parentNode.insertBefore(hm, s);
  139 + })();
  140 +</script>
  141 +<script>
  142 + var _hmt = _hmt || [];
  143 + (function() {
  144 + var hm = document.createElement("script");
  145 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  146 + var s = document.getElementsByTagName("script")[0];
  147 + s.parentNode.insertBefore(hm, s);
  148 + })();
  149 +</script>
  150 +'.'</body>
  151 +</html>';
  152 +}
  153 +?>